Quote:
Originally Posted by infinitylimit
Let's be clear. I'm not saying it doesn't happen, I'm not saying don't care about security. I'm saying be lazy, in essence.
|
Well, it sure looks like that's you're saying.
Quote:
Originally Posted by infinitylimit
What do you care if that crap is lost?
|
Because it's
my crap, that's why.
Quote:
Originally Posted by infinitylimit
Just use mysql_escape_string and call it day? are they paying you to care?
|
They're paying me to do a job right, so yes, I care.
Quote:
Originally Posted by infinitylimit
how many times have you seen a site get brought down via DNS or other protocols excluding anywhere your code touches.
|
That's not the point. That's like saying "don't wear a seatbelt because the accident you're in may be caused by another driver and not by you".
Look, I'll write the most secure code I can. Period. If there's a problem, it won't be due to my laziness. There's lots of things I can't guard against but my own code isn't going to be one of them. Damn if I want to explain to a client that, "Yeah, gee whiz, I shoulda protected yer data but it seemed like a lotta work, you know?"
Quote:
Originally Posted by infinitylimit
You could say that you should learn to always write secure code, or that you need to always do x,y,z but it just ain't true.
|
That's
exactly what I'm saying. You should learn to
always code securely. Always. There's no good reason not too, unless you don't care about the quality of your work or what happens to your data or your customer's data. If you don't care that your server is compromised, burnt to the ground, and used to serve kiddie porn, then by all means, don't worry about security.
Quote:
Originally Posted by infinitylimit
How many possible non-printable characters do you remember?
|
None, and that's why I don't bother to memorize stuff like that. I use a common security practice called "least inclusion", where only valid characters are allowed. Don't make up huge lists and try to screen out characters, make a small list of what's allowed in and ignore everything else. This is basic stuff and standard practice taught in any programming course.
Quote:
Originally Posted by infinitylimit
There are just something things that are ridiculous to do on a small scale, and no offense to our readership here but well... enough said I think.
|
I have to admit that I'm surprised that you would take this stance and consider data security to be generally needless.