Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 11th, 2005, 4:42 PM   #11
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
To be honest SQL Injection is quite unknown.
To whom? My grandmother, certainly, but no really competent SQL user.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Dec 11th, 2005, 5:31 PM   #12
Darkhack
Hobbyist Programmer
 
Darkhack's Avatar
 
Join Date: Dec 2005
Location: Kansas City
Posts: 105
Rep Power: 3 Darkhack is on a distinguished road
Send a message via AIM to Darkhack
Since when do users have to be competent!? :p

Don't believe me? Here is Proof
Darkhack is offline   Reply With Quote
Old Dec 11th, 2005, 5:45 PM   #13
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I didn't read your link because it doesn't matter. You are saying SQL Injection is unknown. You are also saying it's a problem. It can't be both. If you were to do a cursory search on SQL injection, you would be quite inundated. The fact is that you are letting your personal discoveries tell you that they are the discoveries of the rest of the world, as well. I won't say it isn't a normal tendency, but you need to consider it somewhat before you mount the pulpit and preach to the choir.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Dec 11th, 2005, 6:25 PM   #14
Darkhack
Hobbyist Programmer
 
Darkhack's Avatar
 
Join Date: Dec 2005
Location: Kansas City
Posts: 105
Rep Power: 3 Darkhack is on a distinguished road
Send a message via AIM to Darkhack
DaWei... at this point I am ready to believe in anything. When you literally stand in front of a programmer who claims to have years of expierence in "C-Pound", you'll start to understand where I am coming from. No this, didn't happen to me, but I read about it on a forum once.

Although when I joined my school's website staff was about the time they started rewriting the entire site. Mostly because the administration wanted more content like videos and pictures to go along with our website as well as a new interface, so we decided to rewrite the whole thing. Well, just a few days ago I had to put up a "Snow Day" graphic on the old site, because our new one isn't completed yet. I've never worked with the old code before because I've never needed to, but it was HORRIBLE. It took me nearly an hour just to update that one graphic. Files that wern't even being used were left on the server. They were basically exact copies of the final version except for a few small changes so I basically made the graphics change in 3 different files before I found the one that was actually being used. Hundreds upon hundreds of lines of code were commented out and left that way in the final version. API files were scattered everywhere with no sense of organization and proper use of CSS?? HA! forget that, lets create 20 different CSS files with only one setting in each of them and only use them once. But guess what? Our old site still works like a charm.

Any GOOD programmer knows the security risks such as SQL-Injection and Buffer Overflows, but how many GOOD programmers are there??? Less than you would think and yes I too would label buffer overflows as a lesser known risk. This doesn't just apply to programmers either. Average users will make the dumbest of passwords all the time. They'll use their birthday or the name of their dog, or whatever.

Do a majority of people in general know about these risks? Yes they do. But exactly how large is a majority? Many times it swings as low as 60/40 and SQL-Injection fits in that category.
Darkhack is offline   Reply With Quote
Old Dec 11th, 2005, 6:35 PM   #15
Mocker
Hobbyist Programmer
 
Mocker's Avatar
 
Join Date: Oct 2005
Location: Indiana
Posts: 217
Rep Power: 0 Mocker is an unknown quantity at this point
Send a message via AIM to Mocker
Darhack.. i think you mean any mediocre PROFESSIONAL PROGRAMMER knows about mysql injection. The problem is usually with hobbyists programmers who make little random scripts and figure "the script just reads a random quote, I dont need to worry about verifying input" or just havent read far enough to find out about it. Because with the different injection attacsk (mysql, variable, input .. etc etc) it doesn't really matter what your program is supposed to do, a simple script can be hacked and used to take over your entire mysql or home directoy account.

I see so many of these types of things in my work as a tech for a bunch of webhosting companies. Grrrr..

I just wrote a long long post then accidenlty closed the window so no long explanation from me

Just.. you did not mention register_globals which is a HUGE security risk that people still seem to ignore.

Basically.. DO NOT USE register_globals and make sure they are disabled. If your server has them enabled you may be able to turn them off for your account in your root .htaccess file by adding the line
php_value register_globals OFF
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi
freelance scripts - http://ryanguthrie.com/index.html
Mocker is offline   Reply With Quote
Old Dec 12th, 2005, 7:13 AM   #16
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Darkhack, I don't mean to get you off on a rant. I suppose your means of communication is just lacking. The fact that many programmers or web designers are not up to your standards is a non-sequitur when applied to whether or not SQL injection is an "unknown" thing. If your definition of "unknown" is that less than an absolute majority know about it, well, okay, but I think that leaves you in a minority, definition-wise. Certainly, all the ranting about poor use of graphics or CSS or whatever has nothing to do the community's awareness of SQL injection.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Dec 12th, 2005, 9:50 AM   #17
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by Ooble
You also need to backslash-out hyphens, as -- is a comment marker in SQL
Only if you don't quote the string, or don't backslash quotation marks, which you should be doing, anyway.
Arevos is offline   Reply With Quote
Old Dec 12th, 2005, 4:23 PM   #18
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
What if it's an integer you're passing? Yes, you can quote integers in SQL, but it doesn't feel right.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:52 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC