Lune

摘要

MEGA is a large-scale cloud storage and communication platform that aims to provide end-to-end encryption for stored data. A recent analysis by Backendal, Haller and Paterson (IEEE S&P 2023) invalidated these security claims by presenting practical attacks against MEGA that could be mounted by the MEGA service provider. In response, the MEGA developers added lightweight sanity checks on the user RSA private keys used in MEGA, sufficient to prevent the previous attacks.

We analyse these new sanity checks and show how they themselves can be exploited to mount novel attacks on MEGA that recover a target user's RSA private key with only slightly higher attack complexity than the original attacks. We identify the presence of an ECB encryption oracle under a target user's master key in the MEGA system; this oracle provides our adversary with the ability to partially overwrite a target user's RSA private key with chosen data, a powerful capability that we use in our attacks. We then present two distinct types of attack, each type exploiting different error conditions arising in the sanity checks and in subsequent cryptographic processing during MEGA's user authentication procedure. The first type appears to be novel and exploits the manner in which the MEGA code handles modular inversion when recomputing u = q -1 mod p. The second can be viewed as a small subgroup attack (van Oorschot and Wiener, EUROCRYPT 1996, Lim and Lee, CRYPTO 1998). We prototype the attacks and show that they work in practice.

As a side contribution, we show how to improve the RSA key recovery attack of Backendal-Haller-Paterson against the unpatched version of MEGA to require only 2 logins instead of the original 512.

We conclude by discussing wider lessons about secure implementation of cryptography that our work surfaces.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Zero Knowledge (About) Encryption: A Comparative Security Analysis of Three Cloud-based Password Managers 引用了 Victory by KO: Attacking OpenPGP Using Key Overwriting
  • Zero Knowledge (About) Encryption: A Comparative Security Analysis of Three Cloud-based Password Managers 引用了 End-to-End Encrypted Cloud Storage in the Wild: A Broken Ecosystem
  • Zero Knowledge (About) Encryption: A Comparative Security Analysis of Three Cloud-based Password Managers 引用了 MFKDF: Multiple Factors Knocked Down Flat
  • End-to-End Encrypted Cloud Storage in the Wild: A Broken Ecosystem 引用了 Victory by KO: Attacking OpenPGP Using Key Overwriting
  • MFKDF: Multiple Factors Knocked Down Flat 引用了 Victory by KO: Attacking OpenPGP Using Key Overwriting
  • MFKDF: Multiple Factors Knocked Down Flat 引用了 Four Attacks and a Proof for Telegram
  • End-to-End Encrypted Git Services 引用了 End-to-End Encrypted Cloud Storage in the Wild: A Broken Ecosystem
  • Analyzing Cryptography in Context: A Cryptography-Native Approach to Threat Modeling 引用了 Four Attacks and a Proof for Telegram
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. End-to-End Encrypted Cloud Storage in the Wild: A Broken EcosystemJonas Hofmann, Kien Tuong TruongCCS 2024 · 5 次引用
  2. MFKDF: Multiple Factors Knocked Down FlatMatteo Scarlata, Matilda Backendal, Miro HallerUSENIX Security 2024 · 3 次引用
  3. End-to-End Encrypted Git ServicesYa-Nan Li, Yaqing Song, Qiang Tang, Moti YungCCS 2025 · 1 次引用
  4. Zero Knowledge (About) Encryption: A Comparative Security Analysis of Three Cloud-based Password ManagersMatteo Scarlata, Giovanni Torrisi, Matilda Backendal, Kenneth G. PatersonUSENIX Security 2026
  5. Analyzing Cryptography in Context: A Cryptography-Native Approach to Threat ModelingRan Canetti, Julie Ha, Gabriel KaptchukUSENIX Security 2026

它引用的 Paper7

  1. SoK: Computer-Aided CryptographyManuel Barbosa, Gilles Barthe, Karthik Bhargavan, Bruno Blanchet 等S&P 2021 · 169 次引用
  2. Dragonblood: Analyzing the Dragonfly Handshake of WPA3 and EAP-pwdMathy Vanhoef, Eyal RonenS&P 2020 · 146 次引用
  3. Advanced Lattice Sieving on GPUs, with Tensor CoresLéo Ducas, Marc Stevens, Wessel P. J. van WoerdenEUROCRYPT 2021 · 44 次引用
  4. Four Attacks and a Proof for TelegramMartin R. Albrecht, Lenka Mareková, Kenneth G. Paterson, Igors StepanovsS&P 2022 · 40 次引用
  5. Victory by KO: Attacking OpenPGP Using Key OverwritingLara Bruseghini, Daniel Huigens, Kenneth G. PatersonCCS 2022 · 6 次引用

相关 Paper

  1. MEGA: Malleable Encryption Goes AwryMatilda Backendal, Miro Haller, Kenneth G. PatersonS&P 2023
  2. A Formal Treatment of End-to-End Encrypted Cloud StorageMatilda Backendal, Hannah Davis, Felix Günther, Miro Haller 等CRYPTO 2024 · 15 次引用
  3. Secure Cloud Storage: Modularization, Network Adversaries and Adaptive CorruptionsJonas Janneck, Doreen RiepelEUROCRYPT 2026
  4. Cryptanalysis of the GPRS Encryption Algorithms GEA-1 and GEA-2Christof Beierle, Patrick Derbez, Gregor Leander, Gaëtan Leurent 等EUROCRYPT 2021 · 22 次引用
  5. Automated Formal Analysis of Signal's Double Ratchet: Attacks, Fixes and Security ProofsVincent Cheval, Charlie Jacomme, Jessica RichardsS&P 2026 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖