# End-to-end encrypted file-drops can be made inaccessible

In Nextcloud E2EE file-drops, an attacker with write access can overwrite another user's metadata entry, making their encrypted upload permanently undecodable.

- Payout: $400
- Severity: high
- Program: Nextcloud
- Found by: rullzer
- Disclosed: 2023-06-22
- CVE: CVE-2023-35173
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1914115
- Library page: https://bugbountylibrary.com/r/h1%3A1914115
- Tags: area:web domain:web impact:dos impact:integrity kind:bounty platform:hackerone sev:high tech:php technique:source-review vuln:access-control vuln:business-logic

**Target:** Nextcloud end-to-end encryption file-drop metadata handling
**Root cause:** The file-drop returns the full metadata file to all participants and accepts client-supplied metadata wholesale, so any participant can rewrite another user's entry instead of only appending their own.
**Steps:**
1. Create a file-drop shared with USER and ATTACKER.
2. USER uploads E2EE-encrypted fileA; upload succeeds.
3. ATTACKER retrieves the metadata file from the file-drop.
4. ATTACKER edits the entry in the filedrop list that USER created.
5. ATTACKER uploads the modified metadata file and unlocks it.
6. fileA can no longer be decoded by anyone.
**How found:** Reporter reasoned about the file-drop flow: since the metadata file is handed to every participant and the backend trusts client-supplied metadata, a participant can rewrite entries belonging to others rather than only appending their own.
**Exploitation:** Attacker is a legitimate participant in the file-drop; they download the shared metadata file, tamper with the victim's entry, and re-upload it. No special privileges beyond file-drop access are needed; the victim's ciphertext becomes undecryptable.
**Insight:** In shared multi-writer encrypted stores, check whether the server returns the whole metadata blob to every participant and trusts it on write; if so, any participant can corrupt others' entries. Test by editing another user's entry and re-uploading.

