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…
When a server responds with an Accept-Query header that includes application/sql, try sending a QUERY request with a SQL query in the body to see if the server executes it. Look for signs of SQL injection, such as error messages or unexpected data in the response. Be cautious, as
Try sending a GET request with a modified filters parameter, such as filters={"groupOp":" OR IF(1=(SELECT user_id FROM user WHERE username='admin'),SLEEP(5),0) OR "} to see if the application is vulnerable to SQL injection. If the response takes longer than expected, it may indi…
When testing a target's WAF rules, try sending a GET request with a URL parameter that contains a double quote character, such as TOGGLER+BAS+3%2F16%22-24+%C3%97+2-1%2F2%22. If the WAF blocks the request, check if it's a false positive by verifying if the double quote is an inch…
When testing a target, try sending a POST request with a modified parameter, such as gibbonDepartmentIDs, to see if it is vulnerable to SQL injection. Look for any error messages or unusual responses that may indicate a successful injection. You can use a payload like gibbonDepa…
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 injection: how to hunt it
Where to look
- Sort, order and column parameters, which cannot be bound as values and are often pasted into the query.
- Numeric IDs and filters where a quote, a comment or a small arithmetic change alters the result.
- Error messages, timing differences and true-or-false changes that reveal how the query is built.
- Second-order paths, where stored input is used in a later query by another feature.
What proves it
Extract one harmless value, such as the database version or current user, with a request anyone can repeat; keep OR-true payloads out of updates and deletes, and dump no user data.
Read further
Writeups on SQL injection, by hunters and researchers, most with a short summary.
Related classes