T09 · Insecure Skill Coding Practices
- Location
clup.sh:139- Finding
Unescaped User Input Allows JSON Payload Injection
- Content
View full analysis
["tag1","tag2"] if [[ -n "$TAGS" ]]; then IFS=',' read -ra TAG_ARRAY <<< "$TAGS" TAGS_JSON=$(printf ',"%s"' "${TAG_ARRAY[@]}") TAGS_JSON="[${TAGS_JSON:1}]" # Remove leading comma and wrap in brackets else TAGS_JSON="[]" fi # Build JSON payload JSON_PAYLOAD=$(cat <- Remediation
View remediation
