Persistent XSS on Twitter.com
praetorianprefect.com
praetorianprefect.com
[1] http://www.davidnaylor.co.uk/massive-twitter-cross-site-scri...
> The problem is similar to one described last August by James Slater. That time around the issue was with the application URL, this time it appears the application name is the issue.
They should just be sure that they _render_ the application name field appropriately. Angle brackets should be escaped, minimally. It's really not so difficult, Ruby does it with three calls to gsub: http://rdoc.sourceforge.net/rd/doc/classes/CGI.src/M000003.h...
Either way, XSS sucks. Surprised that they haven't plugged this one yet.
Rails 3 changes this by always html escaping strings.
Rails' conflation of these types guarantees that whatever the default for escaping, there will be bugs in applications written in/on rails.
I'm curious what people here think of that idea, ie, preventing string injection attacks at the language level.