Test API endpoints for missing auth

AuthorizationDiscovery

Written with a model's help from “How Peloton Confused Authentication with Authorization” by L4ZZ3RJ0D on l4zz3rj0d (Medium). Read the writeup before relying on it.

When testing API endpoints, try sending requests with no authentication attached to see if they still respond. This can reveal endpoints that are missing authentication checks. If you find one, check other endpoints the same app uses to see if the same mistake was made elsewhere. Additionally, when an endpoint is protected by a login, test for Broken Object Level Authorization by logging in as one account, noting an object ID, then switching to another account and requesting that same ID. If the second account can access the first account's data, the endpoint is vulnerable.

Follow #api or #authorization for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.