Description
Using Magento 2.1.2 running on linux with php 5.6.1.
Spammers have been posting to /customer/account/create and similar form pages to send out spam. Our server had thousands of spam messages submitted using this in the past couple of days. The site is pretty much stock running the stock template.
We've done packet captures to the server and the attackers are simply using the last name field for the spam message, and the email address as the recipient.
My proposed fix is to limit the input length for firstname and lastname fields to 15 characters, and disallow any characters except the standard ascii alphabet, lower and uppercase, and the apostrophe. The firstname and lastname fields should not allow a paragraph of text that also contains URLs.
Since in this case it appears that the attackers were using a bot, so the form validation should be done after the post and not in javascript on the page so that form validation can simply be ignored by disabling or ignoring javascript.
Here is a pastebin from one of the packet captures: http://pastebin.com/0WKvF21L
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done
Activity