Project

General

Profile

Actions

Bug #77403

closed

CSRF protection not usable for anonymous users

Added by Christian Weiske over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Security
Target version:
-
Start date:
2016-08-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When a user is not logged in as frontend user, FormProtectionFactory::get() only returns a DisabledFormProtection, disabling all protection.

Bug #56633 where it was implemented does not say that it only should work for authenticated users.

FrontendFormProtection also fails if there is no user logged in.

So currently there is no official way to protect forms against CSRF attacks for non-logged in users.
A use case would be to prevent contact forms to be submitted without the user having a session, i.e. automated submissions by bots (spamming).


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #56633: Add Formprotection Class for FE usage (API for ext developers)ClosedHelmut Hummel2014-03-07

Actions
Actions

Also available in: Atom PDF