Getting bombarded with spam emails via Joomla

Discussion regarding Joomla! 3.x security issues.

Moderators: Bernard T, mandville, fcoulter, PhilD, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant / FPA - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
jross
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 112
Joined: Sun Apr 09, 2006 6:42 am
Location: Normandy, France

Getting bombarded with spam emails via Joomla

Post by jross » Fri Mar 16, 2018 11:16 pm

Hello, my client is receiving hundreds of spam emails with the subject, Undelivered Mail Returned to Sender

The message itself is

Subject:
Copy of: ПОПОЛНЕНИЕ ВАШЕГО ЛИЧНОГО СЧЕТА #2672896
From:
"Aussie Princess" <lindsay@aussieprincess.com.au>
Date:
3/16/2018 2:45 AM
To:
<blade19731973@mail.ru>

This is a copy of the following message you sent to Aussie Princess via Aussie Princess Luxury Boat Charters

This is an enquiry email via http://aussieprincess.com.au/ from:
Леночка Козлова <blade19731973@mail.ru>

hxxps://api[.]monosnap[.]com/rpc/file/download?id=HQc7moTAL23OboieIfi5VcNLPWVGCA

Is this happening as a result of the site (Joomla 3.8.6) being hacked? What can I do to stop this torrent of emails?
Any advice would be appreciated.
Thanks, JR
Last edited by fcoulter on Fri Sep 28, 2018 10:15 am, edited 1 time in total.
Reason: edited link to prevent automatic link creation

User avatar
creativesights
Joomla! Guru
Joomla! Guru
Posts: 636
Joined: Tue Jan 13, 2009 11:50 pm
Location: San Diego, California, USA
Contact:

Re: Getting bombarded with spam emails via Joomla

Post by creativesights » Sat Mar 17, 2018 12:04 am

You could turn off email sending in the global configuration. It's aggressive, but you're website won't be able to send any email. Additionally it will help confirm whether or not the email is actually coming from the site.

We use Admin Tools Pro on a lot of sites, if you can identify the IP that's on the site, you can block it. Your hosting company can often be a good resource with blocking traffic like that also.
Andrew Crossan
CreativeSights
Professional Custom Website Design & Development in San Diego
https://www.creativesights.com

User avatar
sozzled
Joomla! Exemplar
Joomla! Exemplar
Posts: 8022
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Getting bombarded with spam emails via Joomla

Post by sozzled » Sat Mar 17, 2018 12:04 am

There are many topics on this forum that discuss spam and spam emails. I suggest that you use the Joomla forum search search.php

This question is not unique to any specific version of Joomla.
https://www.kuneze.com/blog
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

User avatar
fcoulter
Joomla! Ace
Joomla! Ace
Posts: 1685
Joined: Thu Sep 13, 2007 11:39 am
Location: UK
Contact:

Re: Getting bombarded with spam emails via Joomla

Post by fcoulter » Sat Mar 17, 2018 12:18 pm

To be clear about this, it does not mean that your site has been hacked.

It looks as if the spammer is trying to abuse the function that allows the user to send a copy to themselves of a message sent through the contact form.

You can actually turn off the display of the checkbox on the contact form that allows this in the contacts component options. I am not sure though if that stops the email itself from being sent, I guess you would have to try it to see.

Otherwise you can try enabling re-captcha on the contact form, that is usually quite effective. You just need to enable the recaptcha plugin, get some keys (see https://www.google.com/recaptcha/intro/android.html), and set this as the default captcha for your site.
http://www.spiralscripts.co.uk for Joomla! extensions
http://www.fionacoulter.com/blog my personal website
Security Forum moderator :: VEL team member
"Wearing my tin foil hat with pride"

giovannino
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Jun 19, 2010 7:14 am

Re: Getting bombarded with spam emails via Joomla

Post by giovannino » Mon Mar 19, 2018 6:32 pm

Hello, I got same issue with 3.7.3 standard contacts plugin. The message that automatically arrive to my admin mail is "Delivery Status Notification (Failure)"... with some specific strange email in cirillic or chinese from xxxxxxxx.ru
Did you fix it or not ?
Is it only sent to administator ? It's the only user as far now.
Thanks

User avatar
mandville
Joomla! Master
Joomla! Master
Posts: 14818
Joined: Mon Mar 20, 2006 1:56 am
Location: The Girly Side of Joomla in Sussex

Re: Getting bombarded with spam emails via Joomla

Post by mandville » Mon Mar 19, 2018 7:38 pm

giovannino wrote:Hello, I got same issue with 3.7.3
then you are using an out of date vulnerable version of joomla.
Did you fix it or not ?
there is nothing for the developers of joomla to fix, the fix is with the adminsitrators of the website that uses joomla .
Is it only sent to administator ? It's the only user as far now.Thanks
well i think you will find its actually sent to the email address listed for the the administrator or the reply to address for the website.

see the answers and suggestions above for how to get you to sort your site out.
HU2HY- Poor questions = Poor answer
Un requested Help PM's will be reported, added to the foe list and possibly just deleted
{VEL Team Leader}{TM Auditor }{ Showcase & Security forums Moderator}

markcrobinson
Joomla! Intern
Joomla! Intern
Posts: 62
Joined: Mon Dec 25, 2006 3:23 am

Re: Getting bombarded with spam emails via Joomla

Post by markcrobinson » Tue Mar 05, 2019 9:50 pm

I was getting the same email spam. I contacted my host who gave the reply below. Thought it might be helpful to share:
Note that one of the sites does not have a contact form, but is still, apparently, vulnerable.

------------------------
Hello,

Thank you for all the information and for including the bounceback. According to the bounceback this email originated from your Joomla installation (/home/xxxxxxxxxxxxx/public_html/index.php).

This specific email is very familiar, as it states the following:

"This is an enquiry email via http:// xxxxxxxxx .com/ from:"

This is typically due to the contact form on your Joomla site being abused. I do see that your contact form uses a form of a captcha. The spammer could potentially be getting through this captcha, or there could be another form (even if it's hidden from the website) that the spammer is taking advantage of. Joomla has built in functionality of 'Send a copy to form submission address' that will email a copy of the email to the person submitting the form.

I don't see the checkbox for this on the site like it usually is, but I'm guessing the spammer is sending the POST request with the send copy attribute included in the POST data. It looks like there is a work around by renaming the component (components/com_mailto/) to something different (like components/com_mailto_DISABLED/).. but this could break some email functionality for the website potentially.

I'd recommend that you contact Joomla for their best recommendation.

stereosurround
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Mar 29, 2019 6:52 pm

Re: Getting bombarded with spam emails via Joomla

Post by stereosurround » Fri Mar 29, 2019 7:11 pm

Technically the error is not within Joomla, checking com_contact/controllers/contact.php revealed no flaws. However the ability to directly access a component apart from the menu structure carries serious caveats.

Any publicly available contact can be called directly using:

Code: Select all

/index.php?option=com_contact&view=contact&id=123
The main issue here is paying close attention to the configuration of the contacts component. If neither within global configuration, nor within the contact settings the mail form has been disabled, it will be displayed.

Say you'd want to make a single contact publicly available by adding a menu item using "Single Contact", it is not enough to hide the contact form within that menu item's settings - using the above link in combination to that contact's id will show the contact form.

A short hint to this circumstance within the description of the menu item's configuration would be appreciatable.

Recommendation: If your site does not require sending mails, disable it within global configuration and ideally within php.ini by adding disable_functions = mail. If your server allows further unrequired functions by default (e.g. exec), consider to disable these as well.

User avatar
Slackervaara
Joomla! Ace
Joomla! Ace
Posts: 1004
Joined: Sat Aug 13, 2011 6:27 am

Re: Getting bombarded with spam emails via Joomla

Post by Slackervaara » Sun Mar 31, 2019 5:11 pm

Joomlas master htaccess has a spam filter for words it works only from mails sent from the site, but you have to change to a unique word in your spam mails:


########## Begin - Basic antispam Filter, by SigSiu.net
## I removed some common words, tweak to your liking
## This code uses PCRE and works only with Apache 2.x.
## This code will NOT work with Apache 1.x servers.
RewriteCond %{QUERY_STRING} \b(ambien|blue\spill|cialis|cocaine|ejaculation|erectile)\b [NC,OR]
RewriteCond %{QUERY_STRING} \b(erections|hoodia|huronriveracres|impotence|levitra|libido)\b [NC,OR]
RewriteCond %{QUERY_STRING} \b(lipitor|phentermin|pro[sz]ac|sandyauer|tramadol|troyhamby)\b [NC,OR]
## Note: The final RewriteCond must NOT use the [OR] flag.
RewriteCond %{QUERY_STRING} \b(ultram|unicauca|valium|viagra|vicodin|xanax|ypxaieo)\b [NC]
RewriteRule .* - [F]
## Note: The previous lines are a "compressed" version
## of the filters. You can add your own filters as:
## RewriteCond %{QUERY_STRING} \bbadword\b [NC,OR]
## where "badword" is the word you want to exclude
########## End - Basic antispam Filter, by SigSiu.net

https://github.com/nikosdion/master-hta ... access.txt

markcrobinson
Joomla! Intern
Joomla! Intern
Posts: 62
Joined: Mon Dec 25, 2006 3:23 am

Re: Getting bombarded with spam emails via Joomla

Post by markcrobinson » Mon Apr 01, 2019 12:25 pm

stereosurround wrote:
Fri Mar 29, 2019 7:11 pm
Recommendation: If your site does not require sending mails, disable it within global configuration and ideally within php.ini by adding disable_functions = mail. If your server allows further unrequired functions by default (e.g. exec), consider to disable these as well.
... and if it does require sending emails?

evilded777
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Wed Mar 16, 2016 12:49 pm

Re: Getting bombarded with spam emails via Joomla

Post by evilded777 » Thu Apr 04, 2019 1:57 pm

Gotta say, some of the defenses here of "Joomla" are a little overboard. If you don't have something helpful to contribute... why?

This is clearly a problem. I have experienced it for a while on two different sites, and I am just trying to find a way to stop it.

I have switched forms, I have secured my mail requiring authentication, I have added captcha, I have removed the contact form from the one contact available.

Nothing has stopped it. We need some help, not people saying its our fault.

User avatar
Slackervaara
Joomla! Ace
Joomla! Ace
Posts: 1004
Joined: Sat Aug 13, 2011 6:27 am

Re: Getting bombarded with spam emails via Joomla

Post by Slackervaara » Thu Apr 04, 2019 2:17 pm

Against spam this plugin is better than Captcha. It is a mathematical problem:
https://extensions.joomla.org/extension ... heck-plus/

User avatar
paulala
Joomla! Explorer
Joomla! Explorer
Posts: 301
Joined: Sat Oct 30, 2010 12:32 pm
Location: Scotland
Contact:

Re: Getting bombarded with spam emails via Joomla

Post by paulala » Sun Apr 28, 2019 6:48 pm

@evilded Do you still have this problem. Could you share details if so?
Warm Regards,
Paula Livingstone, Skydiving Instructor and Network Security Consultant
https://paulalivingstone.com
http://rustyice.co.uk


Post Reply

Return to “Security in Joomla! 3.x”