T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:99- Finding
Broad Browser Cookie Access for Bilibili Requests
- Content
View full analysis
Server IPs may get 412. Use `--cookies-from-browser chrome` or configure proxy. ``` ### Technical Analysis The documented `--cookies-from-browser chrome` option directs `yt-dlp` to access Chrome's cookie database. This credential store can contain authenticated sessions for many unrelated domains, while the immediate operation only requires credentials applicable to Bilibili. The instruction therefore crosses a least-privilege boundary: instead of supplying narrowly scoped Bilibili credentials, the invoked tool is granted access to a general-purpose browser profile. Although `yt-dlp` normally filters cookies according to the requested URL, it must still access and process the browser cookie store. A compromised, replaced, or vulnerable executable could misuse that access. No evidence indicates that the Skill itself intentionally exfiltrates browser cookies. The risk arises from granting a third-party local tool access to credentials beyond the minimum scope needed for the requested task. ### Attack Path 1. A user requests content from Bilibili. 2. The request fails because the server IP receives an HTTP 412 response. 3. Following the Skill instructions, the Agent invokes `yt-dlp` with `--cookies-from-browser chrome`. 4. The process obtains access to the user's Chrome cookie database. 5. If the executable or one of its dependencies is compromised, it can read or misuse session credentials unrelated to Bilibili. 6. The exposed sessions could then be used to access other authenticated services as the user. ### Impact Assessment Successful exploitation could expose browser session cookies for services beyond the requested platform. Depending on the available cookies and service-side protections, this could enable unauthorized account access, session impersonation, or ...[truncated 254 chars]- Remediation
View remediation
