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

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

缺陷编号:wooyun-2015-0117057

漏洞标题:长安责任保险某处SQL注射

相关厂商:长安责任保险

漏洞作者: DloveJ

提交时间:2015-05-31 11:55

修复时间:2015-07-20 08:06

公开时间:2015-07-20 08:06

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:11

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

一切为了手机!

详细说明:

工具不能跑,不知为何!
还是

http://sso.ecaic.com/auth/user/registerUserAction.action

这个页面!

1.jpg


登陆名这里他会验证。抓包!

POST /auth/dwr/call/plaincall/VerificationUser.userExists.dwr HTTP/1.1
Host: sso.ecaic.com
Proxy-Connection: keep-alive
Content-Length: 277
Origin: http://sso.ecaic.com
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Content-Type: text/plain
Accept: */*
Referer: http://sso.ecaic.com/auth/user/registerUserAction.action
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: JSESSIONID=0B430DA670C6A8927615E7ABE4ED101D
callCount=1
page=/auth/user/registerUserAction.action
httpSessionId=0B430DA670C6A8927615E7ABE4ED101D
scriptSessionId=DEB1103F407AF25C0378E10711324810243
c0-scriptName=VerificationUser
c0-methodName=userExists
c0-id=0
c0-param0=string:yxtest
c0-param1=string:userName
batchId=0


返回的包

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/javascript;charset=ISO-8859-1
Content-Length: 2210
Date: Sat, 30 May 2015 11:00:37 GMT
//#DWR-INSERT
//#DWR-REPLY
dwr.engine._remoteHandleException('0','0',{javaClassName:"org.springframework.jdbc.UncategorizedSQLException",message:"SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; \n--- The error occurred in com/caic/auth/entities/t_user_SqlMap.xml. \n--- The error occurred while executing query. \n--- Check the select user_code as userCode, login_name as loginName, email as email, real_name as realname, password as password,mobile_tel as mobileTel,pw_expire_date as pwExpireDate, last_visit as lastVisit, reg_ip as regIp, avatar as avatar, signature as signature, dateformat as dateformat, timeoffset as timeoffset, bio_desc as bioDesc, valid_status as validStatus, create_date as createDate, identify_type as identifyType, identify_number as identifyNumber, sex as sex ,origin_sys as originSys from t_user WHERE login_name=? . \n--- Check the SQL Statement (preparation failed). \n--- Cause: java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: \n--- The error occurred in com/caic/auth/entities/t_user_SqlMap.xml. \n--- The error occurred while executing query. \n--- Check the select user_code as userCode, login_name as loginName, email as email, real_name as realname, password as password,mobile_tel as mobileTel,pw_expire_date as pwExpireDate, last_visit as lastVisit, reg_ip as regIp, avatar as avatar, signature as signature, dateformat as dateformat, timeoffset as timeoffset, bio_desc as bioDesc, valid_status as validStatus, create_date as createDate, identify_type as identifyType, identify_number as identifyNumber, sex as sex ,origin_sys as originSys from t_user WHERE login_name=? . \n--- Check the SQL Statement (preparation failed). \n--- Cause: java.sql.SQLException: An attempt by a client to checkout a Connection has timed out."});


看到这个包,肯定就是注入了!

漏洞证明:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/javascript;charset=ISO-8859-1
Content-Length: 2210
Date: Sat, 30 May 2015 11:02:31 GMT
//#DWR-INSERT
//#DWR-REPLY
dwr.engine._remoteHandleException('0','0',{javaClassName:"org.springframework.jdbc.UncategorizedSQLException",message:"SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; \n--- The error occurred in com/caic/auth/entities/t_user_SqlMap.xml. \n--- The error occurred while executing query. \n--- Check the select user_code as userCode, login_name as loginName, email as email, real_name as realname, password as password,mobile_tel as mobileTel,pw_expire_date as pwExpireDate, last_visit as lastVisit, reg_ip as regIp, avatar as avatar, signature as signature, dateformat as dateformat, timeoffset as timeoffset, bio_desc as bioDesc, valid_status as validStatus, create_date as createDate, identify_type as identifyType, identify_number as identifyNumber, sex as sex ,origin_sys as originSys from t_user WHERE login_name=? . \n--- Check the SQL Statement (preparation failed). \n--- Cause: java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: \n--- The error occurred in com/caic/auth/entities/t_user_SqlMap.xml. \n--- The error occurred while executing query. \n--- Check the select user_code as userCode, login_name as loginName, email as email, real_name as realname, password as password,mobile_tel as mobileTel,pw_expire_date as pwExpireDate, last_visit as lastVisit, reg_ip as regIp, avatar as avatar, signature as signature, dateformat as dateformat, timeoffset as timeoffset, bio_desc as bioDesc, valid_status as validStatus, create_date as createDate, identify_type as identifyType, identify_number as identifyNumber, sex as sex ,origin_sys as originSys from t_user WHERE login_name=? . \n--- Check the SQL Statement (preparation failed). \n--- Cause: java.sql.SQLException: An attempt by a client to checkout a Connection has timed out."});

修复方案:

版权声明:转载请注明来源 DloveJ@乌云


漏洞回应

厂商回应:

危害等级:低

漏洞Rank:5

确认时间:2015-06-05 08:04

厂商回复:

根据实测情况,CNVD暂未能确认风险点,综合威胁评估,暂未列入处置流程.如后续有更有效的风险实证情况,也请白帽子继续提供

最新状态:

暂无