hacnho commited on
Commit
7178a40
·
verified ·
1 Parent(s): 494c1da

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +33 -0
README.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - security
4
+ - proof-of-concept
5
+ - protobuf
6
+ license: mit
7
+ ---
8
+
9
+ # Protocol Buffers FileDescriptorProto option_dependency string materialization DoS PoC
10
+
11
+ This repository contains a benign security research PoC for a `.pb` artifact
12
+ that drives repeated-string materialization during
13
+ `descriptor_pb2.FileDescriptorProto.ParseFromString(...)`.
14
+
15
+ Files:
16
+
17
+ - `control_one_dependency.pb`
18
+ - `malicious_option_dependency_5000000.pb`
19
+ - `reproduce.py`
20
+
21
+ Observed behavior:
22
+
23
+ - control artifact:
24
+ - parses successfully with one `dependency`
25
+ - malicious artifact:
26
+ - parses successfully with `5,000,000` empty `option_dependency` strings
27
+ - materially increases peak RSS during normal parse
28
+
29
+ Tested runtime:
30
+
31
+ ```bash
32
+ python3 -m pip install protobuf==7.35.1
33
+ ```