
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-7885 is a reflected Cross-Site Scripting (XSS) vulnerability in Huashengdun WebSSH affecting all versions up to and including 1.6.2. The flaw exists in the Login Page component, where the hostname and port query parameters are reflected unsanitized into the HTML response, enabling arbitrary JavaScript execution in a victim's browser. It was discovered on April 9, 2025, by researcher 4m3rr0r and publicly disclosed on July 20, 2025. The vendor was contacted prior to disclosure but did not respond. The vulnerability carries a CVSS v3.1 base score of 6.1 (Medium) (Feedly, PoC Report).
The root cause is improper neutralization of user-supplied input (CWE-79), where the application reflects the port (and hostname) GET parameter values directly into the HTML response without input validation or output encoding (CWE-94). An attacker crafts a malicious URL containing a JavaScript payload in the port parameter (e.g., https://webssh.huashengdun.org/?port=alert('XSS')); when a victim visits this URL, the injected script executes in their browser within the context of the WebSSH origin. No authentication is required to trigger the vulnerability, but user interaction (clicking a crafted link) is necessary. A public PoC and GitHub issue documenting the vulnerability are available (GitHub Issue, PoC Report).
Successful exploitation allows an attacker to execute arbitrary JavaScript in the victim's browser under the WebSSH application's origin, enabling session hijacking, credential theft, phishing via the trusted domain, cross-site request forgery (CSRF) via injected JavaScript, and browser-based malware injection. Because WebSSH is a web-based SSH client, session hijacking could expose active SSH session tokens or credentials entered through the interface. Confidentiality and integrity are both at low risk per CVSS scoring, with no direct availability impact (PoC Report, Feedly).
A public proof-of-concept exploit has been disclosed and is available on GitHub, confirmed to work against WebSSH instances up to v1.6.2 (PoC Report). The EPSS score is approximately 0.031% (0.000310), indicating a low but non-zero probability of exploitation in the wild. No evidence of active in-the-wild exploitation, threat actor attribution, or CISA KEV catalog listing has been identified at this time. The CVSSv4 exploit maturity is rated as Proof-of-Concept (Feedly).
webssh.huashengdun.org.port (or hostname) GET parameter with a JavaScript payload, e.g., https://<target>/?port=<script>alert('XSS')</script> or using URL-encoded variants such as https://<target>/?port=%3Cscript%3Ealert(%221%22)%3C%2Fscript%3E.port value into the HTML response, causing the injected JavaScript to execute in the victim's browser under the WebSSH origin.port or hostname query parameters (e.g., ?port=%3Cscript%3E, ?port=alert(, ?hostname=<script>).<, >, %3C, %3E, javascript:, alert() in the port or hostname query string parameters.No official patch has been released by the vendor as of the disclosure date, and the vendor did not respond to the researcher's contact attempts. As a workaround, administrators should apply strict server-side input validation to ensure the port parameter accepts only numeric values, and the hostname parameter accepts only valid hostname characters, rejecting or sanitizing any other input before rendering. Deploying a Web Application Firewall (WAF) with XSS filtering rules can provide an additional layer of defense. Implementing a strong Content Security Policy (CSP) header on the WebSSH application can also limit the impact of any successful XSS injection (PoC Report, GitHub Issue).
The vulnerability was reported via a GitHub issue opened by researcher 4m3rr0r on April 9, 2025, and received no response from the vendor prior to public disclosure in July 2025. The issue remains open on the WebSSH GitHub repository with no maintainer acknowledgment or fix committed. The disclosure was picked up by several vulnerability aggregation platforms including VulDB, ENISA EUVD, CIRCL, and Tenable, indicating moderate community awareness (GitHub Issue, Feedly).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."