#111659Prevent restoring form definitions via DataHandler undelete
Description
Database-stored form definitions (table form_definition) are guarded against direct DataHandler access, so they can only be created, updated and deleted through the form framework.
The guard only handles the delete command of the command map. Other commands, for example undelete, are not blocked, so a backend user with write access to form_definition can restore a deleted form definition via DataHandler (e.g. the recycler or a command map).
Expected behaviour
All DataHandler commands on form_definition are denied, unless they are issued by the form framework.
Suggested solution
Block all commands for form_definition in FormDefinitionDataHandlerHook::processCmdmap(), except a granted delete command.
Affected versions
- TYPO3 main (15.0-dev)
- TYPO3 14.3 (since 14.3.3, which introduced the guard)
TYPO3 13.4 and older are not affected, as database-stored form definitions do not exist there.
Note
This is a public security hardening. The issue was reported to the TYPO3 Security Team, which decided to handle it in public.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Prevent restoring form definitions via DataHandler undelete Resolves: #111659 Releases: main