Skip to content

Commit

Permalink
[SECURITY] Fix IDOR vulnaribility in createAction
Browse files Browse the repository at this point in the history
Please see TYPO3 Security Announcement for details.
  • Loading branch information
mschwemer committed Sep 11, 2024
1 parent 5a3c627 commit 91015da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Controller/FormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ public function initializeCreateAction(): void
*/
public function createAction(Mail $mail, string $hash = ''): ResponseInterface
{
if ($mail->getUid() !== null && !HashUtility::isHashValid($hash, $mail)) {
return (new ForwardResponse('form'))->withoutArguments();
}
$isSavingOfMailAllowed = false;
$this->signalDispatch(__CLASS__, __FUNCTION__ . 'BeforeRenderView', [$mail, $hash, $this]);
/** @noinspection PhpUnhandledExceptionInspection */
Expand Down

0 comments on commit 91015da

Please # to comment.