hacnho commited on
Commit
851fead
·
verified ·
1 Parent(s): 3fcf30f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +38 -0
README.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - security
4
+ - proof-of-concept
5
+ - messagepack
6
+ - denial-of-service
7
+ ---
8
+
9
+ # MessagePack nested-array StackError PoC
10
+
11
+ This repository hosts a benign security research PoC for a MessagePack parser denial of service.
12
+
13
+ ## Files
14
+
15
+ - `messagepack-nested-5000.msgpack`
16
+
17
+ ## Reproduction
18
+
19
+ Use latest `msgpack 1.2.1`:
20
+
21
+ ```bash
22
+ python3 -m venv .venv-msgpack-121
23
+ . .venv-msgpack-121/bin/activate
24
+ pip install msgpack==1.2.1
25
+ python - <<'PY'
26
+ import msgpack
27
+ data = open("messagepack-nested-5000.msgpack", "rb").read()
28
+ msgpack.unpackb(data, raw=False)
29
+ PY
30
+ ```
31
+
32
+ Observed result:
33
+
34
+ - `StackError`
35
+
36
+ ## Safety note
37
+
38
+ This artifact is a non-executable malformed model-file PoC for parser-stress testing only.