T09 · Insecure Skill Coding Practices
- Location
scripts/db_backup.sh:8- Finding
Arbitrary Shell Execution Through Unsafe .env Sourcing
- Content
View full analysis
/tmp/executed-as-backup-user ``` 3. A user or automation process runs any affected script from that directory. 4. The script executes `source .env`. 5. The injected shell command runs with the operating-system privileges of the invoking account. 6. The attacker can then access files and credentials available to that account or modify subsequent script behavior. ### Impact Assessment Successful exploitation provides arbitrary local command execution as the account running the script. This can expose database credentials, backup contents, SSH or service credentials, and any other files readable by that account. It can also permit file modif ...[truncated 230 chars]- Remediation
View remediation
