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 applicationsLearn about Incorrect Authorization vulnerabilities in an interactive lesson.
Start learningUpgrade surrealdb to version 3.1.0-beta.3 or higher.
Affected versions of this package are vulnerable to Incorrect Authorization in the LIVE subscription process. An attacker can access records that should be restricted by manipulating variables such as $value, $before, $after, or $event before registering a LIVE SELECT, causing permission checks to be evaluated against attacker-controlled input instead of the actual document. This is only exploitable if permission expressions reference these user-named variables without also gating on a system-derived field such as the record id.
This vulnerability can be mitigated by avoiding permission and LIVE WHERE expressions that read user-named variables ($value, $before, $after, $event) unless they also check a system-derived field like the record id.