RE: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??
- From: tmboyd1@xxxxxxxx ("Boyd, Todd M.")
- Date: Thu, 17 Jul 2008 13:44:43 -0500
-----Original Message-----
From: Andrew Ballard [mailto:aballard@xxxxxxxxx]
Sent: Thursday, July 17, 2008 11:33 AM
To: PHP General list
Subject: Re: [PHP] is there a problem with php script pulling HTML out
of database as it writes the page??
On Thu, Jul 17, 2008 at 12:02 PM, Stut <stuttle@xxxxxxxxx> wrote:
I
On 17 Jul 2008, at 15:31, David Giragosian wrote:
On 7/17/08, Stut <stuttle@xxxxxxxxx> wrote:
On 17 Jul 2008, at 14:10, tedd wrote:
At 10:28 PM +0100 7/16/08, Stut wrote:
Oh, and you'd be working for me so bear that in mind ;)
-Stut
It's no wonder why you haven't found anyone. :-)
Thanks for that tedd.
Seriously though, I'm wondering if my expectations are too high...
butexpect
them to know that addslashes is not adequate protection against SQL
injection. I even had one tell me "SQL injection? I can't remember
assertedI'm
sure I've used it before". And I won't even go into the guy who
securitythat he's always worked with DB administrators who've dealt with
tooissues so he'd never needed to learn about it.
Am I expecting too much?!?
-Stut
Surely you're being rhetorical, Stut, but no, you're not expecting
have amuch.
However the guy(s) who worked in a larger organization likely did
experiencingvery clear delineation of roles and responsibilities, as I am
practices inin a new position, and therefore may not be current on best
currentareas outside of their role. When my group leader instituted the
decidedpolicy regarding job functions, a number of the open source guys
to newtheir unused skills were eroding and/or they were not being exposed
somebodylearning, and they left the company.
There's no way I would ever hire anyone who says "security was
else's responsibility". I don't care what their previous managershave said,
that's never a valid statement in my book. When you then add the factthat
no DB admin no matter how good they are can implement adequatesecurity to
prevent SQL injection you get a developer who doesn't care aboutsecurity
issues much less know anything about them.
-Stut
A DBA can go pretty far to prevent SQL injection by setting
appropriate rights on the accounts that applications will use to
interact with the database: denying direct access to tables, allowing
access to only the necessary stored procedures, thereby forcing
developers to design products using only those procedures for all data
access. Of course, a lot of developers would complain under this level
of security, and I suspect a lot of frameworks that are out there
would be much less "useful" to lazy programmers.
...and giving procedures that only need read access--wait for it--only read access! I have seen so many pages from work I've done on crowd-sourcing websites that use one (practically) super-user DBMS account to read one or two columns from one or two rows and display them. It boggles the mind.
Todd Boyd
Web Programmer
- References:
- is there a problem with php script pulling HTML out of database as it writes the page??
- From: Rod Clay
- Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??
- From: Stut
- Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??
- From: "Daniel Brown"
- Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??
- From: Stut
- Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??
- From: Stut
- Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??
- From: "David Giragosian"
- Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??
- From: Stut
- Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??
- From: "Andrew Ballard"
- is there a problem with php script pulling HTML out of database as it writes the page??
- Prev by Date: Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??
- Next by Date: Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??
- Previous by thread: Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??
- Next by thread: Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??
- Index(es):
Relevant Pages
|