I was looking at my buddy's site earlier, and I came across the most strange SQL error I have ever encountered. The PHP file is add_cart_new.php?id=
which will add a product to the shopper's cart.
If you have add_cart_new.php?id=184'
you'll get an error that says:
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 ''' at line 1
insert into cart set session_id='1ibltcqbpziwstrilad0e9p61bztnu',product=184'
The part that got me was the ''' at line 1
.
I tried doing some other things like entering:
add_cart_new.php?id=add_cart_new.php&return=d4.php
which would be considered to be a local file inclusion vulnerability, I'm guessing.
Anyway, that led to this error:
Unknown column 'add_cart_new.php' in 'field list'
insert into cart set session_id='1ibltcqbpziwstrilad0e9p61bztnu',product=add_cart_new.php
I've researched this lots, but is there any way someone could actually exploit this to get sensitive information? I've looked at lots of guides, and have tried tons of things. None of them have worked.