T08 · Insecure Dependencies
- Location
reports/daily_report_20260304.html:7- Finding
Unpinned Remote Stylesheets Create a Supply-Chain and Privacy Risk
- Content
View full analysis
``` ### Technical Analysis The generated report automatically loads stylesheets from cdnjs and Google Fonts whenever the HTML file is opened with network access. Neither resource has a Subresource Integrity (`integrity`) attribute, and the document does not restrict resource origins with a Content Security Policy. Consequently, the report's rendered content depends on resources that can change after the project has been audited. A compromise of the CDN, its upstream package, the Google Fonts endpoint, or the relevant network trust chain could modify the report's presentation. Malicious CSS could conceal warnings, overlay deceptive links, alter the apparent meaning of financial information, or make attacker-controlled content appear to be part of the report. Loading these resources also discloses connection metadata, including the user's IP address, user agent, access time, and potentially the referring file or page context, to third-party providers. ### Attack Path 1. The Skill generates or distributes the HTML report. 2. A user opens the report in a network-connected browser. 3. The browser automatically requests the two remote stylesheets. 4. A compromised third-party provider or upstream resource returns modified CSS. 5. The modified stylesheet changes the report's presentation, potentially hiding disclaimers or creating deceptive visual elements. 6. The user may rely on the manipulated financial report or interact with content that appears legitimate. ### Impact Assessment The direct impact is limited to users ...[truncated 462 chars]- Remediation
View remediation
``` 5. Generate a self-contained report that does not make network requests when opened. 6. Add an automated build check that rejects unapproved external `href` and `src` origins. ]]>
