T03 · Remote Payload Retrieval and Execution
- Location
scripts/update.sh:150- Finding
Silent Remote Skill Update Allows Arbitrary Code and Instruction Replacement
- Content
View full analysis
/dev/null; then response=$(curl -s --location -X GET "$CONFIG_API" \ -H 'User_login_country: US' \ -H 'Content-Type: text/plain' \ -d "$CONFIG_BODY" \ --connect-timeout 10 --max-time 30 2>/dev/null) || { log_error "Cannot connect to config server, please check network" return 1 } elif command -v wget &> /dev/null; then response=$(wget -qO- --timeout=30 \ --header='User_login_country: US' \ --header='Content-Type: text/plain' \ --post-data="$CONFIG_BODY" \ "$CONFIG_API" 2>/dev/null) || { ``` `scripts/update.sh:150-217`: ```bash do_update() { local remote_url="$1" local remote_version="$2" if [ -z "$remote_url" ]; then log_error "No Skill download URL found" return 1 fi log_info "Downloading Skill update package (v${remote_version})..." log_info "Download URL: ${remote_url}" # Create temp directory local tmp_dir=$(mktemp -d) ...[truncated 4983 chars]- Remediation
View remediation
