mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-30 23:47:45 +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 |         # TODO: fix for Partial UNION query SQL injection technique both | ||||||
|         # Oracle and Microsoft SQL Server |         # Oracle and Microsoft SQL Server | ||||||
|         elif kb.dbms == "Oracle": |         elif kb.dbms == "Oracle": | ||||||
|             limitedQuery  = "%s FROM (%s, %s" % (untilFrom, untilFrom, limitStr) |             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  = limitedQuery % fromFrom | ||||||
|             limitedQuery += "=%d" % (num + 1) |             limitedQuery += "=%d" % (num + 1) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user