How ProtonMail Was Hacked With Just a Browser

Updated October 2026: This post has been expanded from its original July 2014 version which only embedded a third-party video, with a sourced account of the reported ProtonMail beta vulnerability, how the company responded, and what happened to the service afterward. It is a historical account; details describe the time it covers, not today.

Close-up of backlit laptop keyboard keys

In early July 2014, a short video titled "Hacking protonmail - with a browser" circulated online and was embedded in the original version of this post. It showed a researcher using nothing more than a web browser's built-in developer tools to slip a piece of JavaScript into an email, which then ran inside the recipient's ProtonMail session. For a brand-new service whose entire pitch was secure, encrypted email, the clip was an embarrassing look.

The headline "how ProtonMail was hacked" overstated things, though. The issue was real, but it affected an early beta build, the company said it had already been fixed on the live site before the video came out, and there are no reports that anyone's mail was actually stolen through it. This rewrite explains what was shown, what ProtonMail said, and why the episode is still a useful lesson about web-based encryption.

ProtonMail in 2014: a beta built by scientists

ProtonMail was founded in the summer of 2013 by a group of scientists who met at CERN, the particle physics laboratory near Geneva, Switzerland. Co-founders Andy Yen and Jason Stockman became its public faces. The idea was to offer email with end-to-end encryption that ran in the browser, so that messages were encrypted on the user's device before reaching the company's servers. The founders pitched Swiss privacy law as an added layer of protection.

The service opened a public beta on May 16, 2014. Demand was immediate: according to ProtonMail's own account, its servers were overloaded within days and it had to restrict sign-ups and introduce an invite-only waiting list. More than 200,000 people signed up for the beta during 2014.

To pay for the growth, ProtonMail launched a month-long crowdfunding campaign on Indiegogo in June 2014 with a goal of $100,000. It reached that goal within three days. During the campaign, PayPal froze the company's account and, according to ProtonMail, questioned whether encrypted email was legal. The freeze was lifted after public criticism, and the attention helped the campaign. It closed having raised $550,377 from 10,576 backers, which ProtonMail described as a record for a software project in its category.

What the video showed

The researcher behind the demonstration was German security expert Thomas Roth. According to The Register, he used Chrome's developer tools to edit an outgoing message so that it contained arbitrary JavaScript. When the recipient opened the message on the ProtonMail website, the script ran in their browser with access to their account. This class of bug is known as cross-site scripting, or XSS.

XSS is a particularly awkward problem for a service like ProtonMail. Because encryption and decryption happen inside the browser, the server cannot inspect message contents and strip out dangerous code. The filtering has to be done by the client-side JavaScript that displays the decrypted message. If that filtering misses something, the attacker's code runs in the same page that holds the user's decrypted mail.

Roth said he had reported five vulnerabilities to ProtonMail in May 2014. Another one he described was a cross-site request forgery bug that could change a victim's email signature, which could in turn be used to deliver malicious script. He told The Register he published the video because the company fixed the bugs quietly, without telling users or crediting him, which he said made it hard to trust them.

How ProtonMail responded

ProtonMail answered in a blog post. Its security team said it had reviewed the video and that the flaw was not present on the live version of the service. The video, it said, showed an earlier development release that had been made available for limited public testing on May 10, 2014, and was no longer used in production. The company also acknowledged that doing encryption in the browser was a relatively new approach that "comes with its own security challenges," and it invited researchers to report issues to its security address.

Taken together, the two accounts largely agree on the facts. The XSS problem was real in the early beta. It was reported privately in May and fixed before the video was released in July. The real dispute was about disclosure: whether ProtonMail should have told users that the bugs had existed. The crowdfunding campaign kept growing through the controversy, passing $380,000 by July 11 according to Crowdfund Insider.

QuestionWhat the record shows
Was the bug real?Yes. An XSS flaw let JavaScript in an email run in the reader's ProtonMail session in an early beta build.
When was it reported?May 2014, privately, by researcher Thomas Roth (with four other issues).
Was it live when the video appeared?No, according to ProtonMail. The video showed a development build from May 10, 2014.
Were users harmed?No reports of real-world exploitation were found.
What was disputed?Disclosure. Roth objected that fixes were made without telling users.

Sources: The Register (July 7, 2014), ProtonMail blog, Crowdfund Insider.

What happened next

The 2014 XSS episode turned out to be a small bump. A much bigger test came in November 2015, when ProtonMail was hit by a large distributed denial-of-service (DDoS) attack. According to Threatpost, the attack began on November 3 and grew to target the company's internet provider and data center, peaking at around 100 Gbps against its ISP and knocking other businesses offline too. A group calling itself the Armada Collective demanded a bitcoin ransom. ProtonMail paid, under pressure from third parties affected by the outage, but the attacks continued, and the company said a second group with far more advanced capabilities was also involved. Working with Swiss authorities, it restored service by November 9 and launched a public fund to pay for stronger defenses.

ProtonMail left beta on March 17, 2016, with version 3.0, which opened sign-ups to everyone. Over the following years it released open-source apps, published independent security audits, and expanded into a broader suite of privacy tools. In May 2022 the company rebranded under the Proton name, and the service became "Proton Mail." It reported around 2 million users by 2017 and roughly 100 million accounts by the mid-2020s.

XSS did not disappear as a concern. In 2023, security firm Sonar published details of a different XSS flaw it had reported to Proton Mail in June 2022. That bug could have let an attacker steal decrypted emails if a victim opened two crafted messages and clicked a link. Proton patched it in production about a month after the report and paid a bug bounty. The pattern was very different from 2014: private report, quick fix, a bounty, and coordinated public disclosure afterward.

ProtonMail security milestones, 2013 to 2023
  1. Summer 2013
    ProtonMail founded by scientists who met at CERN.
  2. May 16, 2014
    Public beta opens; sign-ups are soon restricted due to demand.
  3. May 2014
    Thomas Roth privately reports XSS and other flaws in the beta.
  4. June to July 2014
    Indiegogo campaign raises $550,377 from 10,576 backers.
  5. Early July 2014
    Roth publishes the "hacking with a browser" video; ProtonMail says the live site is not affected.
  6. November 2015
    Week-long DDoS attack; ransom paid but attacks continue until defenses hold.
  7. March 17, 2016
    ProtonMail 3.0 leaves beta.
  8. May 2022
    Rebrand to Proton Mail.
  9. July 2022 / Sept 2023
    A separate XSS bug reported by Sonar is fixed, then publicly described.
Sources: Proton blog, The Register, Threatpost, Wikipedia (Proton Mail), Sonar.

Lessons that still apply

The 2014 video was not a catastrophic breach, but it pointed at a lasting truth: encryption protects your messages in transit and on the server, but the app that shows them to you still has to be secure. A few practical points follow from that:

  • Encryption is not the whole story. End-to-end encryption keeps your provider and network snoops out, but a bug in the client app can still expose messages once they are decrypted on your screen.
  • Be careful with early betas. New security products often have rough edges in their first months. If your safety depends on confidentiality, wait for audits and a stable release.
  • Look for a disclosure policy. A provider that runs a bug bounty, credits researchers and publishes security audits is easier to trust than one that fixes problems silently.
  • Keep your browser and apps updated. Many fixes for web-based flaws reach you automatically, but only if you are running the current version.
  • Read the headline skeptically. "Hacked" can mean anything from a theoretical bug in a test build to a mass data theft. Check what was actually affected before drawing conclusions.

Sources

Top image: "Backlit laptop keyboard keys" by ChromeGames923, CC BY-SA 4.0, via Wikimedia Commons (resized). Charts by Thank You Robot.

Post a Comment

0 Comments