For more information, see the following code: & lt; form & nbsp; name = "form1" & nbsp; method = "post" & nbsp; action = "OK. php "& gt; & lt; input & nbsp; type =" text "& nbsp; name =" phone "& nbsp; class = "phone" & n. For more information, see
The following code:
When you click the submit button, if you select save = 1, the submission is successful. However, if you directly use OK. php? Save = 1 "can be used too. how can I avoid using" OK. php "directly? Save = 1 "to submit ???? Share:
------ Solution --------------------
Do not assign initial value 1
------ Solution --------------------
You can use $ _ POST ['save'] to detect the vulnerability. you can use curl to simulate the submission.
------ Solution --------------------
1 \ are you using $ _ REQUEST ['save'] to receive it?
This can receive the get/post request,
Use $ _ POST ['save'] to receive the message. you can filter it and enter OK. php in the address bar? Save = 1
2 \ The default value is 0;
However, all the data that can be performed and obtained in the browser can be simulated,