T09 · Insecure Skill Coding Practices
- Location
scripts/publication_trends.sh:64- Finding
Gnuplot Command Injection Through Untrusted Script Arguments
- Content
View full analysis
/dev/null 2>&1; then ``` ### Attack Path 1. An attacker influences an argument passed to `publication_trends.sh`, such as the search query or output filename. 2. The script stores that argument without validating control characters or gnuplot syntax. 3. The value is interpolated into the unquoted heredoc used as gnuplot source. 4. The injected value closes the intended string and introduces an additional gnuplot statement. 5. If gnuplot is installed, it parses and executes the injected statement. 6. A system-command statement can execute an operating-system command under the identity running the Skill. ### Impact Assessment Successful exploitation provides arbitrary comma ...[truncated 422 chars]- Remediation
View remediation
