Test API Endpoints For Missing Auth
When testing an API with an OpenAPI spec, identify endpoints that are marked as public or optional, and those that require authentication. Use a script to extract these endpoints from the spec and then probe them with and without a token to confirm whether the server enforces the declared security. For endpoints that are marked as requiring authentication, send a request without a token to see if the server still responds with a 200 status code. If it does, try to prove the vulnerability by creating a unique resource with a test account and then requesting it without any credentials to see if the marker is returned. This technique can help you find cases of missing authentication for critical functionality, such as CWE-306.
Follow #api, #authentication or #recon for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.
Comments
No comments yet.