If I have an HTML form, and it has hidden inputs for ID numbers and the like (so I know the id key of of table x to update), how can I secure it so the person can't just change it and screw up database entries?
I have a modal bootstrap "popup," for example, that I append hidden inputs to the form so when I submit the form in the modal the correct database keys are submitted and processed.
Someone can easily change that (not to mention editing the Header and Resend). What can I do? The site is secured with username and password, but other than that I am not sure what to do. I'm not as worried about SQL Injection as much as bad data.
The only other thing I could think is to store values in Session Variables.
I am using ASP.NET Core 2.x and jQuery if it matters.
This was similar, Protecting hidden form fields