T09 · Insecure Skill Coding Practices
- Location
scripts/kroger.sh:106- Finding
Arbitrary Python Code Execution Through Unsafe String Interpolation
- Content
View full analysis
"`. 3. `cmd_search` inserts the term into the source string passed to `python3 -c`. 4. The crafted value terminates the expected Python string and adds attacker-selected Python code. 5. Python executes the injected code locally before or while URL encoding is attempted. 6. The injected code operates with the same filesystem, environment, network, and process privileges as the Skill. The same underlying path is possible through a malicious `KROGER_REDIRECT_URI` when `scripts/kroger.sh auth` is run. ### Impact Assessment Successful exploitation permits arbitrary local code execution under the account running the Skill. Depending on that account's permissions, an attac ...[truncated 494 chars]- Remediation
View remediation
