T08 · Insecure Dependencies
- Location
SKILL.md:138- Finding
Unpinned Third-Party Dependencies
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a straightforward Alibaba Bailian/DashScope text-to-speech helper with normal cloud API risks and some hardening gaps, but no hidden or destructive behavior.
Install in an isolated environment, pin dependency versions where possible, protect the DashScope API key, avoid submitting secrets or regulated personal data to the cloud TTS service, and treat output paths carefully because the script writes the downloaded audio to the path you choose.
SKILL.md:138Unpinned Third-Party Dependencies
scripts/tts.py:89Unvalidated API-Provided Audio Download URL
The script blindly trusts an audio URL returned by an external API and fetches it with requests.get without validating the scheme, host, or destination. If the upstream service is compromised or returns attacker-controlled URLs, this can enable server-side request forgery behavior or unintended network access from the host running the skill, and the fetched content is then written directly to a user-chosen file path.
audio_url = output['audio']['url']
# 下载音频
audio_response = requests.get(audio_url, timeout=60)
if audio_response.status_code == 200:
with open(output_file, "wb") as f:
f.write(audio_response.content)
The skill documents a cloud-based TTS service and even mentions API key configuration, but it does not clearly warn users that submitted text and, for voice-cloning features, optional audio samples may be sent to a third-party provider. This can lead users to unknowingly transmit sensitive or regulated data off-platform, creating privacy, compliance, and data-handling risks.
This code file contains user-facing natural-language descriptions and CLI help text that assume Chinese as the only interaction language. Under the policy, forcing a specific language without user opt-in can be a locale/language policy violation unless the restriction is explicitly justified.