JScriptcode $. getJSON (. comtest. php, {id: 2, v: value}, function (data) {}); submit and directly in. comtest. php? Id2 & amp; vxxx has the same effect. If test. ph has a question about getJson data submission
JScript code
$.getJSON('http://a.com/test.php',{ id:2, v:value },function(data){});
So commit and direct in http://a.com/test.php? The effect of id = 2 & v = xxx is the same.
If SQL is executed in test. php, how can we ensure the security of data updates?
How can I determine if I want the getJosn source instead of the http://a.com/test.php? Id = 2 & v = xxx source?
For example, I want to pass data to test. php through getJson, and then update the value of v to the data table with id 2.
That's not to say that as long as you pass the "http://a.com/test.php? Id = 2 & v = xxx ". Is it possible to submit it out of site?
In addition to session and hidden, what else can we verify this security?
------ Solution --------------------
There are a lot of ways to give you a simple
Create a reversible encryption algorithm to encrypt the submitted data.
Your data is safe before someone else can reverse your algorithm.
------ Solution --------------------
Discussion
There are a lot of ways to give you a simple
Create a reversible encryption algorithm to encrypt the submitted data.
Your data is safe before someone else can reverse your algorithm.