V
V
Vladimir2020-11-17 12:56:28
firebase
Vladimir, 2020-11-17 12:56:28

How to secure an application with a backend on Firebase?

In my web app, users will have a balance. How can I add it to the database so that an attacker cannot install it arbitrarily? I set the security rules settings in such a way that an authorized person can only create, but not update in the database. But it still turns out that when registering, I create an entry in the database through the frontend, and so it will be possible to make an entry in the "balance" field.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2020-11-17
@Cosss

It seems to me, only having removed creation of the user to other place. So that the resulting record object is not created in the application.
I looked briefly, there is Cloud functions, maybe it will be possible to make such a request there?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question