Skip to content

In-depth lesson · Blind and time-based SQL injection

Tips for beginners

Every point the Blind and time-based SQL injection reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 14 of 14
  1. Remember the fix when writing up. The evidence shows the correct remedy is parameterised queries or bound parameters, sanitising GraphQL parameters like ordinary fields, requiring authentication on test services and preview actions, and disabling database command execution features, so frame your report around the root cause rather than the payload.

    Seen in 9 reports
  2. Do not stop at query strings. Test URL path segments used directly in queries, and test headers such as User-Agent and Referer, and cookies set on a login page. The evidence shows all of these carrying injectable values, and they are easy to overlook.

    Seen in 8 reports
  3. Start with the obvious query-backed features: site search functions and search APIs, login endpoints and forms, order and sort parameters, and entity or order identifiers. The evidence shows these are common homes for blind injection, so they are a sensible first pass before moving to stranger inputs.

    Seen in 7 reports
  4. When you suspect time-based injection, confirm the delay scales with the requested seconds rather than assuming a single slow response means anything. The evidence describes confirming the delay matches the requested seconds, and comparing response times against a zero value.

    Seen in 7 reports
  5. If no error is shown, switch to boolean comparisons: send a true condition and a false condition and compare content, response length or status code. The evidence shows this working on entity and order identifiers and on leaderboard user identifiers.

    Seen in 6 reports
  6. Look beyond ordinary parameters: GraphQL arguments such as form identifiers and order arguments, JSON array form fields, DELETE request parameters, and parameters inside a LIMIT clause. The evidence shows each of these as a working channel.

    Seen in 5 reports
  7. Avoid reporting with no impact. A timing difference alone is weak; the evidence shows reports where the injection was used to read the database version, dump the schema, enumerate the database or extract data, so aim to demonstrate at least one concrete piece of information obtained.

    Seen in 5 reports
  8. Check less obvious surfaces such as legacy CGI scripts with GET parameters, unauthenticated test API web services with a browsable WSDL, and exported Android content providers. The evidence shows blind injection in all of these, including through content provider update and query methods.

    Seen in 4 reports
  9. Show impact beyond the delay. The evidence shows blind injection being escalated to credential extraction and account takeover, and to remote code execution where database command features were enabled, so demonstrate what data or access the channel actually reaches rather than reporting only a pause.

    Seen in 3 reports
  10. Avoid reporting out of scope. The evidence includes EU test sites and staging hosts, forgotten historical URLs, and third-party software integrated with a chat platform, so check the programme's scope before spending time on staging, historical or third-party surfaces.

    Seen in 3 reports
  11. If a web application firewall blocks you, try tamper scripts and encoding variations before giving up. The evidence shows these being used to get past a WAF when blind injection was suspected.

    Seen in 2 reports
  12. Do not ignore oddities. The evidence describes watching for typo errors in responses that reveal SQL handling and following up with blind tests, and fuzzing oddly named cookies set on a login page and watching for a 200 response instead of the usual redirect. Small anomalies are often the entry point.

    Seen in 2 reports
  13. Watch for caching. The evidence describes incrementing an integer before a time-delay payload on each request to avoid database result caching, so vary a value between requests when timing tests look inconsistent.

    Seen in 1 report
  14. When you find one injectable parameter, check other parameters in the same codebase. The evidence describes testing a user identifier on a leaderboard and then checking other parameters in the same codebase, which is a cheap way to find more instances of the same root cause.

    Seen in 1 report