- Home
- Skills
- Agents & Orchestration
- Repair Cookie Scope Leakage
Works with the AI tools you already use
Repair Cookie Scope Leakage
Repair cookie scope leaks caused by incorrect Domain, Path, Secure, SameSite, host-only, public-suffix, port, or redirect handling.
$8.99
Repair Cookie Scope Leakage
Example session with this skill installed
Our Python SDK cookie jar treats host-only cookies as Domain cookies and matches Path with startswith, so /app cookies leak to /application and sibling subdomains. Repair with local fake requests. Preserve expiry, SameSite, Secure, redirect, and session behavior; never log cookie values.
- Read your context and instructions
- Compiled the repair cookie scope
Cookie authority defect found. Storage loses the host-only flag and request matching uses raw string prefixes, widening both domain and path scope. The repair preserves canonical scope metadata, applies directory-boundary path matching, keeps Secure/SameSite/expiry/session policy intact, and validates sibling domains, exact paths, deletion, redirects, and redacted telemetry without exposing cookie values.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
The problem
Cookie storage and matching logic in custom SDKs or proxies often grant broader authority than the Set-Cookie contract allows. This leads to security leaks where host-only cookies are sent to subdomains or secure cookies leak over unencrypted channels.
What it does
- Identifies failures in host-only, Domain, and Path matching logic within the repository.
- Patches Set-Cookie parsing to enforce canonical storage identity and public-suffix boundaries.
- Fixes deletion logic where different scopes prevent session cleanup.
- Corrects request attachment paths to prevent cookies from leaking to sibling tenants or parent domains.
- Implements redacted observability and deterministic local fixtures for regression testing.
Why this beats prompting it yourself
Manual prompts often overlook the nuance between host-only and Domain-level cookies, leading to incomplete fixes that break session persistence. This skill enforces a strict canonical contract for normalization and validation, ensuring repairs align with browser-compatible security standards without leaking secrets in logs.
Use cases
- Preventing session cookies from leaking to sibling subdomains in multi-tenant apps.
- Fixing broken cookie deletion logic caused by scope mismatches.
- Enforcing Secure and SameSite attributes in custom proxy or client implementations.
- Standardizing Path matching to prevent string prefix overlaps from leaking data.
Known limitations
Does not contact production services or read live secrets. Repository-level IDNA and public-suffix support depend on existing local libraries.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 26 days ago
- Passed all security checks, Safe to install