id: CVE-2021-34370

info:
  name: Accela Civic Platform <=21.1 - Cross-Site Scripting
  author: 0x_Akoko
  severity: medium
  description: Accela Civic Platform through 21.1 contains a cross-site scripting vulnerability via  ssoAdapter/logoutAction.do successURL.
  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 data theft, session hijacking, or defacement of the affected application.
  remediation: |
    Upgrade to a patched version of Accela Civic Platform (version >21.1) that includes proper input validation and sanitization.
  reference:
    - https://www.exploit-db.com/exploits/49990
    - https://www.accela.com/civic-platform/
    - https://gist.github.com/0xx7/7e9f1b725f7ff98b9239d3cb027b7dc8
    - https://nvd.nist.gov/vuln/detail/CVE-2021-34370
    - 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-34370
    cwe-id: CWE-79
    epss-score: 0.09996
    epss-percentile: 0.95005
    cpe: cpe:2.3:a:accela:civic_platform:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: accela
    product: civic_platform
  tags: cve,cve2021,xss,redirect,accela,edb,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/ssoAdapter/logoutAction.do?servProvCode=SAFVC&successURL=https://interact.sh/"

    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_\.@]*)interact\.sh.*$'
# digest: 4b0a00483046022100b40e58b9b14d33287d08c7b6fbaf0af0b1abbbe0078c12cbf9230b2e205684f1022100bf2bc0edbcab779a2a1b029c70492534e40d0fdf65aaa70eb7a26ca1967f48d8:922c64590222798bb761d5b6d8e72950