Exploiting Leakage in Password Managers via Injection Attacks
Andrés Fábrega, Armin Namavari, Rachit Agarwal, Ben Nassi, Thomas Ristenpart
TL;DR
The paper presents a new threat model for password managers—injection attacks via cross-user sharing where an adversary injects data and observes leaked state to recover sensitive information. It identifies three general design patterns that enable leakage: application-wide vault-health metrics, URL icon fetching, and storage-saving mechanisms (compression and deduplication) in KDBX 4, and demonstrates practical attacks across ten managers. The authors provide attack templates (dictionary-style and binary-search strategies) and validate them with PoC experiments on real apps and simulated KeePassXC deployments, recovering passwords, URLs, usernames, and attachments with high efficacy. They also discuss mitigations and responsible disclosure, noting vendor deployments that separate metrics, disable certain fetches, and randomize storage to blunt side-channels, while calling for broader mitigations and design changes to secure E2EE applications. Overall, the work highlights how seemingly benign features can create leakage paths and motivates rethinking data trust boundaries and state synchronization in password managers.
Abstract
This work explores injection attacks against password managers. In this setting, the adversary (only) controls their own application client, which they use to "inject" chosen payloads to a victim's client via, for example, sharing credentials with them. The injections are interleaved with adversarial observations of some form of protected state (such as encrypted vault exports or the network traffic received by the application servers), from which the adversary backs out confidential information. We uncover a series of general design patterns in popular password managers that lead to vulnerabilities allowing an adversary to efficiently recover passwords, URLs, usernames, and attachments. We develop general attack templates to exploit these design patterns and experimentally showcase their practical efficacy via analysis of ten distinct password manager applications. We disclosed our findings to these vendors, many of which deployed mitigations.
