petdance andy@petdance.comhttp://www.perlbuzz.com/AOL IM: petdance (
Add Buddy, Send Message)
Yahoo! ID: petdance (
Add User, Send Message)
Jabber: petdance@gmail.com
I'm Andy Lester, and I like to test stuff. I also write for the Perl Journal, and do tech edits on books. Sometimes I write code, too.
DBI and TaintIn (Score:2)
Re: (Score:2)
--
xoa
Re: (Score:1)
Actually I find
TaintInbarely useful. I use bind parameters for any user input being put into the database, so there’s no way to do damage there. ButTaintOutis very important, because it helps XSS-proofing the code.Re: (Score:2)
It's an issue of philosophy, not practicality. You shouldn't be putting anything tainted into a database, where it becomes untainted. It's a big reminder.
--
xoa
Re: (Score:1)
It’s an issue of philosophy alright. In my case, I prefer to preserve pristine copies of all user input. Lossy destructive modification is evil: it destroys all possibility to investigate the original data in the future, or re-munge it if your algorithms happen to change.
So if I get as far as committing the data to storage, then it’ll be unmodified, meaning I’ll have to scrub/disarm/convert it when I pull it out. This stance makes
TaintInpretty pointless; only if I wanted to optionallyRe: (Score:2)
Who said "lossy destructive"? I'm just suggesting using taint mode as a seat belt to remind you "hey, you haven't validated this data field before you slam it into the database."
--
xoa
Re: (Score:2)
One of my favorite topics. (Score:1)