Description
Termix is a web-based server management platform with SSH terminal, tunneling, and file editing capabilities. The official Docker image for Termix versions 1.5.0 and below, due to being configured with an Nginx reverse proxy, causes the backend to retrieve the proxy's IP instead of the client's IP when using the req.ip method. This results in isLocalhost always returning True. Consequently, the /ssh/db/host/internal endpoint can be accessed directly without login or authentication. This endpoint records the system's stored SSH host information, including addresses, usernames, and passwords, posing an extremely high security risk. Users who use the official Termix docker image, build their own image using the official dockerfile, or utilize reverse proxy functionality will be affected by this vulnerability. This issue is fixed in version 1.6.0.
EPSS Score:
0%
Comprehensive Technical Analysis of EUVD-2025-32061
1. Vulnerability Assessment and Severity Evaluation
The vulnerability described in EUVD-2025-32061 affects Termix, a web-based server management platform, specifically in versions 1.5.0 and below. The issue arises from a misconfiguration in the Nginx reverse proxy, which causes the backend to retrieve the proxy's IP instead of the client's IP when using the req.ip method. This results in the isLocalhost function always returning True, allowing unauthorized access to the /ssh/db/host/internal endpoint. This endpoint contains sensitive SSH host information, including addresses, usernames, and passwords.
Severity Evaluation:
- Base Score: 9.2 (CVSS 4.0)
- Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
The high base score indicates a critical vulnerability due to the potential for unauthorized access to sensitive information, which can lead to significant security breaches.
2. Potential Attack Vectors and Exploitation Methods
Attack Vectors:
- Unauthenticated Access: An attacker can directly access the
/ssh/db/host/internalendpoint without needing to authenticate, retrieving sensitive SSH host information. - Network-Based Attacks: Since the vulnerability is network-accessible (AV:N), attackers can exploit it remotely over the internet.
- Automated Scanning: Attackers can use automated tools to scan for vulnerable Termix instances and exploit them en masse.
Exploitation Methods:
- Direct Endpoint Access: By sending a simple HTTP GET request to the
/ssh/db/host/internalendpoint, an attacker can retrieve the stored SSH host information. - Credential Harvesting: Once the SSH information is obtained, attackers can use it to gain unauthorized access to other systems and networks.
3. Affected Systems and Software Versions
Affected Systems:
- Termix versions 1.5.0 and below
- Systems using the official Termix Docker image
- Systems built using the official Termix Dockerfile
- Systems utilizing reverse proxy functionality with Termix
Software Versions:
- Termix < 1.6.0
4. Recommended Mitigation Strategies
- Upgrade to the Latest Version: Immediately upgrade to Termix version 1.6.0 or later, which includes the fix for this vulnerability.
- Network Segmentation: Implement network segmentation to limit access to the Termix management interface.
- Access Controls: Enforce strict access controls and authentication mechanisms to prevent unauthorized access.
- Monitoring and Logging: Enable comprehensive monitoring and logging to detect and respond to any suspicious activities.
- Regular Security Audits: Conduct regular security audits and vulnerability assessments to identify and mitigate potential risks.
5. Impact on European Cybersecurity Landscape
The vulnerability poses a significant risk to organizations using Termix within the European Union, particularly those managing critical infrastructure or handling sensitive data. Unauthorized access to SSH credentials can lead to widespread security breaches, data theft, and potential disruption of services. Given the EU's stringent data protection regulations (e.g., GDPR), organizations must prioritize addressing this vulnerability to avoid legal and financial repercussions.
6. Technical Details for Security Professionals
Technical Overview:
- Misconfiguration in Nginx Reverse Proxy: The root cause is the misconfiguration in the Nginx reverse proxy, which incorrectly handles the client's IP address.
- isLocalhost Function: The
isLocalhostfunction always returnsTruedue to the proxy's IP being retrieved instead of the client's IP. - Exposed Endpoint: The
/ssh/db/host/internalendpoint is exposed, allowing unauthorized access to sensitive SSH host information.
Detection and Response:
- Intrusion Detection Systems (IDS): Deploy IDS to monitor for unauthorized access attempts to the
/ssh/db/host/internalendpoint. - Log Analysis: Regularly analyze logs for any unusual access patterns or attempts to access the vulnerable endpoint.
- Incident Response Plan: Develop and implement an incident response plan to quickly address any detected exploitation attempts.
Patching and Updates:
- Patch Management: Ensure that all instances of Termix are updated to version 1.6.0 or later.
- Automated Updates: Implement automated update mechanisms to ensure that all systems are promptly patched against known vulnerabilities.
Conclusion: The vulnerability described in EUVD-2025-32061 is critical and requires immediate attention from organizations using Termix. By understanding the technical details and implementing the recommended mitigation strategies, organizations can significantly reduce the risk of unauthorized access and potential security breaches.