T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:79- Finding
Mutable Third-Party JavaScript Is Executed Without Version or Integrity Pinning
- Content
View full analysis
``` `references/integration.md:27`: ```html ``` ### Technical Analysis The recommended integration loads executable JavaScript from a mutable external URL. The URL does not identify an immutable release, and the example provides neither a Subresource Integrity hash nor another mechanism for verifying the downloaded file. Although the script is hosted on the declared Kivicube vendor domain and its use is consistent with the Skill's documented purpose, its effective payload can change after this Skill has been reviewed. A compromise of the vendor infrastructure, CDN, DNS resolution path, or deployment account could therefore turn an otherwise legitimate integration into a remote code-execution channel in every host page following this guidance. Unlike iframe content, an external `- Remediation
View remediation
``` 3. Do not invent or reuse an integrity value. Generate and verify it against a reviewed, approved release. 4. If immutable vendor releases and SRI are unavailable, consider self-hosting an approved copy when licensing and support requirements permit. 5. Pin the approved file checksum in the deployment pipeline and fail builds when the downloaded artifact differs. 6. Apply a restrictive Content Security Policy, limiting `script-src`, `connect-src`, `frame-src`, and other relevant directives to required origins. 7. Monitor vendor security advisories and establish a controlled process for reviewing and updating the pinned plugin version. 8. Apply the hardened loading instructions consistently in both `SKILL.md` and `references/integration.md`. ]]>
