T09 · Insecure Skill Coding Practices
- Location
scripts/send-message.js:38- Finding
Arbitrary Local File Upload Through Unrestricted Media Paths
- Content
View full analysis
- Remediation
View remediation
/cache/images` - `/cache/files` 3. Perform the containment check using a path-separator-aware comparison. 4. Reject symbolic links or verify their final canonical targets. 5. Allow only approved file extensions and validate the actual MIME signature. 6. Enforce conservative file-size limits before reading files into memory. 7. Require explicit authorization before uploading a file derived from synchronized Wiki content. 8. Avoid using the current working directory as a security boundary. 9. Treat `IMG:` paths with the same validation as `MEDIA:` paths. ]]>
