sqlmapproject / sqlmap

Automatic SQL injection and database takeover tool
http://sqlmap.org
Other
32.23k stars 5.69k forks source link

Support of clean URLs in crawling #5561

Closed kazet closed 11 months ago

kazet commented 11 months ago

Feature: support of crawling of sites that use clean URLs (e.g. /statistics/2022 or statistics,2022,statistics-from-2022.html).

Describe the solution you'd like Modify https://github.com/sqlmapproject/sqlmap/blob/master/lib/utils/crawler.py so that if the site links to a clean URL heuristics are used to generate a set of URLs to be scanned with injection points inserted:

Then, each of the URL with injection points is passed for scanning.

Describe alternatives you've considered I have considered implementing a separate crawler and running sqlmap on each of the found URLs with injection points - but if sqlmap already has a crawler, why not to modify it?

I am willing to implement such a feature - please let me know whether it makes sense to add it to sqlmap and whether the approach outlined above makes sense.

stamparm commented 11 months ago

when i spotted statistics-from-2022*.html i immediately knew that this is something that will never go into the sqlmap's codebase. imagine injecting everything everywhere. that would a chaos

please make your own crawler for such cases

kazet commented 11 months ago

Just to make sure: the idea would not be to inject star everywhere, just e.g. one per each section separated by slash.

Best,