T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:73- Finding
Broad Access to Browser-Stored Authentication Cookies
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 73
Vulnerability Type: Least-privilege violation through browser credential access
Risk Level: HighCode Snippet:
markdown > Server IPs may get 412. Use `--cookies-from-browser chrome` or configure proxy.Technical Analysis
The Skill recommends using
yt-dlpwith--cookies-from-browser chromewhen a Bilibili request receives an HTTP 412 response. This option causes the invoked tool to access the local Chrome cookie database rather than relying on a narrowly scoped credential supplied specifically for Bilibili.A Chrome profile may contain authentication cookies for multiple unrelated services. Although
yt-dlpordinarily filters cookies according to the requested destination, granting a third-party executable access to the browser cookie store expands the accessible trust boundary and exposes sensitive session data to the tool and its dependency chain. The instruction does not require explicit consent, identify a dedicated browser profile, or restrict access to an exported target-domain cookie file.Attack Path
- The user asks the agent to retrieve Bilibili content.
- The request fails with an HTTP 412 response.
- Following the Skill instructions, the agent invokes
yt-dlpwith--cookies-from-browser chrome. - The tool accesses the Chrome profile and its cookie database.
- A compromised, malicious, or vulnerable tool or dependency could read or misuse browser session material available through that access.
- Exposed session cookies could potentially be replayed against affected services until they expire or are revoked.
Impact Assessment
Successful misuse could expose authenticated browser sessions and allow account access within the permissions of the affected user sessions. The potential scope includes the target platform and, depending on the browser profile and tool behavior, authentication material associated wi ...[truncated 191 chars]
- Remediation
View remediation
Remediation Suggestions
- Require explicit, informed user approval before accessing any browser profile.
- Use a dedicated browser profile containing only the target platform's account.
- Prefer a narrowly scoped cookie file exported only for the required Bilibili domains.
- Run the media retrieval tool in a sandbox with restricted filesystem and network access.
- Document exactly which files and credentials will be accessed before executing the command.
- Never log, persist, or transmit cookie values in command output or diagnostic reports.
- Provide a credential-free proxy configuration as the preferred fallback.
