T09 · Insecure Skill Coding Practices
- Location
SKILL.md:31- Finding
TLS Certificate Verification Disabled for Media Retrieval
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 31–34
Vulnerability Type: Disabled TLS certificate validation
Risk Level: Mediumbash # 1. 获取视频时长 yt-dlp --dump-json --no-check-certificate "URL" | jq -r '.duration, .title' # 2. 下载音频 yt-dlp -f bestaudio --no-check-certificate "URL" -o audio.m4aTechnical Analysis
Both documented
yt-dlpcommands use--no-check-certificate, which disables validation of the remote server's TLS certificate. This preventsyt-dlpfrom reliably authenticating the endpoint from which metadata and media are retrieved.An attacker able to intercept or redirect network traffic could impersonate the intended endpoint and provide modified metadata or media. The risk applies both to the initial metadata query and to the subsequent audio download.
Attack Path
- A user asks the Agent to transcribe a supported video.
- The Agent invokes the documented
yt-dlpcommand with--no-check-certificate. - An attacker with control over DNS resolution, a network gateway, or another relevant traffic-interception position redirects the connection.
- Because certificate validation is disabled, the Agent accepts the attacker's endpoint without detecting the certificate mismatch.
- Attacker-controlled metadata or media is written to the working environment and processed by downstream tools.
Impact Assessment
A successful attacker can substitute the media and metadata processed by the workflow, compromising transcription integrity and potentially exposing downstream media parsers to maliciously crafted input. This does not directly grant elevated privileges; any additional effect would occur within the permissions of the Agent and the invoked media-processing tools.
- Remediation
View remediation
Remediation Suggestions
- Remove
--no-check-certificatefrom everyyt-dlpinvocation. - Keep operating-system and runtime CA certificate stores current.
- Diagnose certificate failures rather than bypassing verification.
- Restrict accepted URLs to HTTPS endpoints on explicitly approved Bilibili and YouTube domains.
- Fail closed when TLS authentication or hostname validation fails.
- Remove
