T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:57- Finding
Unpinned Remote Shell Script Retrieval and Execution
- Content
View full analysis
``` If the script is missing, the Skill instructs the Agent to retrieve it dynamically: ```bash curl -o scripts/sync-review.sh https://raw.githubusercontent.com/dengjiawei1226/ielts-reading-review/main/scripts/sync-review.sh chmod +x scripts/sync-review.sh ``` ### Technical Analysis The Skill retrieves executable shell code from the mutable `main` branch of a personal GitHub repository. It does not pin the download to an immutable commit, validate a cryptographic checksum, verify a digital signature, or inspect the downloaded content before execution. Although the current package includes a local copy of the script, the documented fallback creates a remote code execution channel whenever that file is missing. The effective behavior of the Skill can therefore change after review without any modification to the audited package. This behavior exceeds the minimum privileges required to upload a JSON document. Upload functionality can be implemented entirely by the bundled, reviewed script and does not require downloading replacement executable code at runtime. ### Attack Path 1. An attacker compromises or otherwise gains control of the referenced GitHub account or repository. 2. The attacker modifies `scripts/sync-review.sh` on the `main` branch to include malicious shell commands. 3. The local bundled script is absent, removed, or unavailable. 4. The Agent follows the fallback instructions and downloads the attacker-controlled script. 5. The Agent invokes the downloaded script with Bash during the normal upload workflow. 6. The malicious commands execute with all permissions available to the Agent process. ### Impact Assessment Successful exploitation provides arbitrary command execution under the account running th ...[truncated 504 chars]- Remediation
View remediation
