98344[FEATURE] Rate limit form submissions
Commit message
EXT:form now counts the submissions of a form's last page per IP address and rejects them beyond a configurable limit, enabled by default with ten per 15 minutes. The check runs before the page is mapped, so a rejected submission stores no uploads and runs no finisher; the page is shown again with a form-wide message and the rejection is logged.
Resolves: #96435 Releases: main Change-Id: I83d00a7fab0d0e8cbc38399b478619003aa7d6fb
Test this change
Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch
- Check out patch set 1
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/44/98344/1 && git checkout FETCH_HEAD
- Cherry-pick onto main
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/44/98344/1 && git cherry-pick FETCH_HEAD
Review
-
Code review CR +1 Needs a vote
- Simon Schaufelberger +1
-
Verified V +1 Needs a vote
- Simon Schaufelberger +1
- core-ci +1 CI
Merge conflicts 10
- 98369[FEATURE] Add spam protection provider API to forms
- 98366[FEATURE] Clean up stored form submissions and their files
- 94572[TASK] Resolve EXT:form variants lazily per step
- 97550[TASK] Deprecate language key "default" in TypoScript _LOCAL_LANG
- 92589[TASK] Replace unneeded instanceof on xxx|null. Use a null check instead
- 94571[WIP][BUGFIX] Re-evaluate form variants per step and make them revertible
- 94503[WIP][TASK] Save finishers in dedicated table
- 94128[WIP][FEATURE] Provide a webhook for EXT:form submissions
- 93558[POC][FEATURE] form <3 tca
- 67656[FEATURE] Add CSRF protection for frontend forms (ext:form)
Show 5 more changes Show less
Issues 1
Files 26
- typo3/sysext/core/Documentation/Changelog/15.0/Feature-96435-RateLimitFormSubmissions.rstnew+64 −0
- typo3/sysext/form/Classes/Domain/Runtime/FormRuntime.php+58 −1
- typo3/sysext/form/Configuration/Form/Base/FormElements/Form.yaml+5 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/honeypot/enable.rst.txt+5 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/honeypot/formElementToUse.rst.txt+5 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/translation/translationFiles.rst.txt+5 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/additionalParams.rst.txt+5 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/addQueryString.rst.txt+5 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/argumentsToBeExcludedFromQueryString.rst.txt+5 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/controllerAction.rst.txt+5 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/httpEnctype.rst.txt+5 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/httpMethod.rst.txt+5 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/layoutRootPaths.rst.txt+5 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/partialRootPaths.rst.txt+5 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/rateLimit.rst.txtnew+58 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/skipUnknownElements.rst.txt+6 −1
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/submitButtonLabel.rst.txt+6 −1
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/templateRootPaths.rst.txt+5 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/_isCompositeFormElement.rst.txt+5 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/renderingOptions/_isTopLevelFormElement.rst.txt+5 −0
- typo3/sysext/form/Documentation/I/Config/proto/form/Index.rst+3 −0
- typo3/sysext/form/Resources/Private/Frontend/Templates/Form.fluid.html+10 −0
- typo3/sysext/form/Resources/Private/Language/locallang.xlf+3 −0
- typo3/sysext/form/Tests/Functional/Domain/Runtime/FormRuntimeTest.php+12 −0
- typo3/sysext/form/Tests/Functional/RequestHandling/Fixtures/Forms/MultistepTestForm.form.yaml+3 −0
- typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php+67 −0
Show 6 more files Show less
Review log 25
-
Josua Vogel uploaded patch set 1 12/04/26, 19:15
-
core-ci voted on patch set 1 V -1 12/04/26, 19:31 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116359
-
core-ci commented on patch set 1 12/04/26, 19:53 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116359
-
core-ci voted on patch set 1 V +1 12/05/26, 09:56 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116359
-
Simon Schaufelberger voted on patch set 1 CR +1 V +1 12/05/26, 20:55