You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 85 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - SQL (Injection) errors [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
jupiter
Nuke Soldier
Nuke Soldier


Joined: Jul 13, 2003
Posts: 22


PostPosted: Wed Jul 16, 2003 8:23 am Reply with quoteBack to top

All

Being paranoid on security issues and being a Novice in that area and SQL, I have this nagging doubt:

I get this error message when I change the cid in a Sql Query to a character or ' or ". (testing for SQL injection basics)
------------------------------------------------------------------------------------

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/foocom/public_html/owcom/includes/sql_layer.php on line 286

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/foocom/public_html/owcom/includes/sql_layer.php on line 286

Category: Main/


Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/foocom/public_html/owcom/includes/sql_layer.php on line 286
---------------------------------------------------------------------------------

Is this normal? Is there anyway to hide this output and instead say 'try again' or something to that effect?

Thanks

jup
Find all posts by jupiterView user's profileSend private messageYahoo MessengerMSN Messenger
sixonetonoffun
Major
Major


Joined: Jan 13, 2003
Posts: 892


PostPosted: Wed Jul 16, 2003 11:32 am Reply with quoteBack to top

At the least its a simple path disclosure. I don't see that its exploitable as an injection so to speak.

If your site is 100% operational without errors and your on an apache server with access to the .htaccess file. You can use the php_flag directive to shut display errors off. Warning warning don't do this if your not 100% sure of your site working and remember if you are having trouble to comment this out for debugging purposes.

Just add this line to .htaccess
Code:

php_flag display_errors off


There are other directives that can be used to log errors rather then output them to the screen. I'm not goin there if you need that you'll have to investigate a little.
Find all posts by sixonetonoffunView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.187 Seconds - 204 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::