No longer protecting

Created on 7 February 2024, 5 months ago
Updated 3 June 2024, 21 days ago

The Antibot module no longer protects against some kinds of form spam. It looks like the protection was broken by some robots. Last days we have a plenty of spam submission from different IP addresses on most of our websites. Anyone have the same problem?

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Miscellaneous

Created by

πŸ‡¨πŸ‡ΏCzech Republic maxiorel Brno

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @maxiorel
  • πŸ‡¬πŸ‡§United Kingdom Problue Solutions Northern Ireland

    We are also seeing this, specifically in the last few days and on all of our clients sites. Antibot is no longer stopping spam submissions on webforms and on a couple of sites where visitor registration is possiblle it is also no longer preventing spam sign ups.

    Antibot has always worked fine for us up until the last few days, however I have no evidence to prove that it just hasnt been subjected to severe spam attacks up until now.

    On one site which has both Antibot and Honeypot installed (with time restrictions enabled) we are suddenly seeing large amounts of spam through a webform, the only way we were able to stop it was to enforce telephone number validation on the form.

    It feels to me like more advanced bots have appeared in the last few days which have made made Antibot and Honeypot no longer effective.

  • πŸ‡ΊπŸ‡ΈUnited States Amstercad

    Confirming I'm seeing the same thing since the last few days. It seems there's a new spambot in town.

  • πŸ‡³πŸ‡±Netherlands Gerard Benimeli

    Same here on several sites.

  • πŸ‡³πŸ‡±Netherlands Dries Arnolds πŸ‡³πŸ‡± Amsterdam

    Same here. Registrations, Webforms etc are defeated regularly.

    I also tried adding the Honeypot module ( https://www.drupal.org/project/honeypot β†’ ) into the mix, but that didn't make much of a difference. I really hate captcha modules, so I hope we can find out how they do it and come up with a solution.

  • πŸ‡³πŸ‡±Netherlands Ewout Goosmann

    I got the same issue. I have just patched the antibot module on one of my sites, so it will log the events which triggers the unlock function. Hopefully it will tell us something useful.

  • Same issue here, using the 7.x-1.2 version.

  • πŸ‡³πŸ‡±Netherlands Dries Arnolds πŸ‡³πŸ‡± Amsterdam

    Some more details that might be useful:
    - my forms are not visible on a dedicated link (only added to a page through a reference field)
    - most sites are running the latest version of Drupal, Antibot and Webform (although the problem occurred on a D9 site as well)
    - all sites have recent versions of PHP/MySQL

  • πŸ‡¨πŸ‡ΏCzech Republic maxiorel Brno

    More details: both comment forms and Webforms are bypassed. Also most updated version of D10.

  • πŸ‡§πŸ‡ΆCaribbean Netherlands calbasi Catalonia

    Same here. Honeypot doesn't help

  • πŸ‡³πŸ‡±Netherlands Ewout Goosmann

    Hmm, it looks like the spambots aren't triggering any of the events that should unlock the webform, or they aren't submitting the hidden field which contains the logged events.

  • πŸ‡ΊπŸ‡ΈUnited States frederico

    When going to Administration > Configuration > User Interface > Antibot Settings to configure Antibot, I am seeing:

    Status message
    Antibot (antibot_settings): disabled

    Would this be contributing to the huge increase spam in the past 1 to 2 weeks? If so, how is it re-enabled? Thanks!

  • πŸ‡³πŸ‡±Netherlands Ewout Goosmann

    I did some more research and now I'm sure the hidden fields are submitted, but no event was logged. Even the initial attach method isn't called, implying that the bot is not loading and/or executing JavaScript.

    I saw that the antbot_key is stored in the drupalSettings and is readable in the markup even without JavaScript. A possible solution is that the antibot key must be "transformed" server-side before attaching it to drupalSettings and to use JavaScript on the client-side to undo the "transformation" when the unlock function is called.

    Maybe I can look into this later today.

  • πŸ‡³πŸ‡±Netherlands Ewout Goosmann

    This patch will do some shuffling logic on the antibot key which is needed to submit the form. Which means that the real antibot key is not in the drupalSettings anymore. Only a shuffled version of it is in the drupalSettings. The unlock method in the antibot.js file (which is responsible for adding the key) is now also "unshuffling" the antibot key to the real one before adding it to the form.

    I'm not sure if this is preventing the bot from filling in the form, so please share you findings.

  • πŸ‡³πŸ‡±Netherlands jurveen

    Thanks for your work Ewout! I've applied your patch to 2 live sites, I'll gather the results and I will share my findings.

  • πŸ‡©πŸ‡ͺGermany Volker23

    Same problem here, large amounts of new user registration on an up-to-date D10. Spam mail-adresses are mostly in the form of e.g.

    'iha.veno.cl.ueh.ow.tost.opthis@gmail.com'

    with a lot of dots in name. I am now trying the patch in #14.

  • πŸ‡³πŸ‡±Netherlands Ewout Goosmann

    Thanks @jurveen and @Volker23 for testing. Hopefully the spam will stop with this patch.

  • πŸ‡§πŸ‡ͺBelgium xaa Brussels

    Thank you for your quick reaction Ewout! I'am also testing the patch (on a d9.5.9).

  • πŸ‡ͺπŸ‡ΈSpain trebormc Barcelona

    Patch applied to one of the websites where I receive spam through the contact form. I have other websites where spam also arrives daily, but I have not applied it there to check if the spam stops because of the patch or because the bot has given up. In a couple of days, I will inform you if the patch has worked or not.

  • πŸ‡©πŸ‡ͺGermany Volker23

    @Ewout Goosman, half a day without spam, this looks very promising. Thanks!

  • πŸ‡ͺπŸ‡ΈSpain trebormc Barcelona

    The same here.
    The website where I applied the patch has stopped receiving spam, the rest of the websites without the patch continue to receive spam.
    If it continues to work well tomorrow, I'm going to apply it to all my websites.

  • Would somebody please be willing to convert the patch to the 7.x-1.2 version?
    I tried to do this myself, but unfortunately am unable to get it working.

  • πŸ‡¨πŸ‡¦Canada danrod

    I applied the patch #14 with no issues, tested this on a DEV site exposed to the internet and haven't got any spam for now (again, it is a dev site so it isn't getting a lot of requests).

    Please let me know how this is working on your end (not getting spam after applying the patch) and I'll commit this to the 2.0.x branch.

    I'll try to create a patch for the 7.x-1.x version.

  • πŸ‡ͺπŸ‡ΈSpain trebormc Barcelona

    I have applied the patch to 4 websites.
    To the website that was receiving the most spam, I applied the patch 2 days ago.
    Seeing how well it works, yesterday I also applied it to 3 websites that have been receiving little spam for about 2 weeks (at least 1 email at night and 1 email during the day).

    Since yesterday, I have not received any spam.
    I believe the patch can be included in branch 2.0.x.
    In case I receive spam again, I will notify you here, but the patch is very promising.

    Thanks for the patch

  • πŸ‡§πŸ‡ͺBelgium bramvandenbulcke

    We are using Antibot on more than 20 installations. Antibot was doing really well in protecting against spambots for several years, in a 'set it and forget it' way. Beginning of last week, we started receiving messages from several clients saying spam was getting through the webforms, mostly simple contact webforms.

    At first, I thought these spam messages were human spam. But the amount of spam was increasing and the IP addresses are rather random, which points to spambots bypassing the Antibot protection. Most spam I've seen was maximum five/six messages per day: no huge numbers but still annoying.

    I've added Honeypot (with a non-default hidden field name) to some Antibot instances but that didn't help. Honeypot used to be an elegant anti-spam method but it doesn't work anymore for us. This week, I've been busy implementing reCAPTCHA 3 (with the Simple Google reCAPTCHA module) on several instances. This blocks the spam but creates another dependency on Google.

    I will try patch #14 on the remaining instances.

  • πŸ‡«πŸ‡·France Damien Laguerre

    I also applied the patch to 4 sites two days ago, and the spam was all blocked.
    Everything seems to be working perfectly.

    Thanks for the patch.

  • πŸ‡³πŸ‡±Netherlands jurveen

    I've applied patch #14 to 6 websites that I maintain.
    Before the patch, some sites received up to 10 spam messages per day via the webform contact form.
    Now, 2 days with the patch applied: no spam at all.

    Thanks again @Ewout Goosman for your work!
    As @trebormc suggested, I think too that this patch should be included in the 2.0 branch.

  • Status changed to Needs review 4 months ago
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7
    last update 4 months ago
    Patch Failed to Apply
  • Status changed to RTBC 4 months ago
  • πŸ‡§πŸ‡ͺBelgium tijsdeboeck Antwerp πŸ‡§πŸ‡ͺ πŸ‡ͺπŸ‡Ί 🌎

    We can also confirm that this patch fixes the spam. We've applied it to 10 sites on Friday, and none received any spam over the weekend. We didn't see any other negative impact on legitimate form submissions, etc.

    It would be great to have a new release with this patch as this is highly critical.

    Seeing that multiple people confirmed this I'm marking this issue as RTBC.

  • πŸ‡³πŸ‡±Netherlands Dries Arnolds πŸ‡³πŸ‡± Amsterdam

    I'll add my 2 cents: Installed on two sites on friday (the ones with the most spam). They received no more spam since then. The other sites that run antibot still received a lot of spam. Also legitimate submissions still arrived (test and real-world).

  • πŸ‡§πŸ‡ͺBelgium xaa Brussels

    Same here. no spam received since patch applied on 2 websites and the legit emails are still coming.

  • πŸ‡©πŸ‡ͺGermany vistree

    The patch also works fine on my sites. I installed it on one page with > 1000 spams per day - and the spams have gone while wanted webform submissions still arrive.

  • πŸ‡©πŸ‡ͺGermany vistree

    By the way: I am also interested in a Drupal 7 compatible patch. Is someone already working on this?

  • πŸ‡¬πŸ‡§United Kingdom 2dareis2do

    Thank you Ewout. Patch applies for me.

    I saw that the antbot_key is stored in the drupalSettings and is readable in the markup even without JavaScript.

    Has this always been the case? Good spot and fix.

  • πŸ‡¨πŸ‡¦Canada danrod

    Thanks everyone for the feedback, I just committed the patch to the 2.0.x branch, I'll release a tag version shortly.

    I'll work towards creating a similar patch to the 7.x-1.x branch.

  • Status changed to Fixed 4 months ago
  • πŸ‡¨πŸ‡¦Canada danrod

    Created a new release with this patch: https://www.drupal.org/project/antibot/releases/2.0.3 β†’

    Thanks a lot to everyone involved, and let me know if there are still issues with this.

    Moving this to "Fixed" for now.

  • πŸ‡³πŸ‡±Netherlands Ewout Goosmann

    Good to hear that the patch is working fine and that it's included in the latest release :)

  • πŸ‡³πŸ‡±Netherlands Dries Arnolds πŸ‡³πŸ‡± Amsterdam

    A couple of users have reported getting a "Submission failed. Please reload the page, ensure JavaScript is enabled and try again" error. I have confirmed that javascript is on for them. Is there any error in the key scrambling or other logic that was introduced in the patch?

    edit: I have now tested myself on one site and also get that message when filling out any form that is protected (login/webform). I have javascript on and tested incognito without any extensions.

    I tried both the patch and the updated module.

  • πŸ‡³πŸ‡±Netherlands Ewout Goosmann

    Can you ensure that your JavaScript cache has been cleared? If you inspect the source, you should be able to find the following line:

    input.value = config.key.split("").reverse().join("").match(/.{1,2}/g).map((value) => value.split("").reverse().join("")).join("");

    If you can't find that line, search for

    input.value = config.key;

    If you can find that one, it means that you are still using the old JavaScript.

  • πŸ‡³πŸ‡±Netherlands Dries Arnolds πŸ‡³πŸ‡± Amsterdam

    I did clear cache a couple of times. But i guess the update didn't go well. I should've suspected as much since this was the only site with a problem.

  • πŸ‡§πŸ‡ͺBelgium bramvandenbulcke

    The update is working well on our side. Thanks!

  • πŸ‡ͺπŸ‡ΈSpain trebormc Barcelona

    @Dries Arnolds
    Just trying to shed some light on your problem.
    Does that website you're having trouble with have js file compression enabled? If not, you're just clearing Drupal's caches, but not forcing the user's browser to download the latest version of the js file.

    Another option is that you have a CDN above Drupal, and it's the CDN caching the js file.

  • πŸ‡³πŸ‡±Netherlands Dries Arnolds πŸ‡³πŸ‡± Amsterdam

    @trebormc, I resolved it by running the update again. Thanks for your help.

  • πŸ‡¨πŸ‡ΏCzech Republic maxiorel Brno

    Works great, thanks.

  • πŸ‡©πŸ‡ͺGermany bekro Mannheim

    I also recognized that the core form-ids have changed from underscore to hyphen. This should be updated in the install config. Like from "user_pass" to "user-pass".

  • πŸ‡¬πŸ‡§United Kingdom 2dareis2do

    Thanks again for quick release

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • πŸ‡ͺπŸ‡ΈSpain oriol_e9g Barcelona

    What happens if bots implement the same shuffle reverse algorithm? It doesn't seem like the final solution.

  • πŸ‡³πŸ‡±Netherlands Dries Arnolds πŸ‡³πŸ‡± Amsterdam

    I do have some spam signups again, so it might already be going on. Not many, but they are the typical spam signups where the name and e-mail share no relation (Name field does not match e-mail field) and they are all US based addresses and the list is of a Dutch language magazine.

  • πŸ‡ΊπŸ‡ΈUnited States capellic Austin, Texas

    Just got word from a client that they got hundreds of spam messages over the last 24 hours. All from `45.144.227.*`, all from Taiwan.

  • πŸ‡©πŸ‡ͺGermany Duwid

    I also have spam submissions again.
    @gaurav.kapoor, @mstef, @danrod can you reopen this issue and set status to "Needs work", please?

  • Status changed to Needs work 23 days ago
  • πŸ‡¨πŸ‡¦Canada danrod

    Done @Duwid

    Do you have more more details about the spam that you are getting? I'll look into this tomorrow.

  • πŸ‡ΊπŸ‡ΈUnited States capellic Austin, Texas

    @danrod

    I don't have anything additional to add but am also not sure what information would be useful. The spam submissions have been preserved (Webform).

Production build 0.69.0 2024