Jetpack Sharing email can be abused for spam
-
A couple of days ago I noticed some spam in my SendGrid activity. I realized that someone / some bots had been using the Jetpack Sharing share via email option to send spam to addresses at qq.com. Not sure if there’s anything that can be done from the plugin, but I thought I should let you know that this feature can be abused. Thanks
-
Thank you all for the extra details. We’re still looking into this, and that information was helpful!
I’ll post again here when we have a solution.
Just to add in for numbers sake, I use SendGrid… simply because it was the easiest way to quickly get email working on GCE. My account was suspended yesterday for suspicious email.
I did the sleuthing first and tracked it down to the share by email feature. About a thousand emails to the same ######@qq.com.
I only use email for internal notifications to site staff so I shouldn’t ever generate more than 10 emails a day.
No real problems on my end, I just disabled that feature for now and the flood stopped. My SendGrid account was reactivated (those guys are quite responsive, that was nice!) I just wanted to add in here in case it helps or I can be of further assistance. I’m always happy to provide further deets!
- This reply was modified 7 years, 7 months ago by Rev. Voodoo.
As an employee of a hosting company, we are deeply concerned with this exploit.
Over the last month, we have encountered 100’s of accounts using this plugin which has been exploited to send tens of millions of spam emails.
Most remote IP’s are from China, send to [email protected]/[email protected].
We have been forced to manually disable the sharing module in Jetpack, as the spam coming from the plugin exploit threatens the reputation of the customers website, and our IP reputation.
The ReCaptcha should be enabled by default, as many WordPress users have had their site built for them and don’t have an interest, or experience to implement it themselves.
Please focus on securing this exploit and I would appreciate any feedback you may have regarding it.
This issue seems to have become active again. Spammers can use the JetPack send mail button to send to lots of [email protected] type email addresses.
Thanks for sending those through, I’ve reported this to our product team – we have an ongoing project to tighten up the sharing module.
I just got hit with this in the past couple days, as I noticed indirectly from email logs. The Chinese at 163data.com are the offenders, and using the share by email feature of latest Jetpack and WP turns your website into an open SPAM relay site.
Here is an example HTTP POST against a valid post on the site:
REQUEST = Array
(
[share] => email
[nb] => 1
[target_email] => [email protected]
[source_name] => ?<99>?é<99><86>?<8d>3é<80><81>28?<85><83>??<9a> https://www.2220743.com/? ?<82>¨??<80>??<83>?°±?¥??<80><82> ^M
?<80><99>é|<86>?¢<85>??<8b>??<8c>?oa??¥?<9f>3??<86>??<8c>è<8d><89>è<96>°é£<8e>?<9a><96>?<91><87>??<81>è?<94>?<80><82>
[source_email] => [email protected]
[source_f_name] =>
)Notice the source name has special characters and is very long.
To stop this temporarily and capture the SPAM, I added this to /wp-includes/pluggable.php in between the try{} block, which starts on line 480 on WP4.8:
if (isset($_REQUEST['target_email'])) { // sharedaddy email this = capture data and refuse $file = 'maillog.txt'; $handle = fopen($file, 'ab'); if ($handle) { fwrite($handle, 'REQUEST = ' .print_r($_REQUEST, true) . PHP_EOL); fwrite($handle, 'Mail details = ' . print_r($phpmailer, true) . PHP_EOL); //fwrite($handle, 'SERVER = ' . print_r($_SERVER, true) . PHP_EOL); fwrite($handle, '==============' . PHP_EOL); fclose($handle); } return false; } else { // not sharedaddy so process this return $phpmailer->send(); }
I would recommend limiting the sharer’s name to 24 chars or less and do more filtering on the text itself. Something like a dynamic javascript hash could be implemented that can be verified on the server. Personally I dislike captcha’s and will disable this Jetpack feature and find something else to offer email sharing.
Thanks for sending that through @sabalaskey – I’ve included your report in the issue on GitHub, you can track the progress here:
This is still an issue! My website did exactly the same and sent emails to qq.com
I got blocked out of my own website.
i deleted jetpack and installed a re-captcha plug in. No idea what to do next – re-install jet pack? I do not ‘code’ at all so I couldnt follow the simple re-captcha instructions for the email button
For me this was an absolute nightmare!@ugly96 Could you contact us via this contact form and mention this thread? One of our support team can help you get recaptcha added for you from there
I have the same problem:
The mail system
<[email protected]>: host mx3.qq.com[203.205.160.46] said: 550 Mailbox not
found.
https://service.mail.qq.com/cgi-bin/help?subtype=1&&id=20022&&no=1000728 (in
reply to RCPT TO command)
Reporting-MTA: dns; antares.bekawe-hosting.de
X-Postfix-Queue-ID: C0A07C4A54F
X-Postfix-Sender: rfc822; [email protected]
Arrival-Date: Sat, 1 Jul 2017 11:12:27 +0200 (CEST)Final-Recipient: rfc822; [email protected]
Action: failed
Status: 5.0.0
Remote-MTA: dns; mx3.qq.com
Diagnostic-Code: smtp; 550 Mailbox not found.
https://service.mail.qq.com/cgi-bin/help?subtype=1&&id=20022&&no=1000728Von: 佰加乐连七胜鎹卡宴,侟一佰鎹五拾不限板块,2%时时反水,地址:https://y0.cn/22d <[email protected]>
Betreff: [Geteilter Beitrag] 29. Unternehmerstammtisch Leipziger Westen bei DATA-team GmbH
Datum: 1. Juli 2017 11:12:27 MESZ
An: [email protected]
Antwort an: 佰加乐连七胜鎹卡宴,侟一佰鎹五拾不限板块,2%时时反水,地址:https://y0.cn/22d <[email protected]>佰加乐连七胜鎹卡宴,侟一佰鎹五拾不限板块,2%时时反水,地址:https://y0.cn/22d ([email protected]) glaubt, der folgende Beitrag k?nnte dich interessieren:
29. Unternehmerstammtisch Leipziger Westen bei DATA-team GmbH
https://freie-wirtschaftsfoerderung.com/29-unternehmerstammtisch-leipziger-westen-bei-data-team-gmbh-2/Can anybody tell, if the server is hacked or what we should do to stop it from Spamming?
The spammers are somehow accessing the JetPack share by email utility to send out massive amounts of spam through the site. JetPack has thus far been unresponsive in a patch to fix it. So in order to stop it I looked into WordPress for each of my client’s sites and went to JetPack settings and under sharing I removed the option to share via email and it stopped the spam.
Thanks, Steven. So there is no infection of the server, from what you think?
I have found none on my end. I have a 1&1 cloud server with just about every firewall aspect setup and almost every port turned off. Its just some open flaw in JetPack with the share via email component. They haven’t addressed it in any new versions of JetPack and the absolute second I turned off share by email all of it stopped. I leave sharing on for social media and even the print icon, I just removed the email share by icon and that solved everything.
Hello, I’ve tried to put google captcha but it doesn’t works for the suscriber form.
It’s OK for all the other forms on the blog.
Which problem do you think it could be?
Thank you for your help !@valer1e, Google captcha does not work for that. The Jetpack feature presumes that you have Akismet installed for security since it passes the input through that testing in the expectation that Akismet will deny the spam. If you really want share by email in Jetpack, then Akismet is mandatory. Even then some spam could get through.
As @stevenmayjr says, the only way to reliably stop the spam relay is to *disable* the share by email feature of Jetpack. My solution is that I am writing my own code for that feature.
@mschefers, the abuse does not infect your server per se, but what happens is that your server IP address and any email system(s) that it uses will be passing spam, and ultimately be marked as a spam site by systems which monitor email activity. Not good for you or your hosting company, who doesn’t want their IP addresses on spam list services (e.g. Spamhaus).
- The topic ‘Jetpack Sharing email can be abused for spam’ is closed to new replies.