T09 · Insecure Skill Coding Practices
- Location
scripts/check-status.sh:12- Finding
Unvalidated API base URL can disclose the EvalPal bearer credential
- Content
View full analysis
/dev/null) || { echo "Error: Could not reach EvalPal API" >&2 exit 1 } ``` #### `scripts/run-eval.sh` ```sh API_URL="${EVALPAL_API_URL:-https://evalpal.dev}" ``` ```sh if [ -n "$_body" ]; then _response=$(curl -s -w "\n%{http_code}" -X "$_method" \ -H "Authorization: Bearer $EVALPAL_API_KEY" \ -H "Content-Type: application/json" \ -d "$_body" \ "${API_URL}${_path}" 2>/dev/null) || { echo "Error: Could not reach EvalPal API" >&2 exit 1 } else _response=$(curl -s -w "\n%{http_code}" -X "$_method" \ -H "Authorization: Bearer $EVALPAL_API_KEY" \ -H "Content-Type: application/json" \ "${API_URL}${_path}" 2>/dev/null) || { echo "Error: Could not reach EvalPal API" >&2 exit 1 } fi ``` #### `scripts/list-evals.sh` ```sh API_URL="${EVALPAL_API_URL:-https://evalpal.dev}" ``` ```sh _response=$(curl -s -w "\n%{http_code}" -X GET \ -H "Authorization: Bearer $EVALPAL_API_KEY" \ -H "Content-Type: application/json" \ "${API_URL}${_path}" 2>/dev/null) || { echo "Error: Could not reach EvalPal API" >&2 exit 1 } ``` ### Technical Analysis Authenticated network access is necessary for the Skill's declared EvalPal functionality. Sending `EVALPAL_API_KEY ...[truncated 2551 chars]- Remediation
View remediation
