T03 · Remote Payload Retrieval and Execution
- Location
scripts/sync-github.sh:158- Finding
Unverified Remote Restore Script Execution
- Content
View full analysis
--pull ``` 4. The script clones the repository into a temporary directory. 5. It changes into the repository-controlled `agent-backup` directory. 6. It executes `./restore.sh` without validating its origin or contents. 7. The malicious commands run with all privileges available to the user invoking the migration script. The same exploitation path applies if an otherwise trusted backup repository or its associated credentials are compromised. ### Impact Assessment An attacker can obtain arbitrary command execut ...[truncated 617 chars]- Remediation
View remediation
