-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
What's the problem (or question)?
I run sqlmap against a vulnerable app based on a SQLite db. It fails to discover the columns, but I know them so I specify them with the -C
argument.
However, it refuses to take them and the dump fails anyway.
Full command:
sqlmap.py -r req -p "email" --ignore-code=401 --level 5 --dbms sqlite --union-char 1 --dump -T users -C email,password
And it fails with:
[11:40:22] [INFO] the back-end DBMS is SQLite
back-end DBMS: SQLite
[11:40:22] [WARNING] unable to enumerate the columns for table 'users' in database 'SQLite_masterdb'
I know that there is a feature where sqlmap can guess the columns, through a specified list or a dictionnary (which works fine!).
However, I expected that it could accept the list of columns directly via -C
too.
Do you have an idea for a solution?
See PR #3471
With this patch the dump works.
How can we reproduce the issue?
- Install OWASP Juice Shop. I used the Docker container.
- Try to login. Username and password are vulnerable.
- Capture the request and give it to sqlmap with the command above
What are the running context details?
- Installation method: apt in Kali and I tried with the latest Git commit 1.3.2.6#dev
- Client OS: Linux
- Program version: 1.3.2.6#dev
- Target DBMS: SQLite
- Detected WAF/IPS protection: no WAF
- SQLi techniques found by sqlmap:
Parameter: JSON email ((custom) POST)
Type: UNION query
Title: Generic UNION query (a) - 10 columns
Payload: {"email":"mail' UNION ALL SELECT 'a','a','qvzxq'||'oMDLLVIKBbLunjqfjZDPVlORYqRkoHrmmQIpQXos'||'qzzzq','a','a','a','a','a','a'-- mzWv","password":"test"}