T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:34- Finding
Mutable JavaScript Is Loaded from an Unauthenticated HTTP Origin
- Content
View full analysis
``` ```javascript dmapgl.serviceUrl = 'http://172.26.64.84/api'; ``` ### Technical Analysis The Skill's primary quick-start instructions direct generated applications to load executable JavaScript from the private IP address `172.26.64.84` over plaintext HTTP. The remote script is executed with the privileges of the page that imports it. HTTP provides no transport authentication or integrity protection. An attacker able to intercept the connection, compromise the private server, manipulate routing or DNS infrastructure, or gain access to the relevant network segment could replace `dmap-gl.js` with arbitrary JavaScript. No Subresource Integrity hash is supplied to detect such modification. The payload may also change after the Skill package has been audited because the executable content is not included in the audited repository. This creates a remote payload execution channel whose effective behavior depends on the server response at runtime. The HTTP API and style endpoints also lack transport protection. Their responses could be modified in transit, potentially supplying malicious map data or style content. Applications served over HTTPS may reject these HTTP resources as mixed content, resulting in availability failures. ### Attack Path 1. A developer follows the Skill's quick-start example and deploys a page that imports `dmap-gl.js` from `http://172.26.64.84`. 2. An a ...[truncated 1436 chars]- Remediation
View remediation
``` 5. Configure a restrictive Content Security Policy that permits scripts only from explicitly trusted origins and does not allow `unsafe-inline` or `unsafe-eval`. 6. Serve map styles, tiles, and API requests exclusively through HTTPS. 7. Replace the hard-coded private address in every reference with an explicit deployment placeholder so generated code cannot accidentally depend on the audit environment. 8. Document the expected artifact digest and provide a process for verifying downloaded files before deployment. ]]>
