Skip to content

Commit 39da032

Browse files
committed
Indicators for deserialization
1 parent ba62eed commit 39da032

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Insecure Deserialization/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ Check the following sub-sections, located in other chapters :
1919
* [Python : pickle, PyYAML, ...](Python.md)
2020
* [.NET : ysoserial.net, ...](DotNET.md)
2121

22-
| Object Type | Header (Hex) | Header (Base64) |
23-
|-----------------|--------------|-----------------|
24-
| Java Serialized | AC ED | rO |
25-
| .NET ViewState | FF 01 | /w |
26-
| Python Pickle | 80 04 95 | gASV |
27-
| PHP Serialized | 4F 3A | Tz |
22+
| Object Type | Header (Hex) | Header (Base64) | Indicators |
23+
|-----------------|----------------|-----------------|------------------|
24+
| .NET ViewState | `FF 01` | `/w` | Commonly found inside hidden inputs around HTML forms |
25+
| BinaryFormatter | `0001 0000 00FF FFFF FF01` | `AAEAAAD` | Base64 decode and check for the long `FF FF FF FF` sequence. |
26+
| Java Serialized | `AC ED` | `rO` | Base64 decode and check first bytes. |
27+
| PHP Serialized | `4F 3A` | `Tz` | Prefixes like `O:, a:, s:, i:, b:` and length indicators. |
28+
| Python Pickle | `80 04 95` | `gASV` | Text: opcodes like `(lp0, S'Test'`. |
29+
| Ruby Marshal | `04 08` | `BAgK` | Base64 decode and look for `\x04\x08` at the start. |
2830

2931
## POP Gadgets
3032

0 commit comments

Comments
 (0)