Skip to content
Access control Write-up Beginner

Companies House vulnerability enabled company hijacking

A flaw in the Companies House website let any logged-in user view and modify the private dashboard of any of the five million registered companies by pressing the back button after being asked for an authentication code. An attacker could access directors' home addresses and email addresses, and could file accounts or change company details.

taxpolicy.org.uk

Published on taxpolicy.org.uk

A major vulnerability in the Companies House website gave unauthorised access to the private dashboard of any of the five million registered companies for five months. It exposed directors’ home addresses and email addresses, and enabled attackers to change company and director details – and even file accounts.

The author, on taxpolicy.org.uk

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely a missing server-side authorisation check: the application trusted the browser's back navigation and did not verify that the logged-in user was authorised for the company whose dashboard was displayed.

Impact

Attackers could view non-public personal data such as directors' home and email addresses and full dates of birth, and could potentially change company details or file accounts, though the article notes that one test change did not go through and that Companies House's email confirms changes could be made.

What the attacker needed

A free Companies House account; ability to incorporate a company for £100; victim's company number (public)

The fix

Companies House shut down the e-filing system after being alerted, and the article implies the flaw should be fixed by enforcing proper authorisation checks on the server for every dashboard request.

How it was found

  1. Log in to Companies House with your own account and open your own company dashboard.
  2. Choose the option to file for another company and enter any company number.
  3. When asked for an authentication code, press the back key several times.
  4. The browser then shows the other company's private dashboard instead of your own.

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 write-up has not been written yet. The Original tab links to the source.

Companies House is the UK government register of companies. Its website has a private area for each company where directors can see personal details and file changes. A mistake in how the website handled the back button meant that after entering another company's number, a user could simply go back and land in that company's private area instead of their own.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.