T09 · Insecure Skill Coding Practices
- Location
scripts/perplexity_search.sh:168- Finding
Curl Configuration Injection Through Unvalidated API Key
- Content
View full analysis
/dev/null || echo "") if [[ -n "$config_key" ]]; then echo "$config_key" return fi fi # 2. Try environment variable if [[ -n "${PERPLEXITY_API_KEY:-}" ]]; then echo "$PERPLEXITY_API_KEY" return fi echo "" } ``` ```bash CURL_CONFIG_FILE=$(mktemp) chmod 600 "$CURL_CONFIG_FILE" trap 'rm -f "$CURL_CONFIG_FILE"' EXIT cat > "$CURL_CONFIG_FILE" <- Remediation
View remediation
