Poster with the headline Misconfigured WordPress Plugin Leaks UK Budget, showing a WordPress logo with warning signs and a padlock beside a list of risks.

The WordPress Plugin Mistake That Leaked the UK Budget (and How to Check Your Site)

A WordPress download plugin and a guessable file address let the UK budget forecast out early. Here's how to check your own site for exposed files in ten minutes, and how to lock them down.

On UK budget day in November 2025, the Office for Budget Responsibility's forecast was opened and downloaded from its own website before the Chancellor stood up to speak.

No hackers. A WordPress plugin and a server setting.

If your business website runs WordPress and you've ever uploaded a PDF to it, this one's worth ten minutes.

The quick answer

  1. Search Google for site:yourdomain.com filetype:pdf and look at what comes up.
  2. In WordPress, open Media > Library and look for contracts, price lists, client files or anything internal. Delete what shouldn't be there.
  3. Visit yourdomain.com/wp-content/uploads/ in a private browser window. If you see a list of folders and files, ask your host to turn off directory listing.
  4. Stop sharing private files through your website. Use OneDrive, Google Drive or a client portal with named access instead.

What went wrong at the OBR

The OBR asked Ciaran Martin, the former head of the UK's National Cyber Security Centre, to investigate. As The Register reported, he found two problems working together.

  • The plugin. The OBR used a WordPress plugin called Download Monitor to handle file downloads. It created a link to the file that skipped the protection meant to keep the document hidden until publication.
  • The address. The file's web address followed the same pattern as previous years, so it could be guessed.

Put those together and anyone who tried the right address early got the file. The report found the March 2025 Spring Statement forecast had been opened early the same way.

The report also said the OBR's publishing setup was closer to what you'd expect at a small or medium-sized business. The OBR's chair, Richard Hughes, resigned in early December 2025, after it came out.

Here's why that matters to you.

The mistake wasn't exotic. It's the default way a lot of small business websites work.

How WordPress files actually work

When you upload a file to WordPress, it goes into a folder called /wp-content/uploads/, sorted by year and month.

That folder is public.

Anyone with the exact link can open the file. It doesn't matter if the page it's attached to is a draft, private, or deleted. The file sits there on its own.

Most site owners never think about it. Upload a PDF for a client, send them the link, move on. Two years later it's still there.

And download, membership or "protected file" plugins don't always protect what you think they do. The OBR's plugin was installed precisely to manage downloads.

How to tell if your site is exposing files

Do these in order. They take about ten minutes.

1. Ask Google what it knows

Type these into Google, one at a time, with your own domain:

  • site:yourdomain.com filetype:pdf
  • site:yourdomain.com filetype:docx
  • site:yourdomain.com filetype:xlsx

Anything that shows up is public, and indexed. If a contract or price sheet appears, that's your first fix.

2. Look through your media library

In WordPress, go to Media > Library. Switch to list view and use the file-type filter to show documents only.

Look for anything you wouldn't hand to a stranger: invoices, quotes, contracts, staff details, internal reports.

3. Check for open folders

Open a private or incognito window and visit yourdomain.com/wp-content/uploads/.

  • A blank page or "Forbidden" is good.
  • A page titled "Index of /wp-content/uploads" with a clickable list of folders is not. Anyone can browse every file you've uploaded.

4. Test your download plugin

If you use a plugin to protect downloads or members-only files, log out, open a private window, and paste in a direct link to a protected file.

If it downloads, it isn't protected.

Fixes, easiest first

1. Delete what shouldn't be public

Remove sensitive files from Media > Library. Deleting them there removes the file from the uploads folder too.

Then ask Google to drop the old copies: in Google Search Console, use Indexing > Removals to request a temporary removal of each URL while Google catches up.

2. Turn off directory listing

Ask your hosting company to disable directory browsing for your site. It's a one-line server setting, and any decent host can do it in minutes.

3. Move private files off the website

Your website is for things you want the public to see.

For anything else, share it from OneDrive, SharePoint or Google Drive with specific people rather than "anyone with the link". You can see who opened it, and you can turn access off later.

4. Clean up plugins

Go to Plugins > Installed Plugins.

  • Delete anything deactivated. It's still on the server.
  • Update the rest. Dashboard > Updates shows what's waiting.
  • For any plugin that handles files, forms or downloads, check its settings and test it logged out.

5. Don't use guessable names for anything time-sensitive

The OBR's file address could be guessed from past years. If you upload a price change, an announcement or a launch file ahead of time, don't put it on the public site until it's meant to be public.

Why this keeps happening

Websites get built once and then left alone.

The person who set up the plugin moves on. Staff upload files because it's the quickest way to get a link. Nobody checks what's piled up in the uploads folder.

It costs nothing until the wrong file turns up in a Google search.

If something has already leaked

  • Remove the file and request removal in Search Console, as above.
  • Work out who the file was about. A leaked client document may mean you owe them a call, and depending on what was in it and where you operate, you may have legal duties to notify people.
  • Check your site's access logs (your host can pull them) to see if the file was downloaded.
  • Change any passwords or account numbers that were in the file.

Preventing it in a business

Run this checklist once a quarter:

  • Google search for your PDFs, Word and Excel files.
  • Skim the media library for anything private.
  • Check the uploads folder doesn't list files.
  • Delete unused plugins and update the rest.
  • Test any "protected" download logged out.

And give staff one rule: "Private files go in OneDrive or Drive, never on the website."

When to call someone

  • You found client or financial documents in Google results.
  • Your host can't or won't turn off directory listing.
  • Nobody's sure who manages the site, or which plugins are doing what.

If that's you, we can take a look.

Originally published December 2025.

No comments yet

Managed Nerds Weekly

Get the week's posts in one email

New IT, security and SEO posts every Monday. That's it.