WolfpackArmy commited on
Commit
ca45a04
·
verified ·
1 Parent(s): 6c24149

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MessagePack Model File Vulnerability PoC
2
+
3
+ ## Vulnerability
4
+ DoS via Deep Nesting Stack Overflow, OOM Bomb, and CPU Exhaustion in MessagePack model files
5
+
6
+ ## Files
7
+ - `poc_deep_nest.msgpack` — 5,000 levels of nested maps, causes stack overflow on unpack
8
+ - `poc_oom_bomb.msgpack` — 21 bytes, bin32 header claiming ~2GB allocation
9
+ - `poc_huge_map.msgpack` — 100K key-value pairs, causes CPU/memory exhaustion
10
+ - `benign.msgpack` — Clean file for comparison
11
+
12
+ ## Reproduce
13
+ ```python
14
+ import msgpack
15
+ # Stack overflow from deep nesting:
16
+ with open('poc_deep_nest.msgpack', 'rb') as f:
17
+ msgpack.unpackb(f.read()) # RecursionError / crash
18
+
19
+ # OOM from fake size header:
20
+ with open('poc_oom_bomb.msgpack', 'rb') as f:
21
+ msgpack.unpackb(f.read()) # Attempts ~2GB allocation
22
+ ```
benign.msgpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2c928f2229dcd53b33ab08a8aaa42637ed4fec702a01ee6173f07cf77c65893
3
+ size 57
poc_deep_nest.msgpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb5c9402cdd6f87499e2299f79f27ff5da87f11daa3ef56506d3800ebfcb443a
3
+ size 10001
poc_huge_map.msgpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42a8ce722a91e2a45ad77c4702f52c5005ca73996fe883234de7908b8fca7190
3
+ size 2177785
poc_oom_bomb.msgpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b70da7b27238c0c92fc19c6adfa5c226bc4e1f6753d2e0d4fd6c881b1cca076c
3
+ size 21