Git Product home page Git Product logo

sqlmap's Issues

Found sqli vuln using " manually. Sqlmap doesn't find it.

What's the problem (or question)?

Does sqlmap have the ability to exploit sqli vulnerabilities using " instead of '?

For example, I know there is a mysql sqli vulnerability at http://natas15.natas.labs.overthewire.org/index.php (this is a pen testing lab/training site specifically for trying to find and exploit vulnerabilities) using:

" union SELECT sleep(1000000), "a

but when I try to use sqlmap to speed up exploitation/exfiltration, sqlmap doesn't see the sqli vuln.

Do you have an idea for a solution?

If sqlmap already does this, then any idea why the tool doesn't spot the sqli at that location when I know it's there. Anyway, if sqlmap isn't trying " in it's injection attempts, possibly make that an option? like --quote-type where default is '

How can we reproduce the issue?

  1. Browse to ttp://natas15.natas.labs.overthewire.org/index.php
  2. Username is natas15, Password is AwWj0w5cvxrZiONgZ9J5stNVkmxdk39J
  3. For username here, enter: " or "a" = "a
  4. Click "check existence" button
  5. Go back
  6. For username, now enter: " union SELECT sleep(1000000), "a
  7. Clearly exploitable
  8. Using Burp or some other tool, grab the request and create a request.txt file
  9. Run sqlmap -r request.txt -p username

What are the running context details?

  • Installation method
    git clone

  • Client OS
    fedora 31

  • Program version
    sqlmap --version
    1.4.7.12#dev

  • Target DBMS
    mysql

  • Detected WAF/IDS/IPS protection
    unknown - but i was able to execute timebased sqli scripted to get what i needed, so i don't think there's a waf blocking

  • SQLi techniques found by sqlmap
    none - sqlmap did not identify any sqli vulns

  • Results of manual target assessment
    found that the payload username=" or "a"="a works

  • Relevant console output (if any):
    none

  • Exception traceback (if any):
    none

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.