Skip to content
Snippets Groups Projects
Commit f553d918 authored by Christian Eßl's avatar Christian Eßl Committed by Georg Ringer
Browse files

[BUGFIX] Throw BadRequestException on failed hmac validation from forms

If a HMAC of a submitted form is invalid (because it has been tampered
with), TYPO3 would previously throw an exception that leads to a
status code 500. This is incorrect behaviour, as the error comes from
bad user input and not a server error.

In case the HMAC of a submitted form is invalid, both extbase and
ext:form will now throw a BadRequestException, which will then lead to
a status code 400 (BAD REQUEST).

Resolves: #90134
Releases: master, 9.5
Change-Id: If4dad7ba27190b5992bab68b4ce64a423c0db645
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63272


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarAlexander Schnitzler <git@alexanderschnitzler.de>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarAlexander Schnitzler <git@alexanderschnitzler.de>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent 7e2928e5
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment