websql: Update and simplify SQLite authorizer.
The authorizer now explicitly denies SAVEPOINT statements and recursive queries. This behavior was implicit before this CL, because the action codes were not handled, and the (correct) default is to deny any unknown action. The authorizer now always denies ATTACH and DETACH statements. Before this CL, these statements were allowed when security checks were disabled. However, security checks are only disabled to execute WebSQL-internal statements, and our implementation does not rely on attaching and detaching databases. The statements are very dangerous, so this CL denies them at all times. Change-Id: I4d1df92888670dcb5ceb7afa63767d1d4c7a741b Reviewed-on: https://chromium-review.googlesource.com/c/1342858 Commit-Queue: Victor Costan <pwnall@chromium.org> Reviewed-by:Joshua Bell <jsbell@chromium.org> Cr-Commit-Position: refs/heads/master@{#609757}
Showing
Please register or sign in to comment