T09 · Insecure Skill Coding Practices
- Location
scripts/_common.sh:6- Finding
Long-Lived Authentication Token and User Identifiers Can Be Transmitted Over Plaintext HTTP
- Content
View full analysis
/dev/null 2>&1 || { echo "error: required binary not found: $bin" >&2 exit 127 } done MYAPP_CURL_MAX_TIME="${MYAPP_CURL_MAX_TIME:-180}" CURL_OPTS=(-sS --connect-timeout 5 --max-time "${MYAPP_CURL_MAX_TIME}" -H "X-MYAPP-TOKEN: ${MYAPP_API_TOKEN}" -H "Content-Type: application/json") ``` ```bash # scripts/register.sh:22-44 payload=$(jq -n \ --arg dumi_id "$dumi_id" \ --arg cuid "$cuid" \ --arg query "$query" \ --arg app_name "$app_name" \ --arg html_content "$html_content" \ --argjson features "$features" \ --arg icon_base64 "${icon_base64:-}" \ --arg tag "${tag:-app}" \ '{ dumi_id: $dumi_id, cuid: $cuid, query: $query, app_name: $app_name, html_content: $html_content, features: $features, icon_base64: (if $icon_base64 == "" then null else $icon_base64 end), tag: $tag }') curl "${CURL_OPTS[@]}" -X POST "${MYAPP_API_BASE}/myapp/register" --data-binary "$payload" ``` ### Technical Analysis The API base is supplied through an environment variable and is not restricted to HTTPS or to an appr ...[truncated 1942 chars]- Remediation
View remediation
