Tag

Tips tagged #api-security

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

Feed of #api-security

Tag #api-securityRemove tag filter

  • Test rate limits with paced requests

    To test if a rate limit can be bypassed, send requests to the target's API with a pause of a few seconds between each request, using the same account and token. If the rate limit is not triggered, it may indicate that the limit is not effectively enforced. Check the X-RateLimit-*

    Information disclosureDiscovery

  • 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 MCP tools for SQL injection

    Send a tools/call request to target.com/mcp with a SQL injection payload in the arguments field, such as ' UNION SELECT username, password FROM users--. If the server returns data from the users table, it may be vulnerable to SQL injection. Try this with different tools and payl…

    SQL injectionExploitation

  • Test APIs for IDOR via mobile app

    When a target has a mobile app and web API, try to find endpoints that handle the same data. If the mobile app provides an identifier, such as a review_id, test whether the web API accepts it. Use a tool like a proxy to capture the mobile app's request, extract the identifier, a…

    Insecure direct object reference (IDOR)Discovery

  • Test API doc renderers for XSS

    When testing API documentation tools, look for renderers that convert Markdown to HTML. Check if the renderer allows raw HTML in the input by searching for html: true in the code. Then, verify if the HTML output is properly sanitized. If not, it may be possible to inject malicio…

    Cross-site scripting (XSS)Discovery