mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Working on a bug (fix for Partial UNION query SQL injection technique
both Oracle and Microsoft SQL Server).
This commit is contained in:
parent
2f406b3e56
commit
04c187c66a
|
@ -456,7 +456,10 @@ class Agent:
|
|||
# TODO: fix for Partial UNION query SQL injection technique both
|
||||
# Oracle and Microsoft SQL Server
|
||||
elif kb.dbms == "Oracle":
|
||||
if query.startswith("SELECT "):
|
||||
limitedQuery = "%s FROM (%s, %s" % (untilFrom, untilFrom, limitStr)
|
||||
else:
|
||||
limitedQuery = "%s FROM (SELECT %s, %s" % (untilFrom, ", ".join(field for field in fieldsList), limitStr)
|
||||
limitedQuery = limitedQuery % fromFrom
|
||||
limitedQuery += "=%d" % (num + 1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user