|
|
|
|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 127
Members: 0
Total: 127
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
is this an SQL injection |
|
Posted: Mon Mar 24, 2008 12:29 am |
|
|
theface |
Active user |
|
|
Joined: Dec 24, 2007 |
Posts: 33 |
|
|
|
|
|
|
|
when i go to http://site.com/?page=viewcolumn&id=
i am geting this error
Code: | Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /opt/customer/htdocs/haveeru/public_html/includes/columnists_view.php on line 102
<0> |
|
|
|
|
|
|
|
|
|
Posted: Mon Mar 24, 2008 12:54 am |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
It only indicates, that sql query has failed. It is sql injection, when you are able to INJECT something to that query.
Let's assume, that "id=55" is valid page.
Run test's below :
Code: |
http://site.com/?page=viewcolumn&id=55
|
Code: |
http://site.com/?page=viewcolumn&id=55--+
|
Code: |
http://site.com/?page=viewcolumn&id=55'--+
|
Code: |
http://site.com/?page=viewcolumn&id=55)--+
|
Code: |
http://site.com/?page=viewcolumn&id=55')--+
|
Code: |
http://site.com/?page=viewcolumn&id=53%2b2
|
Error messages? Normal page? This tests will give you an anwer you are searching for. |
|
|
|
|
|
here |
|
Posted: Mon Mar 24, 2008 1:09 am |
|
|
theface |
Active user |
|
|
Joined: Dec 24, 2007 |
Posts: 33 |
|
|
|
|
|
|
|
when i give a non existing id it gives error so i tried with a valid which is 127 and got following
Code: |
http://site.com/?page=viewcolumn&id=127
|
no error and loads the page
Code: |
http://site.com/?page=viewcolumn&id=127--+
|
no error and loads the page
Code: |
http://site.com/?page=viewcolumn&id=127'--+
|
no error and loads the page
Code: |
http://site.com/?page=viewcolumn&id=127)--+
|
no error and loads the page
Code: |
http://site.com/?page=viewcolumn&id=127')--+
|
no error and loads the page
Code: |
http://site.com/?page=viewcolumn&id=127%2b2
|
no error and loads the page |
|
|
|
|
Posted: Mon Mar 24, 2008 1:31 am |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
Then there is no sql injection, just missing parameter check (lazy programmer) ... |
|
|
|
|
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
|
|
|
|
|
|
|