T09 · Insecure Skill Coding Practices
- Location
scripts/api/save-article.mjs:206- Finding
Path Traversal Allows Upload of Arbitrary Readable Local Files
- Content
View full analysis
/images`. The resolved path is passed to `apiPostMultipart()`, which reads the entire file and uploads it to the configured feima-lab endpoint. Symbolic links placed inside the images directory can create an equivalent escape because the code does not compare canonical paths obtained through `realpath()`. Although uploading article images is necessary for the declared publishing functionality, reading and uploading files outside the article image directory exceeds the minimum filesystem privileges requir ...[truncated 1426 chars]- Remediation
View remediation
