T09 · Insecure Skill Coding Practices
- Location
scripts/html-to-pdf.mjs:20- Finding
Chromium Sandbox Is Unconditionally Disabled
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This HTML-to-PDF skill does what it claims, but it runs caller-supplied HTML in Chromium with the browser sandbox disabled by default and has weak output-path controls.
Review before installing. Use this only on trusted HTML or inside a disposable/containerized environment, remove or opt in explicitly to --no-sandbox, pin dependencies with a lockfile, and avoid running the font setup or converter under a privileged account. Be careful with output paths because existing files may be overwritten.
scripts/html-to-pdf.mjs:20Chromium Sandbox Is Unconditionally Disabled
scripts/html-to-pdf.mjs:31Output Directory Allowlist Can Be Bypassed Through Prefix Matching
SKILL.md:87Installation Instructions Use Unpinned npm Dependencies
Referenced artifact was not completely inspected
node scripts/html-to-pdf.mjs report.html
Referenced artifact was not completely inspected
node scripts/html-to-pdf.mjs report.html
Referenced artifact was not completely inspected
node scripts/html-to-pdf.mjs report.html
Referenced artifact was not completely inspected
node scripts/html-to-pdf.mjs report.html
Referenced artifact was not completely inspected
node scripts/html-to-pdf.mjs report.html
Referenced artifact was not completely inspected
node scripts/html-to-pdf.mjs report.html
Without declared permissions the skill's intent is opaque and cannot be validated.
The description states the tool renders HTML to '纯中文 PDF', which imposes a language constraint in natural-language documentation. The file does not present this as an optional mode or offer a user language choice, so it appears to enforce a specific language/locale without opt-in.
The skill instructs users to copy fonts into ~/.fonts and rebuild the font cache, which creates persistent changes to the user's environment outside the immediate task. Persistent modification of user directories can have unintended side effects, survive across sessions, and in shared or managed environments may violate change-control expectations.
方法 A:从 Windows 复制(WSL 环境)
mkdir -p ~/.fonts
cp "/mnt/c/Windows/Fonts/Noto Sans SC (TrueType).otf" ~/.fonts/
cp "/mnt/c/Windows/Fonts/msyh.ttc" ~/.fonts/
cp "/mnt/c/Windows/Fonts/seguiemj.ttf" ~/.fonts/
The title and all instructional content in this file are presented exclusively in Chinese, with no indication that users may choose another language or locale. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy concern.