Hacking

Researchers found flaws in MEGA that allowed to decrypt of user data

Researchers at ETH Zurich discovered several critical flaws in the MEGA cloud storage service that could have allowed the decryption of user data

MEGA has addressed multiple vulnerabilities in its cloud storage service that could have allowed threat actors to decrypt user data stored in encrypted form.

Data on Mega services is end-to-end encrypted client-side using the AES algorithm, this means that the company does not know the encryption keys to uploaded files and cannot view the content. For this reason, the company claims that is not responsible for the contents of uploaded files.

The service has over 250 million registered users for a total of 120 billion files amounting to 1000 petabytes in size.

“Researchers at the Department of Computer Science of the ETH Zurich in Zurich, Switzerland reviewed the security of MEGA and found significant issues in how it uses cryptography.” reported Malwarebytes. “These findings could lead to devastating attacks on the confidentiality and integrity of user data in the MEGA cloud.”

Researchers at ETH Zurich, in Switzerland reported the flaws to MEGA on March 24, 2022.

“Additionally, the integrity of user data is damaged to the extent that an attacker can insert malicious files of their choice which pass all authenticity checks of the client,” reads the paper published by ETH Zurich’s researchers.

MEGA accounts have a set of asymmetric RSA keys, an RSA key pair for sharing data, a Curve25519 key pair for exchanging chat keys for MEGA’s chat functionality, and an Ed25519 key pair for signing the other keys. The experts pointed out that the client generates a new key for every file or folder uploaded by the user. The weakness resides in the fact that all the keys are derived in one way or another from the password. The researchers also highlighted that all the keys get stored on MEGA’s servers to support access from multiple devices.

The researchers devised five attacks that rely on stealing and deciphering an RSA key.

One of the attacks, the RSA Key Recovery Attack, allows threat actors to control MEGA API infrastructure to recover a user’s RSA private key by tampering with 512 login attempts and decrypt the stored content.

The other attacks devised by the experts are:

  • Plaintext Recovery Attack, which allows MEGA to decrypt key material, including node keys, and use them to decrypt all user communication and files.
  • Framing Attack, which allows MEGA to insert arbitrary files into the user’s file storage that are indistinguishable from genuinely uploaded ones.
  • Integrity Attack, it is similar to the Framing Attack, but it is more stealth.
  • Guess-and-Purge (GaP) Bleichenbacher attack, which allows to decrypt RSA ciphertexts.

The good news is that the company is not aware of any compromised user accounts or data by exploiting one of the flaws discovered by the researchers.

MEGA has addressed two vulnerabilities that can be exploited by attackers to decrypt user data, mitigated the third one (framing), and will fix the remaining two in upcoming updates.

“The whitepaper published today represents the gold standard in cryptographic research, and we are extremely grateful for the privilege of having been chosen as a target. Seeing how seemingly innocuous cryptographic design shortcuts taken almost a decade ago backfire under scrutiny by three of the sector’s brightest minds is both frightening and intellectually fascinating. The very high threshold of exploitability, despite the broad range of identified cryptographic flaws, provides a certain sense of relief.” states MEGA

Follow me on Twitter: @securityaffairs and Facebook

[adrotate banner=”9″][adrotate banner=”12″]

Pierluigi Paganini

(SecurityAffairs – hacking, MEGA attacks)

[adrotate banner=”5″]

[adrotate banner=”13″]

Pierluigi Paganini

Pierluigi Paganini is member of the ENISA (European Union Agency for Network and Information Security) Threat Landscape Stakeholder Group and Cyber G7 Group, he is also a Security Evangelist, Security Analyst and Freelance Writer. Editor-in-Chief at "Cyber Defense Magazine", Pierluigi is a cyber security expert with over 20 years experience in the field, he is Certified Ethical Hacker at EC Council in London. The passion for writing and a strong belief that security is founded on sharing and awareness led Pierluigi to find the security blog "Security Affairs" recently named a Top National Security Resource for US. Pierluigi is a member of the "The Hacker News" team and he is a writer for some major publications in the field such as Cyber War Zone, ICTTF, Infosec Island, Infosec Institute, The Hacker News Magazine and for many other Security magazines. Author of the Books "The Deep Dark Web" and “Digital Virtual Currency and Bitcoin”.

Recent Posts

Italian university La Sapienza still offline to mitigate recent cyber attack

Rome’s La Sapienza University was hit by a cyberattack that disrupted IT systems and caused…

14 hours ago

CISA pushes Federal agencies to retire end-of-support edge devices

CISA ordered U.S. federal agencies to improve management of edge network devices and replace unsupported…

21 hours ago

Record-breaking 31.4 Tbps DDoS attack hits in November 2025, stopped by Cloudflare

AISURU/Kimwolf botnet hit a record 31.4 Tbps DDoS attack lasting 35 seconds in Nov 2025,…

2 days ago

Nearly 5 Million Web Servers Found Exposing Git Metadata – Study Reveals Widespread Risk of Code and Credential Leaks

A study found nearly 5 million servers exposing Git metadata, with 250,000 leaking deployment credentials…

2 days ago

U.S. CISA adds SmarterTools SmarterMail and React Native Community CLI flaws to its Known Exploited Vulnerabilities catalog<gwmw style="display:none;"></gwmw>

U.S. Cybersecurity and Infrastructure Security Agency (CISA) adds SmarterTools SmarterMail and React Native Community CLI…

2 days ago

Hacker claims theft of data from 700,000 Substack users; Company confirms breach

Substack confirmed a data breach after a hacker leaked data from nearly 700,000 users, including…

2 days ago

This website uses cookies.