Tips

Authentication tips

Authentication bugs let an attacker sign in as someone else or skip a check that should stop them. Login, sign-up, password reset, multi-factor and session handling each fail in their own ways.

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

  • I was awarded a $800 bounty on @Hacker0x01!

    Self-Elevation Issue via @company.com Email Address Format. using a hidden API endpoint that allowed me to change my email address, even though the functionality was disabled in the UI #BugBounty #BugBountytips pic.twitter.com/7u5aEeYf…

    AuthenticationExploitation

  • Test for Execution After Redirect

    When testing a .NET application, send requests to each endpoint and observe the response. Look for endpoints that return a 302 status code with a large Content-Length and HTML content in the body, indicating a potential Execution After Redirect (EAR) vulnerability. To confirm, m…

    AuthenticationDiscovery

  • Test Android apps for intent-based vulnerabilities

    When testing an Android app, look for exported activities that handle intent extras. An attacker can send an intent to an exported activity with arbitrary extras, potentially allowing them to import settings or leak private data. Check the app's code for activities that use inte…

    AuthenticationDiscovery

  • Test login rate limiting

    To test if a login endpoint is vulnerable to brute-force attacks, send multiple POST requests to the wp-login.php endpoint with different credentials. If the endpoint does not implement rate limiting, it will respond with a 200 OK status code for each failed login attempt. A suc…

    AuthenticationDiscovery

  • Test SAML signature verification

    Try sending a SAML response with the sigalg set to none or an otherwise invalid signature to see if the target accepts it. If the target verifies SAML signatures as optional, it may be vulnerable to session takeover. Look for a successful login or session establishment in the re…

    AuthenticationDiscovery

  • Test OAuth tokens for standing authentication

    Try sending an OAuth token with alg set to none to see if it is accepted. Also, test for exposed secrets in public repositories by searching for hardcoded credentials in GitHub commits. Look for standing authentication and unauthorized access to sensitive data. An attacker can u…

    AuthenticationDiscovery

  • Test token scope across shared login services

    When a target has multiple services sharing a login system, test whether a token issued for one service is accepted by another. Try using a token from a low-stakes service, such as a forum, to access a high-stakes service, such as an admin panel. Look for a response that indicat…

    AuthenticationDiscovery

  • Test Session Cookies For Flags

    Check the Set-Cookie header in responses from target.com for missing HttpOnly and Secure flags. Send a request to target.com with a cookie that lacks these flags to see if it is accepted. If the flags are missing, try accessing the cookie through document.cookie or intercepting…

    AuthenticationDiscovery

  • 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 gRPC services for unauthenticated access

    Look for gRPC services running on a target, such as on target.com:9095. Try to call methods without authentication to see if they are accepted. If the service listens on all interfaces, test it from another host, such as attacker.example, to see if authentication is required. Use

    AuthenticationDiscovery

  • Test MCP server exposure

    To test if an MCP server is exposed, first check what the process binds to with ss -tlnp | grep -E ':(3000|8000|8080|8443)'. A binding to 0.0.0.0 or [::] means the server is listening on all interfaces. Then, try an unauthenticated call to the server from outside its intended bo…

    AuthenticationDiscovery

  • Test OAuth login for overprivileged access

    When testing a target that uses OAuth login, such as Login with Google, try logging in with your own account to see if you are granted more access than you should have. Check if you can access sensitive data or administrative panels that you should not have access to. Look for C…

    AuthenticationDiscovery

  • Test AWS Cognito User Pools for ghost identities

    When testing an AWS Cognito User Pool with multiple external IdPs, try to create a ghost identity by registering a malicious OIDC server as an IdP and federating with an email address. If the PreSignUp_ExternalProvider trigger does not include a domain check, Cognito may persist…

    AuthenticationDiscovery

  • Test username as password

    When testing authentication attacks, try using the username as the password for discovered user accounts. This simple test can sometimes yield valid credentials, as seen in the case where the account ybob317 used its username as its password. After obtaining valid credentials, u…

    AuthenticationDiscovery

  • 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

    AuthenticationDiscovery

Authentication: how to hunt it

Where to look

  • Password reset: tokens that can be reused, tokens tied to the wrong account, and reset links built from the Host header.
  • Multi-factor steps that can be skipped, guessed without limit, or completed in another session.
  • Sessions that survive logout, a password change or an email change.
  • Rate limits on login, one-time codes and reset, and differences between web, mobile and API sign-in.

What proves it

Show a test account of your own taken over by an attacker with no access to it, and state every precondition.

Read further

Writeups on Authentication, by hunters and researchers, most with a short summary.

Related classes