*** update This call reverse engineering. See answer.
Can hackers unpack the Flutter app and convert it to the native file (folder lib
) and change code in the lib
folder?
For example, some games that are made from Unity can unpack the game file and edit code to hack it.
If it is possible to edit code in Flutter, the hacker can change code to insert, and update, ... the data in firebase.
For example, if the customer buys a product, the flutter will insert order in firebase and update the money balance of the user. The hacker can edit the code about the money balance updating from ...$ to 1,000,000$ (I am rich).
Should we use firebase API on the host instead of firebase on flutter?
This is my opinion and I am new to firebase.
I think that, when Flutter is popular, the program that can unpack the flutter app will come.
*** new example ***
- My
flutter project
havebuy.dart
. buy.dart
can:
- receive new order object data.
- insert new order in firebase.
- update the money balance(old - product price) of the user.
- I build the
flutter app
from theflutter project
. - The user(customer) has the
flutter app
. - The user uses the program that can unpack the
flutter app
toflutter project
. - After unpacking, the user has the
flutter project
. - The user edit
buy.dart
from
- receive new order object data.
- insert new order in firebase.
- update the money balance(old - product price) of the user.
to
- receive new order object data.
- insert new order in firebase.
- The user has the
flutter project edited
. - The user builds the
flutter app
from theflutter project edited
. - The user has the
flutter app
that can shop without paid money.
These are what I mean.
It will happen will someone creates the program that can unpack the flutter app
.
Or I can add a script like 7.
in firebase rules?
(the buy.dart
will - receive new order object data and - insert new order in firebase
then the firebase will auto - update the money balance(old - product price) of the user.)