Cookies open Wordpress accounts to easy hijacking

If you use, don't log in to your account over an open Wi-Fi connection. You might regret it.

If you're a user you'll want to be extra cautious the next time you're tempted to whip up a blog post from your local coffee shop. If anyone on the same open connection is using a networking sniffing tool like Firesheep, your account could be easily hacked.

That's the recent discovery revealed by Yan Zhu, a staff technologist at the Electronic Frontier Foundation who works on the HTTPS Everywhere and Privacy Badger extensions. Writing on her personal blog (and first reported by Ars Technica), Zhu noticed that was sending a login confirmation cookie to the user's browser unencrypted.

The cookie, called "wordpress_logged_in," is what uses to determine whether a user is logged in or not. If the cookie is set, then WordPress won't bother to ask you for your login credentials again until the cookie expires.

It's a common feature that almost every major online service uses so that you don't have to constantly enter your username and password every time you return to a site. But because sends the cookie in plain text, it can be easily grabbed by a hacker if you login over an open Wi-Fi network.

Once a hacker has the login confirmation cookie, the bad actor can hijack a user's account to publish blog posts, create new blog sites, view private posts and blog stats, and even post comments to other blogs as the hijacked user.

Zhu also said the cookie can be used repeatedly even if the original user logs out of their account. Ideally, a login cookie would expire and become unusable once a user logs out.

Surprisingly, login confirmation cookies are valid for three years. It's not clear if the website would invalidate the cookie before then, but sufficed to say an attacker could have access to a hijacked account for an extended period of time.

Good news...and more bad news

The good news is that a hacker can't reset a user's password with the login confirmation cookie, but the bad news is they could still lock a user out of their account. Like many other sites, supports two-factor authentication, and Zhu discovered that an attacker could set-up two-factor authentication on a hijacked account if it wasn't already in place.

Once activated, two-factor authentication requires you to submit a one-time passcode after entering your username and password to enter your account. The one-time codes can be generated by a smartphone application or be sent via SMS. The problem in this scenario is that the hijacked user wouldn't have access to those codes, but the hacker would, since it was the bad guy that set-up the feature in the first place.

Although Zhu discovered the problem on, the problem also affects self-hosted WordPress blogs that use the open source version of the software. On self-hosted versions, however, the login confirmation cookie expires after two weeks and not three years. Self-hosted sites using HTTPS encryption should be safe, however. developer Andrew Nacin told Zhu via Twitter that this vulnerability will be fixed for self-hosted blogs during the next WordPress release. But it's not clear when Automattic might release a fix for We've dropped the company a line to find out and will update this story should Automattic company respond.

Join the CSO newsletter!

Error: Please check your email address.

Tags Ars Technicasecurityweb servicesElectronic Frontier Foundation

More about Andrew Corporation (Australia)Electronic Frontier Foundation

Show Comments

Featured Whitepapers

Editor's Recommendations

Solution Centres

Stories by Ian Paul

Latest Videos

  • 150x50

    CSO Webinar: Will your data protection strategy be enough when disaster strikes?

    Speakers: - Paul O’Connor, Engagement leader - Performance Audit Group, Victorian Auditor-General’s Office (VAGO) - Nigel Phair, Managing Director, Centre for Internet Safety - Joshua Stenhouse, Technical Evangelist, Zerto - Anthony Caruana, CSO MC & Moderator

    Play Video

  • 150x50

    CSO Webinar: The Human Factor - Your people are your biggest security weakness

    ​Speakers: David Lacey, Researcher and former CISO Royal Mail David Turner - Global Risk Management Expert Mark Guntrip - Group Manager, Email Protection, Proofpoint

    Play Video

  • 150x50

    CSO Webinar: Current ransomware defences are failing – but machine learning can drive a more proactive solution

    Speakers • Ty Miller, Director, Threat Intelligence • Mark Gregory, Leader, Network Engineering Research Group, RMIT • Jeff Lanza, Retired FBI Agent (USA) • Andy Solterbeck, VP Asia Pacific, Cylance • David Braue, CSO MC/Moderator What to expect: ​Hear from industry experts on the local and global ransomware threat landscape. Explore a new approach to dealing with ransomware using machine-learning techniques and by thinking about the problem in a fundamentally different way. Apply techniques for gathering insight into ransomware behaviour and find out what elements must go into a truly effective ransomware defence. Get a first-hand look at how ransomware actually works in practice, and how machine-learning techniques can pick up on its activities long before your employees do.

    Play Video

  • 150x50

    CSO Webinar: Get real about metadata to avoid a false sense of security

    Speakers: • Anthony Caruana – CSO MC and moderator • Ian Farquhar, Worldwide Virtual Security Team Lead, Gigamon • John Lindsay, Former CTO, iiNet • Skeeve Stevens, Futurist, Future Sumo • David Vaile - Vice chair of APF, Co-Convenor of the Cyberspace Law And Policy Community, UNSW Law Faculty This webinar covers: - A 101 on metadata - what it is and how to use it - Insight into a typical attack, what happens and what we would find when looking into the metadata - How to collect metadata, use this to detect attacks and get greater insight into how you can use this to protect your organisation - Learn how much raw data and metadata to retain and how long for - Get a reality check on how you're using your metadata and if this is enough to secure your organisation

    Play Video

  • 150x50

    CSO Webinar: How banking trojans work and how you can stop them

    CSO Webinar: How banking trojans work and how you can stop them Featuring: • John Baird, Director of Global Technology Production, Deutsche Bank • Samantha Macleod, GM Cyber Security, ME Bank • Sherrod DeGrippo, Director of Emerging Threats, Proofpoint (USA)

    Play Video

More videos

Blog Posts

Market Place