cookie_audit
Follows a host's redirect chain, audits each Set-Cookie for Secure, HttpOnly, and SameSite flags, and grades cookie security while flagging HTTPS to HTTP downgrades.
Instructions
Follow a host's redirect chain and audit the cookies it sets.
Walks each redirect hop (capped at 10) from the host, recording status and Location and flagging any HTTPS->HTTP downgrade. Every Set-Cookie seen along the way is checked for the Secure, HttpOnly, and SameSite flags and graded. Cookie values are never returned (they may be secrets).
Args: host: Hostname to inspect, e.g. "example.com". port: TCP port. Defaults to 443 when use_ssl is True, else 80. use_ssl: Start the chain over HTTPS (default True). timeout: Per-hop network timeout in seconds.
Returns: A dict with host, redirect_chain, final_url, cookies (flags only), cookie_grade, cookie_score, and a findings list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| timeout | No | ||
| use_ssl | No |