T09 · Insecure Skill Coding Practices
- Location
'); process.exit(1); } const result = await upload_media({ file_path: file }); ``` ### Technical Analysis The media upload function accepts an arbitrary filesystem path and passes it directly to `readFileSync`. It does not: - Restrict access to a designated media directory. - Canonicalize the supplied path before enforcing a boundary. - Reject absolute paths or traversal sequences. - Reject symbolic links. - Verify that the target is a regular file. - Validate the actual file signature against the decl ...[truncated 2294 chars]:211- Finding
Arbitrary Local File Disclosure Through Media Upload
- Content
View full analysis
'); process.ex ...[truncated 2684 chars]- Remediation
View remediation
