Description
A Cross-Site WebSocket Hijacking (CSWSH) vulnerability in automatic1111/stable-diffusion-webui version 1.10.0 allows an attacker to clone a malicious server extension from a GitHub repository. The vulnerability arises from the lack of proper validation on WebSocket connections at ws://127.0.0.1:7860/queue/join, enabling unauthorized actions on the server. This can lead to unauthorized cloning of server extensions, execution of malicious scripts, data exfiltration, and potential denial of service (DoS).
EPSS Score:
0%
Comprehensive Technical Analysis of EUVD-2025-7065
1. Vulnerability Assessment and Severity Evaluation
The vulnerability EUVD-2025-7065, also known as CVE-2024-11045, is a Cross-Site WebSocket Hijacking (CSWSH) issue affecting the automatic1111/stable-diffusion-webui version 1.10.0. The vulnerability arises due to insufficient validation of WebSocket connections, specifically at the endpoint ws://127.0.0.1:7860/queue/join. This flaw allows an attacker to perform unauthorized actions on the server, including cloning malicious server extensions from a GitHub repository.
Severity Evaluation:
- Base Score: 9.6 (CVSS 3.0)
- Vector String: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
The high base score indicates a critical vulnerability. The attack vector (AV:N) is network-based, requiring low attack complexity (AC:L) and no privileges (PR:N). User interaction (UI:R) is required, but the impact on confidentiality, integrity, and availability is high (C:H/I:H/A:H).
2. Potential Attack Vectors and Exploitation Methods
Attack Vectors:
- Unauthorized Cloning of Server Extensions: An attacker can exploit the vulnerability to clone malicious extensions from a GitHub repository, potentially introducing harmful code into the server environment.
- Execution of Malicious Scripts: By injecting malicious scripts through the cloned extensions, an attacker can execute arbitrary code on the server.
- Data Exfiltration: The attacker can exfiltrate sensitive data by leveraging the unauthorized WebSocket connection.
- Denial of Service (DoS): The vulnerability can be exploited to overload the server, leading to a DoS condition.
Exploitation Methods:
- WebSocket Hijacking: The attacker can hijack the WebSocket connection by exploiting the lack of proper validation.
- Malicious Extension Cloning: The attacker can clone a malicious extension from a GitHub repository and execute it on the server.
- Script Injection: The attacker can inject malicious scripts through the cloned extensions to perform various malicious activities.
3. Affected Systems and Software Versions
Affected Software:
- automatic1111/stable-diffusion-webui version 1.10.0
Affected Systems:
- Any system running the vulnerable version of the automatic1111/stable-diffusion-webui software.
4. Recommended Mitigation Strategies
- Update to the Latest Version: Ensure that the automatic1111/stable-diffusion-webui software is updated to the latest version that includes a fix for this vulnerability.
- Implement WebSocket Validation: Add proper validation mechanisms for WebSocket connections to prevent unauthorized access.
- Network Segmentation: Segment the network to isolate critical systems and reduce the attack surface.
- Monitoring and Logging: Implement robust monitoring and logging to detect and respond to suspicious activities.
- Access Controls: Enforce strict access controls and authentication mechanisms to limit unauthorized access.
5. Impact on European Cybersecurity Landscape
The vulnerability poses a significant risk to organizations and individuals using the affected software within the European Union. The potential for data exfiltration, execution of malicious scripts, and DoS attacks can lead to severe disruptions and data breaches. This underscores the importance of timely patching and adherence to best security practices to mitigate such risks.
6. Technical Details for Security Professionals
Vulnerability Details:
- Type: Cross-Site WebSocket Hijacking (CSWSH)
- Affected Endpoint:
ws://127.0.0.1:7860/queue/join - Root Cause: Lack of proper validation on WebSocket connections
Exploitation Steps:
- Identify the Vulnerable Endpoint: The attacker identifies the vulnerable WebSocket endpoint.
- Hijack the WebSocket Connection: The attacker exploits the lack of validation to hijack the WebSocket connection.
- Clone Malicious Extension: The attacker clones a malicious extension from a GitHub repository.
- Execute Malicious Scripts: The attacker injects and executes malicious scripts through the cloned extension.
- Exfiltrate Data: The attacker exfiltrates sensitive data through the compromised WebSocket connection.
- Perform DoS Attack: The attacker overloads the server to cause a DoS condition.
Detection and Response:
- Intrusion Detection Systems (IDS): Deploy IDS to detect unusual WebSocket activities.
- Web Application Firewalls (WAF): Use WAF to filter and block malicious WebSocket requests.
- Incident Response Plan: Develop and implement an incident response plan to quickly address any detected vulnerabilities.
Conclusion: The EUVD-2025-7065 vulnerability highlights the critical importance of proper validation and security measures in WebSocket connections. Organizations must prioritize updating affected software and implementing robust security controls to mitigate the risks associated with this vulnerability.