Review 14.3 Merged

96768[BUGFIX] Keep the honeypot name in the form state

Georg Ringer CR +2 V +2 Hard +163 −103 updated 10/16/26, 18:00

Commit message

The honeypot of ext:form was only validated if the name of the
honeypot field could be read from the frontend session. Without a
session cookie - bots usually send none, and cached pages never set
one - no validator was added and the honeypot was bypassed.

The honeypot name is now stored per page in the HMAC-signed form
state that is rendered with the form, and read from it on submit.
If the honeypot is enabled but the submitted state carries no name,
the submission is rejected and the form step is shown again, as on
a filled honeypot.

Displaying a form no longer writes into the anonymous frontend
session, and the honeypot also works on cached pages and with
static file caching. The documentation is adjusted accordingly.

Forms rendered before this change carry no honeypot name in their
state and are shown again once on submit. Page caches, including
static file caches, should be flushed after the update, otherwise
cached forms keep being rejected.

Review

  • Code review CR +2 Done
    • Georg Ringer +2
  • Verified V +2 Done
    • Georg Ringer +2
    • core-ci +1 CI

Issues 3

Files 6

Review log 45

  1. Georg Ringer uploaded patch set 1 10/16/26, 17:48

  2. Georg Ringer commented on patch set 1 10/16/26, 17:49

    This change is ready for review.
  3. core-ci voted on patch set 1 V +1 10/16/26, 17:57 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111388

  4. Georg Ringer voted on patch set 1 CR +2 V +2 10/16/26, 18:00

  5. Georg Ringer merged patch set 2 10/16/26, 18:00