Ticket Details
CSRF vulnerabilities in lithium?
ENHANCEMENT Ticket (closed)
I created a basic blog app to learn it, and it occurred to me that the following:
{{{
<?=$this->form->create($post, array('method' => 'post')); ?>
<?=$this->form->hidden('id'); ?>
<?=$this->form->field('title');?>
<?=$this->form->field('body', array('type' => 'textarea'));?>
<?=$this->form->submit('Edit Post'); ?>
<?=$this->form->end(); ?>
}}}
... leads to a form without any kind of token or nonce. Shouldn't CSRF protection for non-idempotent urls (such as POST requests) be built into core in such a way that end-users don't need to even worry about it?
Updates
on 08.24.10
by nate
- type was changed to enhancement
- status was changed to approved
- priority was changed to high
on 02.08.11
by greut
- version was changed to lithium-0.9.9
(fixed)
on 07.03.11
by daschl
- owner was changed to daschl
- status was changed to closed
- resolution was changed to fixed