Horizon Alert
Summary of the vulnerability and why it matters
This advisory details a critical vulnerability in SurrealDB that could allow unauthenticated attackers to hijack user sessions and execute operations with elevated privileges by exploiting a race condition in the HTTP /rpc endpoint. The concern lies in the potential for unauthorized access and actions if this database technology is in use and exposed to external networks.
- Unauthenticated users can take over sessions.
- It impacts systems using SurrealDB's RPC endpoint.
- Confirm relevance and exposure for this database.
Attack Path
How an attacker could exploit the issue
An attacker could exploit this vulnerability by sending specially crafted, concurrent requests to the system's HTTP RPC endpoint. This timing attack targets a race condition that occurs when the system is processing legitimate authenticated traffic, potentially allowing the attacker to hijack an active session and execute operations with the privileges of an authenticated user without needing any credentials.
- Network access required.
- Exploits a timing flaw in RPC endpoint.
- Leads to unauthorized actions.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability could allow unauthenticated attackers to execute database operations with the privileges of an authenticated user. This is possible when the SurrealDB HTTP /rpc endpoint is accessed concurrently by both legitimate authenticated traffic and malicious unauthenticated requests.
- Authenticated session state could be inherited.
- Concurrent requests to the /rpc endpoint could cause the issue.
- Unauthorized access to data or execution of commands.
Operational Fix
Recommended remediation, mitigation, and detection steps
This vulnerability in SurrealDB's HTTP /rpc endpoint requires immediate attention to prevent unauthorized access and privilege escalation. The first practical step is to identify all instances of the affected SurrealDB deployment, determine their network reachability and criticality to business operations, and then confirm the accountable owner for remediation. This process will enable a risk-based approach to planning and executing the necessary updates or mitigations.
- Identify affected SurrealDB instances and owners.
- Verify network exposure and business criticality.
- Plan and execute timely remediation.