Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spammers submitted hundreds of forms recently #221

Open
bobbingwide opened this issue Oct 24, 2023 · 3 comments
Open

Spammers submitted hundreds of forms recently #221

bobbingwide opened this issue Oct 24, 2023 · 3 comments
Assignees

Comments

@bobbingwide
Copy link
Owner

Just recently I started receiving a spate of spam submissions.

The general format of the submission was:

contact name: contained an URL
email: was a gmail address
subject: contained an URL
message: was blank

Also:

  • The honeypot field was left blank, as expected
  • the nonce was correct.
  • the IP addresses changed between submissions
  • In my email client quite a lot of the emails were marked as Junk, but others remained in the Inbox

Workaround

I removed the contact form from the page.

@bobbingwide
Copy link
Owner Author

Proposed solution

  • Don't accept contact name containing an URL
  • Don't accept subject containing an URL

@bobbingwide
Copy link
Owner Author

While testing in PHP 8.2 I got these deprecated messages

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in C:\apache\htdocs\wordpress\wp-content\plugins\oik\includes\oik-contact-form-email.php on line 21

@bobbingwide
Copy link
Owner Author

Don't accept subject containing an URL

The improvement to bw_basic_spam_check() doesn't perform the check against the subject. This needs to be passed in the $fields array. Note: The Akismet check doesn't use this field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant