Skip to content
Crypto Disclosed report Advanced

WordPress Automatic Update Protocol Does Not Authenticate Updates Provided by the Server

The WordPress automatic update process does not cryptographically authenticate updates, relying only on a server-supplied MD5 checksum that can be omitted. An attacker who compromises the WordPress update server could push malicious updates to any WordPress site with automatic updates enabled.

paragonie-scott Follow

Originally disclosed on HackerOne

High 8.1 View original
  • Disclosed after 2.2 years

When the WordPress automatic update process is initiated (likely via wp-cron.php), this is the path the code takes:

The only integrity check that is provided is that the Content-MD5 header sent by the WordPress server is checked against the MD5 checksum of the file (which, if omitted by the server, the WordPress site will silently disregard).

There is no code signing in place. As a consequence, an attacker who has fully compromised the WordPress update server can issue updates to any WordPress install on the Internet that hasn't disabled automatic updates.

I have previously reported this to the WordPress Trac, along with a proposed solution (Ed25519 signature verification + update hash commitment to a Merkle tree, similar to Mozilla's Binary Transparency project). However, the Powers That Be deemed it a low priority issue, and the rest of the WP core team responded one of two ways:

  1. "I don't understand cryptography, so I won't be much help here."
  2. "I'm already overworked and can't find the time or energy to touch this."

I hope that, by reporting this to HackerOne, it can be given the attention it requires from people with the time/energy availability and the crypto/security expertise to make a solution happen.

This problem was narrowly missed before. I'd like to see it gets fixed before the rest of the Internet has to contend with a DDoS botnet that consists of >20% of the top 10 million websites. I don't imagine many networks would survive such an attack.

The original report as published on HackerOne, by paragonie-scott. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker who fully compromises the WordPress update server could issue malicious updates to any WordPress installation that has not disabled automatic updates, which the reporter fears could lead to a large-scale DDoS botnet.

What the attacker needed

Compromise of WordPress update server; target has automatic updates enabled

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When WordPress updates itself automatically, it downloads files from a central server. The report says it only checks a fingerprint (MD5) that the same server provides, and if that fingerprint is missing, the check is skipped. So if someone takes over that central server, they could send harmful updates to millions of sites.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More from WordPress

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.