T03 · Remote Payload Retrieval and Execution
- Location
commands/report.md:195- Finding
Third-party remote JavaScript executes within sensitive health reports
- Content
View full analysis
``` From `references/health-trend-analyzer/templates/report-template.html:7-15`: ```html ``` ### Technical Analysis The generated HTML reports load executable JavaScript directly from multiple third-party CDN domains. The reports are intended to contain sensitive medical information, including patient profiles, biochemical results, imaging summaries, medications, allergies, symptoms, surgeries, and discharge records. JavaScript loaded by an HTML report executes with access to that report's DOM. If a CDN response, hosted package, mutable release, or delivery path is compromised, the remote script can inspect and transmit the report contents. This creates a remote payload channel whose effective code can change after the Skill package has been reviewed. Several controls that would reduce this risk are absent: - No Subresource Integrity hashes are specified. - No restrictive Content Security Policy is defined. - `lucide@latest` is a mutabl ...[truncated 1846 chars]- Remediation
View remediation
``` 6. Set `connect-src 'none'` to prevent report scripts from initiating outbound network requests. 7. Provide an offline report mode as the default and require explicit informed consent before generating a report that loads remote resources. 8. Document and lock dependency versions, hashes, provenance, and update procedures. ]]>
