Tag

Tips tagged #api

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

API security tips, and how to hunt it

Feed of #api

Tag #apiRemove tag filter

  • Test AI gateways for secrets exposure

    When testing an AI gateway, look for exposure of provider keys, salts, and plaintext logs. Check if the gateway stores sensitive data in a Postgres database or environment variables. Test for command injection, privilege escalation, and SQL injection vulnerabilities that could r…

    Leaked secrets and API keysDiscovery

  • Test batch API endpoints for quota enforcement

    When testing API endpoints, compare the quota enforcement of similar endpoints, such as single-send and batch-send endpoints. Send a large number of requests to the batch endpoint after the daily quota has been reached on the single-send endpoint to see if it continues to accept…

    AuthorizationDiscovery

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