Skip to content
Access control Write-up Advanced

One Text Box, 178 Organizations: How a Trusted Script Turned the BBC’s Homepage Into an Attack

A vulnerability in Optimizely's experimentation account signup flow allowed an attacker to inject malicious JavaScript into customer project files, which then ran on 178 organisations' websites. The code swapped cryptocurrency addresses, skimmed card details from site forms, stole cookies and screenshots, and attempted iPhone exploits.

Naro Follow

Published on medium.com

On Monday morning, millions of people opened the BBC website. The address was correct, the padlock was there, and nothing looked wrong.

Naro, on medium.com

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 flaw in Optimizely's experimentation account signup flow that let an unauthorised party add malicious JavaScript to customer projects.

Impact

Visitors to 178 organisations' sites were served code that could swap crypto addresses, skim card details from site forms, steal some cookies and screenshots, and attempt iPhone exploits, though there is no public proof any iPhone was compromised and some cookies and payment iframes were protected.

What the attacker needed

Attacker can exploit Optimizely signup flow; victim visits an affected website; victim uses a browser that runs the script

The fix

Optimizely says it blocked the signup path, ended active sessions, revoked access tokens, reset access for affected accounts, and notified customers.

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.

Websites often load small pieces of code from other companies, like Optimizely, to test different page designs. If an attacker can change that outside code, it runs on every visitor's browser as if the website itself had written it. Here, a flaw in how Optimizely let people sign up for accounts let an attacker edit many customers' code at once.

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.