T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:682- Finding
Generated Reports Execute Mutable Third-Party JavaScript Without Integrity Verification
- Content
View full analysis
``` From `SKILL.md:758-760`: ```html ``` ### Technical Analysis The Skill instructs the agent to generate HTML reports that load and execute JavaScript directly from third-party CDNs. Tailwind CSS and Chart.js are referenced without explicit versions, while Alpine.js uses the floating `3.x.x` version range. None of the script elements provide Subresource Integrity hashes. Consequently, the JavaScript executed when a report is opened is not fully represented by the audited project. Its contents can change after the Skill has been reviewed. A compromised CDN, malicious upstream release, compromised package-publishing account, or unintended breaking release could cause arbitrary JavaScript to execute in the generated report. This most closely matches `T03: Remote Payload Retrieval and Execution` because the generated artifact retrieves executable code from external URLs and allows the effective payload to change after review. It also presents a supply-chain concern, but no evidence ind ...[truncated 1853 chars]- Remediation
View remediation
``` 4. **Deploy a restrictive Content Security Policy** - Restrict `script-src` to local assets or explicitly trusted, integrity-protected sources. - Disable inline script execution where practical. - Restrict `connect-src` to prevent unauthorized data exfiltration. 5. **Minimize executable dependencies** - Use precompiled CSS instead of the Tailwind browser runtime. - Implement simple interactions with reviewed local JavaScript where feasible. - Generate static charts or use a locally bundled, fixed Chart.js release. 6. **Document and review dependency updates** - Maintain an inventory of dependency names, exact versions, hashes, and sources. - Review release changes before updating generated templates. ]]>
