You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sqlmap automatically inserts double quotes after a comma #4990
Describe the bug
When using a custom request file, sqlmap automatically adds double quotes (") around certain payloads if a custom injection marker is behind a comma, regardless of any tampers.
To Reproduce
Create a custom request file and set the contents to this:
upon running the above command and reaching payload AND 4832=2796-- bMEZ, the program sends out this:
POST / HTTP/1.1
Host: google.com
Content-type: application/json
Content-length: 45
Connection: close
{
"test": "," AND 4832=2796-- bMEZ""
}
There are now an extra pair of double quotes around the payload, despite no explicit instructions to do so.
Note that this will work on any web application, including those that do not use a SQL database.
Activity
stamparm commentedon Mar 7, 2022
with latest revision, it should be fixed:
Fixes sqlmapproject#4990