If someone can trick a user into making a post to http://www.mytinytodo.net/demo/ajax.php?deleteList with a list ID they can delete that user's lists.

There are probably other examples of CSRF, this is just one.

Comments

fizk’s picture

Hey greggles,

I watched your video blog post about a CSRF issue with tumbler - interesting read.

I'll look into this issue.

Do you know of any PHP frameworks that deals with preventing CSRF when writing AJAX apps? It would be nice not to reinvent the wheel every time we use AJAX in Drupal - or anywhere else.

greggles’s picture

Sure, here's a collection of articles on dealing with CSRF in Drupal http://drupalscout.com/tags/csrf

greggles’s picture

Ah, forgot to update those, thanks. I've now fixed them or pointed at new examples.

fizk’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.