In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade surrealdb to version 2.5.0 or higher.
Affected versions of this package are vulnerable to Unintended Proxy or Intermediary ('Confused Deputy') via the futures or closures fields and functions. An attacker can execute arbitrary logic with elevated privileges by creating or modifying fields that contain functions or future values, which are then executed in the context of a higher-privileged user who queries or modifies the affected record. This can result in full privilege escalation, server takeover, or, if network capabilities are enabled and unrestricted, exfiltration of database information over the network.
This vulnerability can be mitigated by minimizing instances where low-privileged users are able to define logic subsequently executed by privileged users, such as apis, functions, futures fields, and events.