T09 · Insecure Skill Coding Practices
- Location
scripts/search.sh:55- Finding
Insufficient JSON Validation Allows Search API Request Manipulation
- Content
View full analysis
- Remediation
View remediation
/dev/null; then echo '{"code":400,"msg":"include_domains must be an array of at most 20 domain strings"}' exit 1 fi if ! jq -e 'type == "array" and length <= 20 and all(.[]; type == "string")' \ <<<"$EXCLUDE_DOMAINS" >/dev/null; then echo '{"code":400,"msg":"exclude_domains must be an array of at most 20 domain strings"}' exit 1 fi PAYLOAD="$( jq -n \ --arg engine "$ENGINE" \ --arg query "$QUERY" \ --argjson max_results "$MAX_RESULTS" \ --arg time_filter "$TIME_FILTER" \ --argjson include_domains "$INCLUDE_DOMAINS" \ --argjson exclude_domains "$EXCLUDE_DOMAINS" \ '{ engine: $engine, query: $query, max_results: $max_results, time_filter: $time_filter, inc ...[truncated 193 chars]
