I have a question about the API, I am pretty new to API and tried to search the internet about that but I couldn't find an answer for that.
The problem is that as we know the requester can send some data to the database just if he is authorized by a token, okay that's great but what is not great is the data parameters it can be changed if the application is reversed so the hacker can get the source code -> change the parameter to whatever he want -> send back to my server and the server will treat the request normally as he is already authorized by a token BUT with a change in the parameter value.
The dangerous scenario in my mind is as the following:
I have a Winforms Application that the user must buy lets say some coins through it in order to do more staff in the app.
If the application reversed the hacker may still implement the request to the server BUT with changing the purshased amount of coins to infinity ! This is just a scenario to demonstrate the idea of manipulating of parameters.
The ultimate question is how to avoid/protect such case?
Thank you