Horizon Alert
Summary of the vulnerability and why it matters
An authentication bypass vulnerability has been identified in Rclone's SFTP serve functionality, specifically when utilizing the `--auth-proxy` option. This issue allows unauthorized read-write access by enabling attackers to reuse cached credentials under certain conditions, potentially exposing sensitive data.
- An issue exists with Rclone's SFTP authentication proxy.
- This bypass could allow unauthorized file access.
- Assess Rclone SFTP proxy usage for exposure.
Attack Path
How an attacker could exploit the issue
An attacker who knows a victim's public key can bypass authentication to gain unauthorized read-write access to files. This is possible when the Rclone SFTP server is configured with an authentication proxy, and the attacker can submit the victim's public key as a password from the same client IP address. This allows the attacker to exploit a flaw in how the server generates cache keys, reusing cached entries to gain elevated access.
- Requires knowledge of victim's public key.
- Triggered by submitting public key as password.
- Risk of unauthorized file access.
Live Threat
Current exploitation, exposure, and threat context
When the Rclone `serve sftp` functionality is configured with `--auth-proxy`, and an attacker possesses a victim's base64 encoded public key, they could potentially bypass authentication. This bypass occurs because the caching mechanism in the `generateCacheKey` function omits the authentication method, allowing the attacker to reuse a cached entry. If successful, this could grant read-write access to the virtual file system (VFS).
- Rclone SFTP server VFS data.
- Reusing a victim's cached public key.
- Unauthorized read-write VFS access.
Operational Fix
Recommended remediation, mitigation, and detection steps
The rclone utility's SFTP server, when configured with `--auth-proxy`, contains a critical authentication bypass vulnerability. Attackers can exploit this by submitting a victim's public key as a password to reuse cached entries, granting read-write access. Affected teams must first identify all instances of rclone serving SFTP, determine network reachability and business criticality, and then locate the accountable owner for remediation planning.
- Identify rclone SFTP deployments.
- Verify network exposure and criticality.
- Coordinate ownership for remediation.