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.
API security tips, and how to hunt it
Tag #apiRemove tag filter
POST /api/admin/settings HTTP/1.1X-HTTP-Method-Override: PUTContent-Type: application/jsonWhen 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…
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…
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 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
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…
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 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