T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/read_cookie.py:66- Finding
Browser Session Cookies Are Extracted and Disclosed in Plaintext
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill openly reads browser cookies, but it exposes sensitive session credentials too easily and without enough safeguards.
Install only if you explicitly need to export your own browser cookies for a named domain and can protect the output like a password. Avoid sharing terminal logs or saved files, avoid the cURL output unless you inspect and safely quote it, and prefer running it in a controlled environment with a pinned dependency version.
scripts/read_cookie.py:66Browser Session Cookies Are Extracted and Disclosed in Plaintext
scripts/read_cookie.py:43Generated cURL Command Is Vulnerable to Shell Injection
scripts/read_cookie.py:12Security-Critical Third-Party Dependency Is Not Enforced or Integrity-Pinned
The skill handles browser cookies, which often function as bearer tokens for active sessions, but its description and usage section do not prominently warn that outputting cookies to terminal, headers, curl commands, or files can expose account access. The minimal 'personal use' disclaimer does not mitigate the operational risk of leaking secrets through logs, shell history, shared files, or copied commands.
This script extracts browser cookies for an arbitrary domain and then prints them to stdout or writes them to a file in reusable formats such as a Cookie header or cURL command. Browser cookies often function as bearer tokens for authenticated sessions, so exposing them without an explicit warning, confirmation step, masking, or scope restrictions materially increases the risk of credential theft, session hijacking, and accidental disclosure through terminals, logs, shell history, or shared files.
The skill advertises the ability to read browser cookies and write them to files, which are highly sensitive authentication artifacts, yet it declares no explicit tool/permission scope. Without constrained allowed-tools or permissions, an agent may invoke shell and file-write capabilities more broadly than users expect, increasing the chance of unauthorized cookie extraction, persistence, or exfiltration.
The trigger condition, 'When you need to quickly get cookies from browsers,' is overly broad and can cause the skill to activate in many contexts involving browser access, login troubleshooting, or web automation. Because cookies can directly grant authenticated session access, broad activation raises the risk that the agent suggests or runs this skill in situations where the user did not intend sensitive credential extraction.
All docstrings, help text, and runtime messages are presented only in Chinese, with no option for users to select another language. The stated policy flags language or locale constraints when they are imposed without user opt-in or clear justification.
No suspicious patterns detected.