Yes, many people are experiencing this. Can we stop with the 'me, too' posts?
Please only add a comment if you have something informative to add or have a useful comment / question / idea, thank you.
Use the follow link to the right to track new posts to this thread and to indicate the number of users that this is affecting.
=====================================================
Problem/Motivation
There appears to be an increase in malicious requests performing automated password reset on accounts. These automated requests seem to be requesting password reset for commonly used usernames like admin, moderator, etc.
This has been targeting multiple Drupal 6 and 7 sites.
A list of common administrative user names that this is known to tried:
- admin
- administrator
- _SITENAME_
- _SITENAME_._ZONE_
- _SITENAME__ZONE_
- login
- user
- test
- root
- temp
- support
- moderator
- demo
- admins
Currently there is no known vulnerability nor exploit related to this.
However, this behaviour is unusual and it would pay to monitor the security threads over the upcoming weeks in case there is a 0-day exploit that is yet to be discovered.
It is likely that this is part of a two phase automated bot probe.
- The first attempt is to triggers an email and the results for this can be used to detect valid and active Drupal usernames.
- A second deferred attempt to guess a valid password for the corresponding valid account names.
Flood control on step two will minimise any risk to just a small handful of unsuccessful login attempts.
(All admin accounts have strong passwords right! Sadly we find about 1 in 50 sites have something stupid like user / user or similar set up.)
Proposed resolution
Drupal core
None.
Triggering a password reset email is not a security risk, directly.
The security team does not consider disclosure of usernames and IDs as a weakness: https://drupal.org/node/1004778
Site owners / administrators
Site owners should check all accounts with elevated rights and confirm that the associated email address are correct. This automated attack maybe trying to take advantage of a previously compromised account having its email changed.
In general it is best practice to audit admin level accounts on a regular basis.
- Navigate to the list of people on the site
- Filter the list for those who have additional roles
- Sort the list by last login date. If an account has not logged in recently, security could be improved by revoking the role from that account.
- Review the email address associated with all accounts with elevated roles to confirm it is the right email address.
- Review the usernames, if any are commonly used consider changing them to something unique to the user (e.g. their name) or unique to the site (e.g. admin.example.com).
If you see anything in the list of accounts that makes you think your site has been compromised, consider going through this more exhaustive set of steps to mitigate those issues.
For more information please follow the groups.drupal.org post at https://groups.drupal.org/node/518228.
Additional Security Hardening
As well as ensure the site admin accounts are up to date and have hard to guess usernames, additional steps to prevent or minimize this risk include:
- Put captcha & honeypot on all forms for non-logged in users.
- Limit name guessing attempts with flood control
- Enforce password security rules with Password Policy
- Avoid showing user account login names using Real name or Name field modules
- Using different admin paths using Rename Admin Paths to use something other than user.
Original report by adpo
Hi
Please note, that I have couple Drupal websites (6 & 7), and for all of them, the admin password instructions were sent this morning.
Someone from Russia (IP: 77.222.114.241) did it.
=====================================================
Yes, many people are experiencing this. Can we stop with the 'me, too' posts?
Please only add a comment if you have something informative to add or have a useful comment / question / idea, thank you.
Use the follow link to the right to track new posts to this thread and to indicate the number of users that this is affecting.
Comments
Comment #2
smazWe've experienced the same for ~8 sites, again from the same IP address. They seemed to be ~30 mins apart from each one.
Comment #3
david.a.king commentedalso had this on many d7 sites this morning
Comment #4
kevin_91 commentedI can confirm I have received 3 emails requesting a new password. Should I worry about the security of my websites? :O
Comment #5
gillesv commentedCan confirm. Received the password reset link for 5 Drupal 7 sites so far. The scary part: after clicking the first 2 links, I got the message "You have tried to use a one-time login link that has either been used or is no longer valid." The passwords were not changed, but someone with access to the link would still be able to log in as admin (once).
I'm guessing they found a way to intercept the reset link...
Comment #6
gillesv commentedComment #7
kevin_91 commentedJust to add these websites Drupal core and modules are all up to date. It doesn't seem like the passwords were changed at all...
Comment #8
johan den hollander commentedSame happend to some of my sites as well.
No logins so far.
Comment #9
gillesv commentedSome extra info: Even though the first two reset links I received were said to be used (or invalid), the logs do not show anyone using them for a one-time login. I guess this doesn't rule out the fact that the attacker might be able to hide his tracks, or the links were invalidated by another action I took.
Comment #10
leo pitt commentedDitto - have received password reset emails triggered by the IP address 77.222.114.241 for 4 sites this morning. Between the hours of 0400 and 0800 GMT.
Comment #11
jmaties commentedSame happend all my sites in different servers
Comment #12
pieterdcNoticed this on a couple sites as well.
Comment #13
estoyausenteSame here, only 1 D7.
Comment #14
apolitsin commentedSame, lots of, different servers
Comment #15
andy_read commentedI've also seen 4 sites request admin password reset during the morning. All from same IP 77.222.114.241. D6 & 7 sites.
Comment #16
lluisandreu commentedSame here for all my d7 sites, no password changed though
Comment #17
firfin commentedSo what's happening and why? They are sniffing around some mailservers hoping some unsecured mail with an OTL link will pass by?
Or what is the potential harm here?
Comment #18
apolitsin commentedIP: 77.222.114.241 doesn't try to login. Reset password for users:
admin
administrator
_SITENAME_
_SITENAME_._ZONE_
_SITENAME__ZONE_
login
user
test
root
temp
support
moderator
demo
admins
Comment #19
polmaresma commentedSame here.
Comment #20
james.williamsPerhaps the attackers are hoping some sites expose the email address in the message shown after submitting the form, so it can just be harvested for spam? Just speculation really, as I found that IP associated with some spam services. I would guess that this is only happening for users named 'admin' - or has it happened for anyone with a different username yet? (My colleagues have seen password reset requests for several sites, on a range of versions of Drupal, but not on any sites without an 'admin' username.)
Comment #21
james.williamsAh I cross-posted with @APolitsin . That makes sense, a specific list of usernames are being checked.
Comment #22
gbr commentedHi i have the same, about 15 website pw request, on different hostingservers.
Same IP adress.
Most with username admin, but one website, a admin account , but with another name then 'admin'...
Comment #23
farald commentedFor the guess-quiz, what could this attacker possibly try to achieve, except for annoyance? They will for sure know that the account exists though, that is one thing.
Comment #24
triggerbox commentedI have the same issue, maybe about 10 sites across several servers.
Comment #25
dinandmentink commentedHere as well. Could it be that this person/group is trying to build a list of websites for which some this set of usernames work?
Usefull information if ever a security flaw is discovered for which a website and admin account is required.
I'm considering renaming all my admin users to random strings on my websites.
Comment #26
james.williamsYes, that's already a recommended practice: https://www.drupal.org/node/947312 This issue is probably just a good reminder! There's other things in there that are well worth doing too.
Comment #27
giupenni commentedSame here for 2 sites
Comment #28
aperez2242 commentedSame issue here. 3 password reset requests for admin user so far. All Drupal 7. Time to go and change one by one all the admin users on all the websites.
Comment #29
trevorleenc commentedI too have found this on numerous sites (>10) this morning which are hosted across various platforms and multiple drupal versions.
I use FAIL2BAN on all my servers, and I need to figure out why the apache-postflood filter is not working on these. Here's an example of an apache log entry:
77.222.114.241 - - [26/Jan/2018:05:41:15 -0500] "POST /user/password HTTP/1.1" 200 16932 "-" "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Firefox/17.0"
77.222.114.241 - - [26/Jan/2018:05:41:20 -0500] "POST /user/password HTTP/1.1" 200 16952 "-" "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Firefox/17.0"
Comment #30
gmrmedia commentedI can confirm same issue.
Comment #31
aburrows commentedWould installing username_enumeration_prevention resolve this? Had this issue on Worldpay site years ago, similar issue.
Thankfully not experienced this yet. If I do will post it here.
Comment #32
phanosd commentedCan confirm - exactly the same here with us 5 sites and counting. Is there an exploit coming up?
Comment #33
kruser commentedSame here - about 30 sites so far. Perhaps just spam. It's fairly harmless to submit the password reset form, but they may have guessed your 'admin' username, so probably best to change it.
Comment #34
firfin commentedComment #35
apolitsin commentedUser goes to second cicle and starts from letter A
Comment #36
dblais commentedSame here for >15 websites. We received emails with delays of 1 to 60 minutes. All on several servers. Apache log show:
77.222.114.241 - - [26/Jan/2018:12:18:43 +0000] "GET /user HTTP/1.1" 200 16422 "-" "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Firefox/17.0"
77.222.114.241 - - [26/Jan/2018:12:18:45 +0000] "GET /user/password HTTP/1.1" 200 16089 "-" "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Firefox/17.0"
77.222.114.241 - - [26/Jan/2018:12:18:47 +0000] "POST /user/password HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Firefox/17.0"
77.222.114.241 - - [26/Jan/2018:12:18:49 +0000] "GET /user/password HTTP/1.1" 200 16089 "-" "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Firefox/17.0"
77.222.114.241 - - [26/Jan/2018:12:18:52 +0000] "POST /user/password HTTP/1.1" 200 16321 "-" "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Firefox/17.0"
.... +-25times
Comment #37
mieg commentedAfter two runs of password resets like in #18 i now see login attempts from another ip address (46.161.9.3, also from Russia) with username 'admin'... it looks like the first run is to find account names (maybe timing?).
Comment #38
schnitzel commentedComment #39
Maik Gramatte commentedI have checked at one Website having no admin as user anymore. But also very common usernames like 'moderator' where affected.
Comment #40
mieg commentedI keep getting the password reset mails, now also for a lot of other sites. I know it's not a real solution but this stops it for now from this ip:
# route add 77.222.114.241 gw 127.0.0.1 lo
Comment #41
dasrecht commented@mieg can confirm the login attempts from 46.161.9.3
I sent an abuse message to the NOCs of both IP holders.
Comment #42
ezra commentedI'm curious as to #5, his comment is the only one that indicated that this has been exploited. I'd like to know what email provider he's using and if any of the access logs indicate that the site has been exploited. I can see this being a brute force attack that attempts to match compromised email servers with Drupal sites across the internet, or possibly (hopefully not) a zero day exploit of some kind that does not require a email server exploit. Hopefully it's neither, and just another probe attempt that goes no where, but I'd like to know for sure.
Comment #43
gregglesThanks to everyone for sharing your experience and thoughts on this issue. The details about the bot hitting a specific list of users is helpful to understand the nature of the probe.
I'm trying to think of a way that an attacker could gain information from this avenue that they wouldn't from other avenues. The only thing I can think of is username enumeration (which can always be done other ways).
I specifically tried to think of a way that an attacker could gain access to the login urls and I can't think of any (except for ways where the site is already massively compromised, e.g. if the attacker can somehow read the emails being sent from the site).
Comment #44
gillesv commented@ezra, I have not found any proof of data alteration or actual login via the password-reset link. The only thing I witnessed was the fact that some of the reset-links lead me to a page showing the message "You have tried to use a one-time login link that has either been used or is no longer valid.", while I'm sure I haven't actually used the links before, and while the links are less than 24hrs old. The logs don't show the actual use of the link to successfully log in.
I don't know all the ways that the reset-links get invalidated (except for using them to log in, or waiting 24hrs), so perhaps the reason that the links are invalid are something innocent (e.g. changing the username or logging in manually?).
We use Outlook as a mail server.
For now we changed the admin usernames to something less predictable and we blocked the mentioned IP (ranges).
Comment #45
cashwilliams commentedI don't think #5 is indication of being compromised.
With one time login links, only the latest one generated is valid. So if clicking on this in order of emails received, the oldest ones would all be invalid.
Comment #46
jon pollard commentedWe've had some of these where the username is the same as the domain name.
Comment #47
gregglesYes, I believe that manually logging in resets one of the elements of the login link making all prior login links invalid.
Comment #48
millenniumtreeI'm running tail -f on the log files, watching for new requests. We use nginx.
tail -f /var/log/nginx/access.log | egrep 'POST /user/password'
Of course there will be legit requests mixed in, but if one suspicious IP appears, I can ban it on our 7 other servers. Happy Friday!
So far I have these 2 ranges banned:
77.222.96.0/19
46.161.9.0/24 (from comment #37 above)
Comment #49
finex commentedEven from this IP: 77.222.114.241
Comment #50
Dmitry_Kirillov commentedI have an extra 'Login attempt failed for admin' watchdog message on all affected websites. Date of event: Jan 24th, 2018 (2 days ago). IP address is also the same, 80.122.98.69.
Comment #51
plazik commentedI got 'Login attempt failed for admin' errors from IPs:
109.228.182.92
91.92.10.158
27.147.151.162
Comment #52
cashwilliams commentedI think #1681832: Password reset form has no flood protection would have slowed this down greatly, if anyone has time to go help with it.
Comment #53
e5sego commentedI got the same from 77.222.114.241, and sent abuse report to the network operator at abuse@is74.ru
I can encourage anybody to do the same and block the address using iptables:
Comment #54
mlhess commentedThere appears to be an increase in malicious requests performing automated password reset on accounts. These automated requests seem to be requesting password reset for commonly used usernames like admin, moderator, etc.
Triggering a password reset email is not a security risk, directly. Site owners should check all accounts with elevated rights and confirm that the associated email address are correct. This automated attack maybe trying to take advantage of a previously compromised account having its email changed.
In general it is best practice to audit admin level accounts on a regular basis.
If you see anything in the list of accounts that makes you think your site has been compromised, consider going through this more exhaustive set of steps to mitigate those issues.
For more information please follow the groups.drupal.org post at https://groups.drupal.org/node/518228 . I am closing this issue as there is no direct action in core to take.
Comment #55
gregglesComment #56
gravisrs commentedPut captcha & honeypot on all forms for non-logged in users.
Limit name guessing attempts with flood control.
That should help.
Comment #57
terryallan commentedI have at least one site one from which an email request to reset admin password has been sent (Looks like: 77.222.114.241) at 04.31 UK time 26th January 2018.
Comment #58
alan d. commentedI assessed this for a concerned client today too.
They had 42 attempts, with 5 successful emails sent.
A HTTP status 200 would indicate an unsuccessful form submission in your logs, status 302 indicates a reset form was successfully submitted
[26/Jan/2018:17:50:10 +1000] "POST /user/password HTTP/1.0" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Firefox/17.0"
[26/Jan/2018:17:50:16 +1000] "POST /user/password HTTP/1.0" 200 13767 "-" "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Firefox/17.0"
About 12 hours latter, the successful form submissions from the above probe had 2 unsuccessful login attempts each.
[27/Jan/2018:08:11:10 +1000] "GET /user HTTP/1.0" 200 13788 "-" "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Firefox/17.0"
[27/Jan/2018:08:11:14 +1000] "POST /user HTTP/1.0" 200 14105 "-" "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Firefox/17.0"
There was no evidence they got in. This assessment was based from assessing;
From this I would conclude that the first hit was to discover valid usernames for the domain, and these were latter used to attempt a login.
Comment #59
alan d. commentedFixing Original report by title, sorry for the extra noise :)
Comment #60
apolitsin commentedI set the trap on two sites and see that:
AGENT Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Firefox/17.0
Site 1
Site 2
** Some different, AGENT Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 UBrowser/7.0.125.1629 Safari/537.36
UPD Site 1:
now its botnet bruteforce
Comment #61
tfranz commentedRenaming the user-path is a good option to protect your website against registration spam: Rename Admin Path
Comment #62
mmjvb commentedSuggest to check this user: https://www.drupal.org/forum/support/post-installation/2018-01-16/okay-t...
Comment #63
nvakenWe've also received a multitude of requests on D7 setups of clients on the 26th of January. Today it seems to repeat itself, we are receiving the same requests again.
Comment #64
sheldonkemper commentedChanging the login path could work.
Comment #65
yelvington commentedThis isn't limited to admin accounts. They're hitting any username that's visible on the site. Makes me wonder if it would be worthwhile to separate account names from visible names.
I put a PHP block on my login and password reset pages testing for the Russian IP addresses used by recent offenders, and redirecting them to https://www.fbi.gov/investigate/cyber. I know it won't actually help. Maybe I should send them to goatse instead.
Comment #66
tyler-durden commentedPer another thread I read someone brought up the module "Username Enumeration Prevention".
Depending on what type of site you run, this module may be of help because it reroutes the form to the homepage if a valid username does not validate.
Per the modules page:
Using this module and changing the admin username should hopefully add a layer of protection to my sites. Sorry I do not remember the place I found this now, as it was on another computer I don't have access to right now.
Comment #67
hockey2112 commented(sigh) receiving these emails again today...
Comment #68
alan d. commentedAdding note reg. Rename Admin Paths to the summary.
Comment #69
apolitsin commentedAgain IP 77.222.116.170. New name-mask:
Comment #70
e5sego commentedSince this russion network provider chelcom.ru does not take care of abuse reports, I like to blocked their full network range on my servers. Think it's done by adding this rule:
Comment #71
nvakenWe're seeing these again too on multiple of our customer's websites, just as in end January.
Probably not related, but the timing this time is somewhat convenient with SA-CORE-2018-002 and in the FAQ there are also people addressing password reset requests incidents and are cross referencing this issue. Just mentioning this here for completeness sake.
Comment #72
sheldonkemper commentedPlease see the link to another post. If your site has experienced the reset password issue, its very likely it is one of the first attack vectors. There is more to come,if it hasn't already done so.
https://www.drupal.org/forum/support/post-installation/2018-04-18/deleti...
Comment #73
alan d. commentedThis is a typical every day probe that by itself has zero risk as far as anyone knows.
The two recent security releases are effectively allows hackers to point custom request at the site and execute PHP to take full control over the site. This had a 24/25 rating that really is about as bad as it gets. Discovery of a user name doesn't even count as a security issue.
Comment #74
mmjvb commentedHopefully prevents tampering with Status.
Comment #75
SusanMcKenna commentedDrupal 7.59
This is not just a 'me too' post. I am concerned because I am the administrator of my site, with a very unusual login ID. I received a "Replacement login information for..." email message this morning, the from address was my email address, and the email starts out by addressing me by my unusual admin login ID. How would someone get my ID? I am the only admin for the site.
I'm very concerned, and think this is a security issue that needs attention.
Sincerely,
Comment #76
SusanMcKenna commentedIn re #75. I found that my Login Id is exposed by public calendar events "Submitted by xxxxxxx on Fri, 04/06/2018 - 20:41" Definitely going to change that.
Comment #77
tfranz commented@SusanMcKenna: There are several simple technics to guess the user names.
For example you can get a list for users starting with "a" by visiting:
http://YOURDOMAIN.tld/user/autocomplete/a
This is not considered as a security issue – you can find more about this topic here:
https://www.drupal.org/node/1004778