Back to skills
SKILL.md
Cookie Hygiene
ASecurityCookie-attribute assessment — HttpOnly, Secure, SameSite, Domain/Path scope, and __Host-/__Secure- prefixes on session and sensitive cookies, plus overscoped/duplicate cookies and prefix-bypass attempts. Tier 1 (feeds XSS/CSRF/session findings). Use as a sweep wherever cookies carry auth or sensitive state.
- 16 stars
- 0 votes
- 0 copies
- 4 views
- Added November 17, 2026
Security analysis
100/100npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill cookie-hygiene --agent claude-codeAre you the author of Cookie Hygiene?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-cookie-hygiene)---
name: cookie-hygiene
description: Cookie-attribute assessment — HttpOnly, Secure, SameSite, Domain/Path scope, and __Host-/__Secure- prefixes on session and sensitive cookies, plus overscoped/duplicate cookies and prefix-bypass attempts. Tier 1 (feeds XSS/CSRF/session findings). Use as a sweep wherever cookies carry auth or sensitive state.
---
# Cookie Hygiene
Weak cookie attributes amplify XSS, CSRF, and session attacks. Check every auth/sensitive cookie.
## Trigger phrases
`cookie flags, httponly, secure flag, samesite, __host-, __secure-, cookie scope`
## Checklist
- **HttpOnly:** missing on session/token cookie → XSS-stealable (→ chains to `reflected-xss`/`stored-xss`).
- **Secure:** missing → sent over HTTP; interceptable.
- **SameSite:** `None` (CSRF-exposed), `Lax` (top-level-GET + ~2-min window), `Strict`, or unset (browser-default drift) — map to CSRF risk (→ `csrf`).
- **Domain/Path scope:** overscoped to parent domain → subdomain cookie theft/injection; too-broad path.
- **`__Host-`/`__Secure-` prefixes:** present on sensitive cookies? `__Host-` requires Secure + no Domain + Path=/; absence weakens against subdomain injection/fixation. Test prefix-parsing/sandwiching bypasses.
- **Duplicate/conflicting cookies**, overlong lifetimes, sensitive data in cookie values.
## Reporting
Per cookie: the missing/weak attribute and the enabled attack; dedupe site-wide.
## Verification (background, before reporting)
Re-check the header/response across multiple endpoints and a clean request to avoid false positives; confirm exploitability (not just absence) before rating. Report true positives only. Backend/Burp: see `zazy-orchestrator`.
## Evidence
The Set-Cookie headers, the weak attribute, and the enabled risk.
Attribution
Related skills
View all in security →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.