web-cookie-audit
What it does
It explains how to list a site's cookies and test which ones change how the site behaves. It is for testers who want accurate results from applications that depend on sessions.
When to use it
- ✓When a tester sees a feature that works only after logging in and needs to know which cookie matters.
- ✓When a developer wants a list of every cookie their site sets and why.
- ✓When a test result looks blocked, but the cause may be a missing session cookie.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/web-recon/cookie-audit/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Which cookies does our site set, and which ones change how checkout works?”
5 new skills a week. 1 minute to read.
How it works
The skill tells the AI to record every cookie, test with and without each one, and note which cookie changes the behavior. The results go into a table.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Cookie-Conditional Sink Discovery
A "sink" (eval, deserialize, exec, template render) may behave differently — or not fire at all — depending on which session cookies are present. Recon MUST enumerate every cookie the app sets and re-test each candidate sink with and without each cookie before declaring the sink unreachable. Skipping this step is the most common cause of exploit handing back a false "blind sink" verdict.
Procedure
- Walk the app unauthenticated; record every
Set-Cookie(name, attributes, source endpoint). - Authenticate (every auth tier: anon, low-priv user, high-priv user) and record the full cookie jar after each.
- For each candidate sink (parameter, route, header, body field):
- Probe with NO cookies.
- Probe with FULL authenticated jar.
- Bisect: drop one cookie at a time and re-probe. The cookie whose removal silences the sink is the gating cookie.
- Document a "Sink preconditions" table in
recon_notes.mdandSUMMARY.md:
| Sink | Endpoint | Method | Required cookies | Behavior w/o cookie | Behavior w/ cookie | Notes |
|---|---|---|---|---|---|---|
bookmark_data (deser) |
/bookmarks/import |
POST | session=...; auth_tier=user |
302 → /login | 200 + processed | gated by auth_tier |
4a. Session mutation audit. For every endpoint that READS session, trace which other endpoints WRITE to the SAME session key BEFORE the security verdict (login, password check, role lookup). This is the data race-condition exploit needs. Output a "Session-write timeline" table:
| Endpoint | Reads session keys | Writes session keys (pre-verdict) | Slow ops (bcrypt/DB/network) | Race window (ms) |
|---|---|---|---|---|
POST /login |
— | user, auth_tier (set BEFORE bcrypt) |
bcrypt ~200ms | ~200 |
GET /admin_panel |
user, auth_tier |
— | — | reads during the login bcrypt window |
If the challenge tag includes race_condition, toctou, concurrent, or smuggling_desync and recon hands off WITHOUT this table, exploit MUST flag the handoff back as "recon incomplete: session-write timeline missing".
- In the handoff to exploit/postexploit, ALWAYS include a Required session state line:
Required session state: cookies=[session, auth_tier=user]; obtained via POST /login (creds: user@example.com / hunter2)
If recon hands off without this line, exploit is required to re-run cookie enumeration before concluding any sink is unreachable.
FAQ
Why check cookies one at a time?
Removing one cookie at a time shows which cookie really controls a feature.
What does the output look like?
It is a table of features, the cookies they need and how the site responds.
Who benefits?
Testers and developers who want clear, accurate results from session-based apps.
Details
Original description by the author
Cookie-conditional sink discovery — bisect required cookies per sink, session-write timeline for race-condition challenges.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14154
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.