Cross-site scripting attacks
Posted Apr 13, 2006 6:52 UTC (Thu) by
jwb (guest, #15467)
In reply to:
Cross-site scripting attacks by Dom2
Parent article:
Cross-site scripting attacks
Having read your blog entry, it seems like you would agree that something like
document.createTextNode() does the right thing by default, no? If you stick to the DOM, there's no
way to inadvertently do something stupid. Everything, stupid or otherwise, is done explicitly.
Regarding your example of SQL placeholders, even that wisdom has not trickled down to the great
programming masses. The vast majority of PHP code out there in wild builds up SQL queries using
string concatenation and explicit escaping. Usually this means no or insufficient escaping. PHP
only recently acquired a decent interface for interacting with SQL databases, and the use of it is not
yet widespread.
(
Log in to post comments)