Horizon Alert
Summary of the vulnerability and why it matters
A vulnerability in SurrealDB's JavaScript engine allows authenticated users to bypass access controls and execute unauthorized built-in functions. This could enable attackers to gain unintended access or control over database operations. The primary concern is confirming if this technology is in use within the organization and, if so, assessing the potential exposure.
- Unauthorized function execution bypasses controls.
- Impacts systems using SurrealDB's scripting.
- Confirm relevance and assess exposure.
Attack Path
How an attacker could exploit the issue
An attacker can leverage the SurrealDB JavaScript engine to bypass permission checks for built-in functions. This occurs when the `surrealdb.functions` bridge calls internal dispatchers without verifying user capabilities. Consequently, authenticated users who are normally restricted from using certain SurrealQL functions can execute them by invoking them through JavaScript.
- Requires authenticated access.
- Triggered via JavaScript `surrealdb.functions`.
- Bypasses function access controls.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability could allow authenticated users who are denied access to certain SurrealQL functions to execute them. This is possible by calling these functions through the `surrealdb.functions` bridge within embedded JavaScript, bypassing intended capability checks.
- Functionality restricted to authorized users.
- Bypass checks via embedded JavaScript.
- Unauthorized function execution.
Operational Fix
Recommended remediation, mitigation, and detection steps
This vulnerability impacts SurrealDB, and its ownership typically falls to the application or platform team managing the database instance. The first critical step is to identify all deployments of the affected SurrealDB version, assess their exposure and business criticality, and then coordinate with the vendor for remediation.
- Application or platform teams own the issue.
- Verify SurrealDB deployment exposure and criticality.
- Plan vendor-coordinated remediation.