Skip to content

Scan rule · RSC-SEC-064

Access check runs after the write

SecuritySeverity: HighCWE-862OWASP A01-2021

Compares the position of the auth call and the database write within the same function body and reports checks that happen after the write.

Scan tier

Source code from source mapsRepo access (deep scan)

How to fix it

Move the auth call and its bail-out to the top of the function, ahead of every write.

Scan your own app for free