Tag

Tips tagged #authorization

Published tips with this tag, newest first. Payloads and commands are shown as plain text.

Authorization tips, and how to hunt it

Feed of #authorization

Tag #authorizationRemove tag filter

  • Test for IDOR via sequential IDs

    When 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…

    Insecure direct object reference (IDOR)Discovery

  • Test default scopes for bypass

    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…

    Insecure direct object reference (IDOR)Discovery

  • Test API endpoints for missing auth

    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.

    AuthorizationDiscovery

  • Test 2FA setup on unverified accounts

    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.…

    AuthenticationDiscovery

  • Test Object References For IDOR

    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…

    Insecure direct object reference (IDOR)Discovery

  • Test OAuth 2.0 redirect_uri validation

    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…

    OAuth and SSODiscovery

  • Test cron job access control

    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…

    AuthorizationExploitation