This document outlines the known security vulnerabilities and risks associated with the rustybridge project. We believe in being transparent about security and providing users with the information they need to operate this software safely.
This project is designed to interact with legacy hardware that may not support modern, secure cryptographic standards. To enable this, we provide options to downgrade security settings.
This functionality is inherently dangerous and is disabled by default.
Insecure cryptographic suites are only enabled when a user explicitly requests them via a command-line flag on the client or a server-side configuration option. Our philosophy is that users must consciously opt-in to a less secure mode.
- ID: RUSTSEC-2023-0071 / CVE-2023-49092
- Severity: Medium
- Component:
rsacrate (a dependency) - Description: The version of the
rsacrate used in this project is vulnerable to the "Marvin Attack." This is a timing side-channel vulnerability where an attacker who can observe network timing differences during RSA decryption could potentially recover the private key.
This vulnerability is only exposed when RSA-based algorithms are in use. In rustybridge, RSA and other weak algorithms are only enabled when an insecure mode is explicitly activated for outbound connections.
-
On the Client (
rb) [outbound]:- By using the
--insecurecommand-line flag. - This enables a legacy suite of algorithms, including
rsa-sha1, which uses the vulnerablersacrate functionality.
- By using the
-
On the Server (
rb-serveras a Jump Host) [outbound to relay targets]:- By setting the
insecure=trueoption on a specific relay host. - Example:
rb-server hosts options set my-legacy-host insecure true - When the server connects to
my-legacy-host, it will use the same legacy suite, thus exposing the server's outbound connection to this vulnerability.
- By setting the
Do not use the --insecure flag or the insecure=true server option unless it is absolutely necessary to connect to a legacy device and you are on a completely trusted network where network traffic cannot be monitored by malicious actors.
By default, rustybridge uses a modern, secure set of algorithms for all connections, and rb-server always uses secure defaults for inbound client connections.
In addition to the specific rsa vulnerability, the insecure mode enables other algorithms that are considered weak or broken by modern standards.
-
Algorithms Enabled in Insecure Mode:
- Key Exchange:
diffie-hellman-group1-sha1,diffie-hellman-group14-sha1 - Public Key:
ssh-dss(DSA),ssh-rsa(with SHA-1) - Ciphers:
3des-cbc,aes128-cbc - MACs:
hmac-sha1
- Key Exchange:
-
Risks: These algorithms are vulnerable to various attacks that could allow an attacker to decrypt traffic or compromise the integrity of the connection.
This is triggered in the exact same way as the RSA vulnerability, and only for outbound connections:
- Client (
rb) outbound: Use of the--insecureflag. - Server (
rb-server) outbound to relay target: Use of theinsecure=trueoption for that host.
Inbound connections to rb-server are always negotiated with secure defaults.
The mitigation is the same: Avoid using insecure modes. The risk of using these algorithms is significant. Only use them as a last resort for hardware that has no upgrade path, and only on trusted networks.