So, I have a page with a simple form. To submit this form, I need me to check the box (some privacy rules, etc.).
I have a form like this:
<form role="form" class="form" id="zamowienie" action="send_order.php" method="post"> <button type="button" id="wyslijZamowienie">SEND</button> <input type="checkbox" id="regCheckbox" value=""> </form>
(Of course, all distracting inputs are deleted.) Then I have a script that should send the form only after checking the checkbox.
button.on("click",function(){ if ($("#regCheckbox").is(":checked")) $("#zamowienie").submit();
Unfortunately, I found out that the user can change the button type locally from "button" to "send", and he will be able to submit a form that ignores my submit script protection.
And an additional question. I am not an expert, but I started wandering about what else can be done with FireBug or dev. Can he execute any attacks in this way?
Thanks so much for any answers or recommendations.
source share