hacnho commited on
Commit
4045729
·
verified ·
1 Parent(s): 7349e04

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +46 -0
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - security
4
+ - proof-of-concept
5
+ - protobuf
6
+ license: mit
7
+ ---
8
+
9
+ # Protocol Buffers MonitoredResourceDescriptor labels materialization DoS PoC
10
+
11
+ This repository contains a benign security research PoC for a protobuf binary
12
+ artifact that drives large repeated-message materialization during
13
+ `google.api.monitored_resource_pb2.MonitoredResourceDescriptor.ParseFromString(...)`.
14
+
15
+ Files:
16
+
17
+ - `control_one_type.pb`
18
+ - `malicious_labels_5000000.pb`
19
+ - `reproduce.py`
20
+
21
+ Observed behavior:
22
+
23
+ - control artifact:
24
+ - parses successfully with zero `labels`
25
+ - `type_len = 9999995`
26
+ - malicious artifact:
27
+ - both files are `10,000,000` bytes
28
+ - parses successfully with `5,000,000` `labels` entries
29
+ - increases peak RSS by about `330324 kB` in local clean-process replay
30
+
31
+ Tested runtime:
32
+
33
+ - `protobuf==7.35.1`
34
+ - Python: `/usr/bin/python3`
35
+
36
+ Public files:
37
+
38
+ - `https://huggingface.co/hacnho/protobuf-monitoredresourcedescriptor-labels-dos-poc/resolve/main/control_one_type.pb`
39
+ - `https://huggingface.co/hacnho/protobuf-monitoredresourcedescriptor-labels-dos-poc/resolve/main/malicious_labels_5000000.pb`
40
+ - `https://huggingface.co/hacnho/protobuf-monitoredresourcedescriptor-labels-dos-poc/resolve/main/reproduce.py`
41
+
42
+ Reproduction:
43
+
44
+ ```bash
45
+ python3 reproduce.py
46
+ ```