XSS in Rails Applications

I'm doing some research at the moment for a presentation I'm doing for the Scotland on Rails conference, later this month. As part of that I've been downloading some sample Rails applications to get an idea of common security issues that I can discuss.

Interestingly on popular applications that I've downloaded so far, I'm 2 for 2 on the exact same problem.

Both of them have XSS vulnerabilities from the user-->admin sides of the site. So the end-user pages have output encoding to restrict XSS but the admin sections don't consistently provide the same protection.

It's also interesting that both applications seem to be relying on output encoding as a defence as opposed to input validation. In my experience the best defence is a combination of the two...

Of course that leads to some potentially nasty exploits around stealing admin credentials from the site in question. Hey looks like I'll have some stuff to talk about anyway :)

About this Entry

This page contains a single entry by Rory2 published on March 8, 2009 9:18 PM.

Penetration Test Scoping was the previous entry in this blog.

Thoughts on Secure Data Handling in web applications... is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.37

About this Entry

This page contains a single entry by Rory2 published on March 8, 2009 9:18 PM.

Penetration Test Scoping was the previous entry in this blog.

Thoughts on Secure Data Handling in web applications... is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.