Thanks! I've always liked the idea of SQL in the browser, since the Web SQL times.
That part is provided by the excellent sql.js project btw: https://github.com/sql-js/sql.js/
It would of course also increase server's potential attack layer. sqlite had some bugs, potentially exploitable, if you are able to invoke arbitrary statements
https://www.sqlite.org/cves.html https://www.sqlite.org/security.html
It can't change under you on a whim though, can't it? Unless you host it yourself.
Re:Show HN: SQLite Playground
by jazzyjackson on Tuesday September 28, 2021 @10:37PM
(#28689698)
Sure but you can always keep the network tab in the devtools open and be confident nothing is getting exfiltrated
I was thinking at first: Hey, this might be kinda dangerous, imagine iterating in a tool and sending my database to a server and any attacker retrieves the database.
But since it runs everything inside of the browser with wasm i found it WAY more secure. Nice that you've done it, will probably use it a lot.