T09 · Insecure Skill Coding Practices
- Location
scripts/extract-styles.py:159- Finding
Unrestricted URL Navigation Enables Server-Side Request Forgery
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a coherent webpage design-extraction helper, but it should be used with normal caution around browser access, file output paths, and third-party dependencies.
Install and run this in a normal isolated project or virtual environment, prefer public/trusted target URLs, avoid pointing it at localhost, private network, cloud metadata, or sensitive internal pages, and keep any --out path under the skill's assets/theme directory unless you intentionally want an intermediate file elsewhere. Pin Playwright in controlled environments and be aware that some sample HTML specimens may load external fonts when opened.
scripts/extract-styles.py:159Unrestricted URL Navigation Enables Server-Side Request Forgery
SKILL.md:606Unpinned Playwright and Chromium Installation Creates Supply-Chain Risk
assets/theme/planetono-style-specimen.html:8Supposedly Self-Contained HTML Specimens Load Undeclared External Fonts
This is the same underlying issue expressed with more detail: the skill claims narrowly scoped, full design-system extraction with local asset-only writes, while the implementation behavior described by analysis allows arbitrary path output and only partial JSON extraction. Such description-behavior drift can bypass reviewer expectations and lead to unsafe use of the helper scripts in more privileged contexts.
This is the same underlying issue expressed with more detail: the skill claims narrowly scoped, full design-system extraction with local asset-only writes, while the implementation behavior described by analysis allows arbitrary path output and only partial JSON extraction. Such description-behavior drift can bypass reviewer expectations and lead to unsafe use of the helper scripts in more privileged contexts.
Referenced artifact was not completely inspected
The directory containing that `SKILL.md` file is `SKILL_DIR`. All output goes under `SKILL_DIR/assets/theme/`.
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
<button class="btn btn-secondary theme-toggle" id="themeToggle">Toggle theme</button>
</div>
<!-- SECTION: Visual Character — replace component CSS below with extracted styles from target site -->
<section class="section hero">
<h2 style="margin-top:0;">Visual Character</h2>
<p class="muted">Replace this with a concise summary of the extracted design language, including atmosphere and motifs.</p>
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
</div>
</section>
<!-- SECTION: Color Board — replace component CSS below with extracted styles from target site -->
<section class="section">
<h2>Color Board</h2>
<div class="grid grid-3">
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
</div>
</section>
<!-- SECTION: Typography — replace component CSS below with extracted styles from target site -->
<section class="section">
<h2>Typography</h2>
<div class="card">
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
</div>
</section>
<!-- SECTION: Background System — replace component CSS below with extracted styles from target site -->
<section class="section">
<h2>Background System</h2>
<!-- Add/remove bg-sample cards based on actual background layers found -->
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
<!-- SECTION: Background System — replace component CSS below with extracted styles from target site -->
<section class="section">
<h2>Background System</h2>
<!-- Add/remove bg-sample cards based on actual background layers found -->
<div class="background-board">
<div class="bg-sample bg-page-base">
<div class="bg-label">Page Base</div>
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
</div>
</section>
<!-- SECTION: Motif Library — replace component CSS below with extracted styles from target site -->
<section class="section">
<h2>Motif Library</h2>
<!-- Add/remove motif cards based on what motifs were actually found in the target site -->
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
<!-- SECTION: Motif Library — replace component CSS below with extracted styles from target site -->
<section class="section">
<h2>Motif Library</h2>
<!-- Add/remove motif cards based on what motifs were actually found in the target site -->
<div class="motif-grid">
<div class="motif-card motif-stripe">Diagonal Stripe</div>
<div class="motif-card motif-gridline">Gridline</div>
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
</div>
</section>
<!-- SECTION: Cards — replace component CSS below with extracted styles from target site -->
<section class="section">
<h2>Cards</h2>
<div class="grid grid-3">
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
</div>
</section>
<!-- SECTION: Forms — replace component CSS below with extracted styles from target site -->
<section class="section">
<h2>Forms</h2>
<div class="card">
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
</div>
</section>
<!-- SECTION: Navigation — replace component CSS below with extracted styles from target site -->
<section class="section">
<h2>Navigation</h2>
<div class="card">
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
</div>
</section>
<!-- SECTION: Table — replace component CSS below with extracted styles from target site -->
<section class="section">
<h2>Table</h2>
<table class="table">
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
</table>
</section>
<!-- SECTION: Prose — replace component CSS below with extracted styles from target site -->
<section class="section">
<h2>Prose</h2>
<div class="card prose">
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
</div>
</section>
<!-- SECTION: Code Block — replace component CSS below with extracted styles from target site -->
<section class="section">
<h2>Code Block</h2>
<div class="code">
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
</div>
</section>
<!-- SECTION: Callouts — replace component CSS below with extracted styles from target site -->
<section class="section">
<h2>Callouts</h2>
<div class="grid grid-2">
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
</div>
</section>
<!-- SECTION: Overlay — replace component CSS below with extracted styles from target site -->
<section class="section">
<h2>Overlay</h2>
<div class="overlay-demo">
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
</div>
</section>
<!-- SECTION: Animation System — add extracted @keyframes demos below -->
<section class="section">
<h2>Animation System</h2>
<p class="muted" style="margin-bottom:16px;">Replace this section with extracted @keyframes from the site's CSS. Add animation demo boxes and the @keyframes definitions in the CSS section above.</p>
The script accepts a caller-supplied output path and writes JSON there without constraining it to the skill’s declared assets/theme directory. In an agent context, this can violate the skill boundary and allow overwriting or planting files elsewhere on the filesystem, which is especially risky because the skill metadata explicitly promises it will never write into the user’s project.
The script accepts an arbitrary --out path and writes extracted page data directly to that location without constraining it to the skill’s assets/theme directory. In an agent context, this can violate the skill’s stated boundary and enable overwriting files outside the skill workspace, including user project files or other sensitive local paths if the caller can influence arguments.
The skill instructs the agent to write files into its own assets/theme directory but does not declare any explicit tool scope such as allowed-tools or permissions. That creates an avoidable overprivilege gap: if the runtime grants broader file-write capability than intended, the skill can write beyond its documented boundary or be combined with prompt-injected path changes in future edits.
Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
Before writing any output file, resolve the skill directory by running:
Glob pattern: **/skills/extract-design/SKILL.md
The directory containing that SKILL.md file is SKILL_DIR. All output goes under SKILL_DIR/assets/theme/.
Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
Before writing any output file, resolve the skill directory by running:
Glob pattern: **/skills/extract-design/SKILL.md
The directory containing that SKILL.md file is SKILL_DIR. All output goes under SKILL_DIR/assets/theme/.
The 'When to use' and 'Do not use' trigger guidance is presented in Chinese bullet points, which imposes a specific language on users or maintainers reading the skill. The file does not state that Chinese is optional, provide an alternative language version for these instructions, or offer a user language choice.