4 ms·
I guess this is intended for trusted clients?
by jokull 11y ago
I guess this is intended for trusted clients?
- allendoerfer 11y agoIs there such a thing? ;-) This file shows how they authenticate users: https://github.com/mikemintz/react-rethinkdb/blob/master/examples/chat/server/AuthManager.js https://github.com/mikemintz/react-rethinkdb/blob/master/exa...
- toomim 11y agoI think the issue is that the client code is running actual database queries on the server, and I don't see any restrictions on what queries can be executed. So if you log in and authenticate (through that file), it seems like you can just open the javascript console in chrome and run any type of db query you want.
- mikemintz 11y agoDB queries are validated through a whitelist on the server, so it should be impossible to run an unauthorized query when it's locked down. E.g. https://github.com/mikemintz/react-rethinkdb/blob/master/examples/chat/server/queries.js https://github.com/mikemintz/react-rethinkdb/blob/master/exa...
- deleted 11y ago[deleted]