T03 · Remote Payload Retrieval and Execution
- Location
index.html:7- Finding
Unpinned Remote JavaScript Is Retrieved and Executed at Runtime
- Content
View full analysis
<\/script> ``` The dashboard generator embeds the same remote dependency into every regenerated dashboard: ```python html = f''' 🧠 Her-Agent 发展进度看板 `. In ordinary HTML source, the escaped form can cause incorrect parsing. This parsing defect does not eliminate the underlying security concern that the page requests an external executable resource. ### Attack Path 1. The user opens `index.html`, or opens a dashboard generated by `scripts/update_dashboard.py`. 2. The browser requests `https://d3js.org/d3 ...[truncated 1321 chars]- Remediation
View remediation
``` 2. Record and verify the vendored file's cryptographic checksum during releases. 3. If remote delivery is unavoidable, use an immutable versioned URL and Subresource Integrity: ```html ``` 4. Add a restrictive Content Security Policy that permits scripts only from explicitly approved sources and avoids `unsafe-inline` where practical. 5. Update both `index.html` and the template in `scripts/update_dashboard.py`; otherwise, running the updater will restore the vulnerable reference. 6. Replace `<\/script>` with the valid `` closing tag in ordinary HTML output and test the generated document with an HTML validator. ]]>
