Skip to content

fix: rename the form honeypots so browser autofill leaves them empty - #78

Merged
Adel2411 merged 1 commit into
devfrom
fix/registration-honeypot-autofill
Nov 6, 2026
Merged

Adel2411 merged 1 commit into
devfrom
fix/registration-honeypot-autofill

Conversation

@0xHouss

@0xHouss 0xHouss commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Stops browser autofill from filling the forms' hidden honeypot, which made the server drop real registrations as bots while showing them a success.

The cause: the registration honeypot was named company. Chrome reads a field's name, id and label to decide what to autofill, recognizes "company" as part of an address, and fills it from the visitor's saved address even with autocomplete="off". The server then returns its fake success and saves nothing. A real applicant's network log showed the decoy filled with their employer.

  • Registration form: REGISTRATION_HONEYPOT_FIELD is now mc_trap, a name no autofill field matches. Bots still fill it, since they fill every input.
  • Contact form: same rename for HONEYPOT_FIELD (was website), and its hidden label now reads "Leave this empty" instead of "Website": autofill and password managers read labels too.
  • Tests: both schema tests check the honeypot names against the words autofill recognizes, so a rename back to one fails CI.

Not testable automatically (automation cannot open Chrome's autofill menu). Manual check: with a saved Chrome address that has a company, autofill the registration form from a suggestion and check the submission is saved. The mc_trap field stays empty in the request.

The cleanup of the uploads these drops left behind is in #79.

Closes #72

@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
mc-website Ready Ready Preview Nov 6, 2026 12:38am UTC

@0xHouss
0xHouss requested a review from Adel2411 November 6, 2026 00:45
@Adel2411
Adel2411 merged commit 80e478a into dev Nov 6, 2026
3 checks passed
@Adel2411
Adel2411 deleted the fix/registration-honeypot-autofill branch November 6, 2026 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants