T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/download_tiktok.sh:20- Finding
Persistent Browser Profile Exposed to Cookie-Assisted Downloader
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This TikTok downloader is mostly purpose-aligned, but it automatically uses a persistent browser profile's cookies without tight URL scoping or explicit opt-in.
Review before installing. Use this only with a dedicated TikTok-only browser profile or cookie file, and avoid pointing it at a general browser profile with personal logins. Confirm URLs are TikTok URLs before running, and treat downloads made with cookies as actions that may use your logged-in session.
scripts/download_tiktok.sh:20Persistent Browser Profile Exposed to Cookie-Assisted Downloader
The code does perform TikTok video downloading from a supplied URL and uses cookies plus a custom user-agent, which partially matches the description. However, several declared capabilities are not actually implemented: there is no logic for hashtag-based downloads, no batch processing of multiple URLs, and no user-agent rotation—just one hardcoded user-agent string. The claimed 403 handling is also overstated, since the script only does a generic fallback retry without cookies rather than detecting or specifically handling HTTP 403 errors. Therefore the description materially overstates the implemented behavior.
The skill instructs use of browser-derived cookies from a local browser profile to access TikTok content, but does not warn the user that authenticated session data may be reused during downloads. This can lead to unintended use or exposure of logged-in session context, including access to account-scoped content or leakage of sensitive browser session material through logs, outputs, or downstream tooling.
The script automatically reads cookies from a local Chromium browser profile and sends them to yt-dlp for a network request, which can expose authenticated session data to an external service without explicit user consent or warning. In an agent skill context, this is more dangerous because the automation may run unattended and users may not realize their browser credentials are being leveraged to access or retrieve protected content.