You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Martin Schneider <ma...@gmail.com> on 2014/10/20 14:13:25 UTC

Showcase CSRF vulnerability

We use the tapestry-csrf-protection module to protect our application
against CSRF attacks. To increase security awareness in our team I want to
showcase, that without such a protection our application would in fact be
vulnerable to this kind of attack.

The idea is to have a prepared HTML page, which triggers a POST request in
an iframe to simulate a form submit (which will work as long as a user is
logged in to the application in the same browser). This worked fine as long
as we refreshed the page on the submit. Now it's an ajax call and the
"attack" fails with a HTTP 500: Page must be specified before initializing
for partial page render. Is there an attack vector to make it work anyway?

I could of course make a demo to demonstrate other kind of CSRF attacks
against a sample Tapestry application, the effect would not be the same as
showing, that the real application (without counter measures) is vulnerable.

Follow-up question: Are there any plans on integrating a built-in CSRF
protection into Tapestry in a future version?

Re: Showcase CSRF vulnerability

Posted by Lance Java <la...@googlemail.com>.
1. Switch on the network traffic developer tools in your browser
2. Run a normal ajax submit
3. Take a look at the raw HTTP request that was generated
4. Try and mimic the request in your attack (including params / headers)