Send X-HTTP-Method-Override to reach endpoints a reverse proxy blocks by method
POST /api/admin/settings HTTP/1.1X-HTTP-Method-Override: PUTContent-Type: application/jsonTag
Published tips with this tag, newest first. Payloads and commands are shown as plain text.
Authorization tips, and how to hunt it
Tag #authorizationRemove tag filter
POST /api/admin/settings HTTP/1.1X-HTTP-Method-Override: PUTContent-Type: application/jsonWhen testing an API that serves records by numeric ID, try lowering the ID in a request to see if it returns other users' records. This can reveal an insecure direct object reference (IDOR) if the API checks only that the caller is logged in, not that the record belongs to the c…
When testing a Rails application, try using the unscoped method to bypass default scopes. This can help you identify potential IDORs (Insecure Direct Object References) by removing tenant boundaries or other authorization checks. Look for instances where unscoped is used to bypa…
When testing API endpoints, look for routes that lack authentication middleware. Try sending requests to these endpoints with a valid authentication token, but without the required admin or role-based access control. If the request is successful, it may indicate a vulnerability.…
Try modifying the assignedRoleNames field in a request to a higher privilege role, such as Admin, to see if the server accepts the change. Send a POST request to the /api/user/profile endpoint with the modified assignedRoleNames field, like this: POST /api/user/profile HTTP/1.1…
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.
When testing an application with 2FA, try to enroll in 2FA as an unverified user by sending a POST to the /api/profile/2fa/setup endpoint with a session cookie from an unverified account. If the server returns a TOTP secret without verifying the account, it may indicate a flaw.…
To test for Insecure Direct Object Reference (IDOR) vulnerabilities, try modifying id, user_id, account_id, and other object identifiers in requests to see if the application properly checks ownership and permissions. Use tools like Burp Suite to intercept and repeat requests, a…
When testing an OAuth 2.0 implementation, try manipulating the redirect_uri parameter to see if the server properly validates it. Test variations like https://attacker.example, https://target.com.attacker.example, https://target.com@attacker.example, and http://target.com/callba…
Try to create a cron job as a low-privileged user that executes a command as a more privileged user, such as sudo /usr/local/hestia/bin/v-change-user-password admin toor. If the cron job is created successfully, it may be possible to exploit a broken authorization check, such as…
When testing an application's API, try isolating the authentication context by testing session cookies and authentication headers independently. This can help identify authorization inconsistencies associated with the application's session-based authentication path. Look for dif…
When testing a target's redirect feature, try submitting a valid identifier, such as a tracking_number, without logging in or providing additional verification. If the feature returns sensitive information, such as the recipient's name, address, and phone_number, it may indicate…
When an app moved from /api/v1/ to /api/v2/, the old prefix is often still routed on the backend even though the frontend never calls it. Take an authenticated endpoint from the current version, for example GET /api/v2/orders/482/invoice, and replay it against the old prefix: GET