hunt-deserialization

Detects and exploits insecure deserialization vulnerabilities across Java, PHP, Python, .NET, and Ruby targets.

10|3|Updated Aug 10, 2026
One-click install
npx skills add https://github.com/baiqigo/baiqi-redteam-lab --skill hunt-deserialization-baiqigo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunt-deserialization
Source: https://github.com/baiqigo/baiqi-redteam-lab/tree/main/.agents/skills/hunt-deserialization
Command: npx skills add https://github.com/baiqigo/baiqi-redteam-lab --skill hunt-deserialization-baiqigo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Insecure deserialization flaws lead directly to remote code execution but are hard to spot without knowing language-specific serialization signatures and gadget chains. This Skill provides a structured, evidence-gated methodology to identify serialized objects in requests and confirm exploitability with out-of-band callbacks. ## Core Features & Use Cases - Multi-language coverage: Detection patterns and payload generation for Java (ysoserial, Apache Shiro), PHP (phpggc object injection), Python pickle, .NET BinaryFormatter/ViewState, Ruby Marshal, and JNDI/Log4Shell injection. - Phased hunting methodology: Six phases from signal detection (magic bytes like rO0A, rememberMe cookies, __VIEWSTATE) through gadget chain execution and blind RCE confirmation via DNS/HTTP callbacks. - Use Case: During an authorized bug bounty assessment, you notice a Java base64 cookie starting with rO0A. Use this Skill to generate a ysoserial CommonsCollections payload, send it to the endpoint, and confirm code execution through an interactsh callback. ## Quick Start Use the hunt-deserialization skill to test the target application for Java and PHP deserialization vulnerabilities and confirm any findings with an out-of-band callback.

Frequently Asked Questions about hunt-deserialization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test for Java deserialization vulnerabilities?

Look for serialized Java objects identified by the AC ED 00 05 hex prefix or rO0A base64 prefix in cookies and request bodies. Generate a gadget chain payload with ysoserial, such as CommonsCollections6, and confirm execution via an out-of-band DNS or HTTP callback.

How to detect Apache Shiro deserialization vulnerabilities?

Check for a rememberMe cookie in response headers, which indicates Apache Shiro. Shiro instances with default AES keys can be exploited by encrypting a ysoserial gadget chain with the known key and sending it as the rememberMe cookie value.

What tools exploit PHP object injection vulnerabilities?

phpggc generates PHP gadget chains for frameworks like Laravel, Symfony, and WordPress. First confirm unserialize() processes user input by injecting a test object and observing error behavior, then send a base64-encoded phpggc payload through the same parameter.

Can blind deserialization RCE be confirmed without output?

Yes, blind deserialization is confirmed using out-of-band interaction. Run an interactsh client listener and craft payloads that trigger DNS or HTTP requests to your callback host, proving code execution even when the response shows nothing.

What severity do deserialization vulnerabilities typically receive?

Deserialization vulnerabilities leading to remote code execution are almost always rated Critical because they grant command execution with the server process privileges and require no prerequisite conditions or user interaction.