Issue Bug Resolved

#93435Honeypot validation fails if no session data exists

Ralf Zimmermann 02/04/21, 13:47 updated 10/16/26, 17:50

Description

At the moment the honeypot protection does not do anything if no session data exists .
The honeypot validation must fail if no session data exists.

Reviews 7

History 1476

Show 551 earlier messages
  1. Gerrit Code Review pushed patch set 1 for master to change 67642 status New Under Review <span data-processor="relativetime" data-value="2021-02-04T13:48:03+00:00" > 02/04/21, 13:48 </span>

  2. Ralf Zimmermann commented <span data-processor="relativetime" data-value="2021-02-04T13:59:48+00:00" > 02/04/21, 13:59 </span>

    Note that this patch can not be tested for TYPO3 v11 until this #93421 (https://review.typo3.org/c/Packages/TYPO3.CMS/+/67637) is fixed.
    Without https://review.typo3.org/c/Packages/TYPO3.CMS/+/67637 the honeypot feature does not work in any way in TYPO3 v11.

  1. Tim Spiekerkötter commented <span data-processor="relativetime" data-value="2021-08-23T13:57:16+00:00" > 08/23/21, 13:57 </span>

    Hi Ralf, hi everyone else,

    this looks promising. I was just about to open a new issue but I think this is what I found right now.

    If I get this right, then currently the honeypot does not work at all, after the page was rendered once, right? I tried a fresh TYPO3 10 installation with nothing else installed, I created a form and put it on a page. After opening the page once TYPO3 creates an entry inside the cache_pages table where the honeypot field with it’s “unique” name is already generated. With the next page load the already build form is rendered directly from the cache and no cookie is set, so the validation doesn’t get added. Is there something we can do with TYPO3 10, 9 or even 8 (we are on ELTS here :() to get the honeypot to work?

    Thank you for your work and cheers,
    Diego

  2. András Ottó commented <span data-processor="relativetime" data-value="2021-12-08T11:47:49+00:00" > 12/08/21, 11:47 </span>

    For anyone facing this issue.

    Putting this line in a custom extion’s ext_localconf.php could work as a workout:

    $GLOBALS[‘TYPO3_CONF_VARS’][‘EXTCONF’][‘extbase’][‘extensions’][‘Form’][‘plugins’][‘Formframework’][‘controllers’][\TYPO3\CMS\Form\Controller\FormFrontendController::class][‘nonCacheableActions’] = [0 => ‘render’, 1 => ‘perform’];

    Basically we need to disable the cache for the renderAction otherwise the honeypot does not work.

  3. Tim Schreiner commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-16T17:50:15+00:00" > 10/16/26, 17:50 </span>

    Applied in changeset commit:130f7d61cd1a945526282d3bdd3bf2fcfa8df46b.