T09 · Insecure Skill Coding Practices
- Location
scripts/download_pmc_pdf.py:115- Finding
Unrestricted Output Filename Allows Path Traversal and Arbitrary PDF File Overwrite
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill does what it claims, but its downloader can write outside the chosen download folder and overwrite existing PDF files if given a crafted filename.
Review before installing. Use only trusted identifiers and simple filenames without slashes or `..`, run it in a dedicated folder or virtual environment, and avoid letting untrusted text choose `--filename` or `--output` values. The publisher should constrain filenames to basenames, prevent accidental overwrites, and pin dependencies.
scripts/download_pmc_pdf.py:115Unrestricted Output Filename Allows Path Traversal and Arbitrary PDF File Overwrite
SKILL.md:80Unpinned Third-Party Dependency Installation
The skill declares network and file-read capable behavior in its documentation but does not explicitly constrain tool permissions or allowed tools. In agent environments, missing scope declarations can lead to over-broad execution privileges, making unintended network access or local file access more likely if the runtime grants defaults.
The markdown mixes an English header with the substantive usage instructions in Chinese, which effectively forces one language for users without opt-in. The policy explicitly calls for flagging language or locale constraints when the skill does not offer a user language choice or document a justified regional limitation.
No suspicious patterns detected.