T09 · Insecure Skill Coding Practices
- Location
install.sh:158- Finding
Unsanitized Wallet Profile Identifier Allows Path Traversal and Arbitrary .env File Overwrite
- Content
View full analysis
"$PROFILE_DIR/.session-secret" chmod 0600 "$PROFILE_DIR/.session-secret" fi # Write PIMLICO_API_KEY to env file if provided if [[ -n "$PIMLICO_API_KEY" ]]; then echo "PIMLICO_API_KEY=$PIMLICO_API_KEY" > "$PROFILE_DIR/.env" chmod 0600 "$PROFILE_DIR/.env" log "Pimlico API key saved to $PROFILE_DIR/.env" fi ``` ### Technical Analysis The installer accepts `--agent-id` and `--session-id` without validating them before incorporating the selected value into `PROFILE_DIR`. A value containing path traversal sequences such as `../` can cause the resulting profile path to escape `$HOME/.o ...[truncated 2271 chars]- Remediation
View remediation
