-
-
Notifications
You must be signed in to change notification settings - Fork 5
SQL Injection Tests
postmodern edited this page Sep 14, 2010
·
11 revisions
- Append
--
to the query param:- If the response does not change, the query param might be used in an SQL statement.
- Append
'
,"
or`
to the query param:- If the response lacks data or contains an SQL Error message, the query param is being used in an SQL statement.
- Pre-append
--
to the query param:- If the response does not change, filtering may be removing
-
characters.
- If the response does not change, filtering may be removing
- Append
0
to the numeric query param:- If the response does not change, filtering may be removing
0
characters.
- If the response does not change, filtering may be removing
- Pre-append punctuation characters to the query param:
- If the response does not change, filtering may be removing punctuation characters.
- Append non-numeric characters to the query param:
- If the response does not change, the query param is being sanitized using a String to Integer conversion function.
- Pre-append
0
to the numeric query param:- If the response does not change, the query param is being treated as an Integer.
- Pre-append
-
to the numeric query param:- If the response does change, the the query param is being treated as an Integer.
- Pre-append
+
to the numeric query param:- If the response does not change, the query param is being treated as an Integer.
- Divide the numeric query param by 2 and pre-append
2*
:- If the response does not change, the query param is being treated as an Integer.
- Subtract 1 from the numeric query param and pre-append
1+
:- If the response does not change, the query param is being treated as an Integer.
- Wrap the query param in the
substr
function, with thepos
argument set to 0, and thelen
argument set to the length of the query param plus 1:- If the response does not change, the query param is being treated as a String.
- If the query param consists of all lower-case characters, wrap the query param in the
lower
function:- If the response does not change, the query param is being treated as a String.