Tag

Tips tagged #authentication

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

Authentication tips, and how to hunt it

Feed of #authentication

Tag #authenticationRemove tag filter

  • Test for CSRF

    To test for Cross-Site Request Forgery (CSRF) vulnerabilities, identify sensitive state-changing functionality on the target application, such as changing an email address or updating account information. Capture the HTTP request for the functionality using a tool like Burp Suit…

    Cross-site request forgery (CSRF)Discovery

  • Test API endpoints for IDOR

    When testing API endpoints, try to access resources that should belong to other users or organizations by modifying the organization_id or similar parameters in the request. If the endpoint returns data for other organizations, it may indicate an Insecure Direct Object Reference…

    Insecure direct object reference (IDOR)Discovery

  • Test profile updates for IDOR

    When testing a target like target.com, try updating your profile with a modified externalId field set to another user's ID, such as an admin's ID, and a new password. If the update is successful and you can log in as the targeted user, it may indicate an Insecure Direct Object R…

    Insecure direct object reference (IDOR)Discovery

  • 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 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 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 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

  • Test SAMLResponse for signature verification

    When testing a SAML integration, try modifying the NameID in a SAMLResponse to an administrative account, such as admin@target.com, and re-encoding it. If the Service Provider accepts the modified response without verifying the signature, you may be able to bypass authentication.

    AuthenticationDiscovery

  • Test search for SQL injection

    Try injecting SQL payloads in the search_term parameter of the GET /api/workspace/{workspace-id}/quick-note endpoint to test for SQL injection. Send a request with a payload like ?search_term=1" )' OR (SELECT CAST(version() AS numeric)) IS NOT NULL-- to see if the application is…

    SQL injectionDiscovery

  • Test Origin header validation

    When testing a web application, try modifying the Origin header using a tool like Burp Suite to see if the server reflects the supplied value. If it does, investigate further to determine if the application is using a weak validation check, such as startsWith(), which could allow

    CORS misconfigurationDiscovery

  • Test for unauthenticated RCE in Java servlets

    When investigating a target, look for Java servlets that are exposed to the Internet without authentication. Test if these servlets pass user-controlled input to Runtime.exec(String[]), which can lead to remote code execution (RCE). Use an inert probe, such as a sleep command, to

    Remote code execution (RCE)Discovery

  • Verify JWT algorithm

    When verifying JSON Web Tokens (JWTs), always specify the expected algorithm to prevent attackers from manipulating the alg attribute in the token header. Use a library that allows you to pass an explicit algorithm to verify(), such as jwt.verify(secret, token, 'HS256'). This pr…

    JSON Web Tokens (JWT)Exploitation