Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

when i typed this code on the comment box on my school site "http://www.catanduanesst

when i typed this code on the comment box on my school site "http://www.catanduanesstatecolleges.edu.ph/feedback/"

<?php
/*
Un-Stripped PHP
*/

$var = $_GET['var'];

echo $var;
//Vulnerable

$var1 = $_POST['var1'];

echo $var1;
//Vulnerable

echo $_SERVER['HTTP_USER_AGENT'];
//Vulnerable

?>


the page loaded an gives me this error:

An error occurred: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'var\'']; echo $var; //Vulnerable $var1 = $_POST[\''var1\'']; echo $var' at line 4


what will i do now? i already found the vulnerability of the field.
you can't use ' symbol, change it with ", or it will give you sql syntax error.
test it with <?php echo "123"; ?>
if it works, then u shud be able to upload some evil codes.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by panzerjagerDec 17, 2014 11:05 AM 5 4,003 Dec 17, 2014 11:05 AM
Last Post: Fiora
by BLACK JAKAug 14, 2014 07:19 AM 4 128 Aug 14, 2014 07:19 AM
Last Post: Frosteh
by Th3PonyWizardMar 25, 2014 11:07 AM 14 673 Mar 25, 2014 11:07 AM
Last Post: Th3PonyWizard