Current location: Hot Scripts Forums » General Community » The Lounge » SQL Injection.. is it really that simple?


SQL Injection.. is it really that simple?

Closed Thread
  #21 (permalink)  
Old 01-26-09, 10:13 AM
infinitylimit's Avatar
infinitylimit infinitylimit is offline
Code Guru
 
Join Date: Jun 2004
Location: Oregon
Posts: 758
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by End User View Post
I have to admit that I'm surprised that you would take this stance and consider data security to be generally needless.
I'm not trying pidgin-hole the argument into two category's of either for or against security. I work with a variety of clients some that are concerned with price over any other aspect. Why charge them for time to write secure code when they really don't care? Just as I said and am repeating on the other hand the I have clients that has something to protect and wants you to spend that extra time then those are the people that you do it for. This is efficient and I would expect this out someone I hire.

Aside from that argument it's a debate over pride in one's work and well I think that is more a philosophical debate, I can tell we might be missing the topic entirely.
__________________
Hawk Enterprises -- Home to PHP games, open-source code, tutorials and free downloads
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
  #22 (permalink)  
Old 01-26-09, 11:55 AM
Psybadek Psybadek is offline
Wannabe Coder
 
Join Date: Jun 2003
Location: Florida
Posts: 188
Thanks: 0
Thanked 0 Times in 0 Posts
Well if I were a client, I would expect the code to be secure, and not to be charged extra for having the code secured, that should be common knowledge of it being a necessity.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
  #23 (permalink)  
Old 01-26-09, 02:23 PM
infinitylimit's Avatar
infinitylimit infinitylimit is offline
Code Guru
 
Join Date: Jun 2004
Location: Oregon
Posts: 758
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Psybadek View Post
Well if I were a client, I would expect the code to be secure, and not to be charged extra for having the code secured, that should be common knowledge of it being a necessity.
LOL your the one that pose the original question. However I'm not going to repeat myself for a third time.
__________________
Hawk Enterprises -- Home to PHP games, open-source code, tutorials and free downloads
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
  #24 (permalink)  
Old 01-26-09, 02:39 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by infinitylimit View Post
I'm not trying pidgin-hole the argument into two category's of either for or against security. I work with a variety of clients some that are concerned with price over any other aspect. Why charge them for time to write secure code when they really don't care?
Well, there are a couple of ways I would respond to this:

1) I'm pretty sure that most clients DO care that their data is secure, whether or not they explicitly say so or not. Do you really have clients who don't care about the security of their site, or of the code you write for them? I bet if you asked them they'd all say that they do care.

2) Writing secure code takes about the same amount of time as writing insecure code if it's done correctly. Seriously, baking security into the application should not require a lot more code or time. Mine doesn't, but then I use some standard libraries and methods that I've developed over time. Security should not be an option or an add-on.

3) Let's say you have a site that's very, very secure- that is, it's nicely locked down with no real security holes. You're asked to write a simple app, like a contact form. If the contact form is insecure, you've just opened the entire site to being exploited, having its data stolen, etc. It's the "weakest link" principle in action, like having a very well secured home but leaving the back door unlocked.

4) If you write exploitable apps, you leave yourself open to liability if (when) it's exploited. If a client's site is cracked and it's due to your code being insecure, guess who's at the top of the list to be sued (or at least blamed)? You are. If you knowingly deliver insecure code, you're liable should something happen as a result.



Quote:
Originally Posted by infinitylimit View Post
Just as I said and am repeating on the other hand the I have clients that has something to protect and wants you to spend that extra time then those are the people that you do it for. This is efficient and I would expect this out someone I hire.
If you would knowingly hire someone that delivers insecure code to you, then I'd say we have very different standards in terms of employees. (Seriously, are you saying that you would willingly accept insecure code to run on your site, or that of a client?) As I said above, if done properly good security should not require a lot more code or time.

Quote:
Originally Posted by infinitylimit View Post
Aside from that argument it's a debate over pride in one's work and well I think that is more a philosophical debate, I can tell we might be missing the topic entirely.
Pride in one's work is indeed another subject, but for me it's irrevocably linked to quality of the end product.

I've worked for big companies (Boeing, Microsoft, AT&T, Westinghouse Hanford, Lockheed, etc) as well as small ones (mom and pop places) and I've never had a client tell me that security wasn't an issue. I've never had one who would knowingly accept insecure code. It's expected that the code would be as secure as it could reasonably be expected to be.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
  #25 (permalink)  
Old 01-26-09, 03:22 PM
infinitylimit's Avatar
infinitylimit infinitylimit is offline
Code Guru
 
Join Date: Jun 2004
Location: Oregon
Posts: 758
Thanks: 0
Thanked 0 Times in 0 Posts
Sigh. I'm done trying to discuss this you still are in the frame of either I'm A) for it, or B) against it and I can't talk in this frame of reference. I have no ego invested in this conversation and I understand that there is more than just two options.

It's just like the fact that there are Mall Cops and there are Secret Service, it's about perceived value and protection. If you own a company and you hire a Mall Cop for a secret service job your a moron. If you hire a secret service agent for the price of a mall cop your genius, if your that secret service agent applying for the mall cop job your a moron.
__________________
Hawk Enterprises -- Home to PHP games, open-source code, tutorials and free downloads
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Closed Thread

Bookmarks


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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to protect from sql injection? Hamed PHP 7 09-03-08 03:51 PM
SQl Injection through ASP and MS SQl 2000 cancer10 ASP 5 12-18-07 02:30 PM
SQL injection and addslashes() bd_coder PHP 1 06-08-06 10:06 AM
Securing forms from SQL Injection Vineman PHP 2 01-26-06 07:14 AM
change my field in this example sal21 ASP 3 07-14-03 03:49 AM


All times are GMT -5. The time now is 07:29 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.