Skip to content

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

Typical fixes

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 9 of 9
  1. Use parameterised queries or bound parameters instead of concatenating input when constructing queries.

    Seen in 19 reports
  2. Sanitise GraphQL parameters in the same way as ordinary input fields.

    Seen in 1 report
  3. Require authentication on test API services and sanitise their input.

    Seen in 1 report
  4. Disable database command execution features such as xp_cmdshell.

    Seen in 1 report
  5. Sanitise and parameterise caller-supplied values in content provider methods.

    Seen in 1 report
  6. Fix the escaper so it does not re-escape its own output.

    Seen in 1 report
  7. Resolve request precedence so one input source cannot override another.

    Seen in 1 report
  8. Escape or avoid passing query-derived values into shell commands.

    Seen in 1 report
  9. Require authentication on the preview action and parameterise the order clause.

    Seen in 1 report