T09 · Insecure Skill Coding Practices
- Location
scripts/workflow.js:142- Finding
Shell Command Injection Through User-Controlled PDF Paths
- Content
View full analysis
' ``` 3. `path.resolve()` converts the path to an absolute path but preserves the shell-sensitive filename characters. 4. The application places the path inside the `cmd` string. 5. `execSync()` passes the resulting string to a shell. 6. The shell interprets the injected syntax and executes the attacker's command in addition to, or instead of, the PDF generator. An equivalent attack is possible through the optional output path. ### Impact ...[truncated 613 chars]- Remediation
View remediation
