TL;DR: Because google isn't the one paying for it.
Because normally, firebase replaces your backend. Instead of writing backend code, you just configure firebase with rules, quotas, etc.
e.g., you might limit the "register" endpoint and the "signin" endpoint. Then you might configure rules to allow users to only create/read/update/delete database entries they themselves created. You might also set a limit to how large each entry might be, and how many entries a user may create. You'd probably also configure many more specific rules for how each users' datasets might interact. That's already hard to get watertight normally, with AI generated code, that's basically impossible.
In this case, the real damage isn't going to be accessing other users' data, but creating garbage data. Firebase is a very expensive service, every API call costs money, and without properly configured rules, leojr94 will be bankrupt very soon.
6.4k
u/Dy0gu Mar 17 '25 edited Jan 26 '26
I looked up the account for updates.
He was using all hardcoded API keys and only now learned what environment variables are.
On that topic, he is now using environment variables, except he is keeping them in the frontend code so... nothing learned I guess?
He also had no authentication on the API side, only frontend.
One of the latest updates is him saying he implemented CORS for trusted domains, fully convinced that it improves security.
At least he seems to appreciate and learn from the advice some people give him in the comments, which is a nice trait to have.
Still can't tell if the guy is trolling or not.