wlzh-youtube-tracker
Fail
Audited by Gen Agent Trust Hub on Sep 29, 2026
Risk Level: HIGHCOMMAND_EXECUTIONCREDENTIALS_UNSAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
youtube-tracker-rss.jsis vulnerable to shell command injection through thehttpGetSyncandhttpGetAsyncfunctions. - These functions construct a shell command for
curlby directly interpolating a URL string:const cmd = \curl -sS -m ${Math.ceil(timeoutMs / 1000)} -x "${PROXY}" -L "${url}"`;`. - In the
resolveHandleToChannelIdfunction, theurlis built using a user-provided channel handle:const channelUrl = \https://www.youtube.com/@${handleClean}\`;`. - An attacker can provide a handle containing shell metacharacters (e.g.,
@"; <malicious_command> #) to break out of the quoted URL and execute arbitrary shell commands when the script attempts to resolve the handle. - [CREDENTIALS_UNSAFE]: The
youtube-tracker-rss.jsscript accesses sensitive Telegram bot credentials by reading from the user's home directory. - The function
loadBotTokenreads the file~/.openclaw/openclaw.jsonand extracts thebotTokenfield. - Reading generic configuration files from the home directory for credentials increases the risk of credential exposure if the skill or the environment is compromised.
- [INDIRECT_PROMPT_INJECTION]: The skill has an indirect prompt injection surface as it ingests and displays unsanitized content from external sources.
- Ingestion points: The skill fetches data from YouTube RSS feeds (
youtube-tracker-rss.js) and the YouTube API (youtube-tracker.js). - Boundary markers: The skill does not use any delimiters or warnings to instruct the agent to ignore instructions that might be embedded in video titles or descriptions.
- Capability inventory: The skill has the ability to write to the file system (
state/seen.json) and execute network requests viacurl. - Sanitization: External data like video titles and channel names are interpolated directly into agent-facing strings without escaping or validation.
Recommendations
- AI detected serious security threats
Audit Metadata