Repository navigation
fix(remote-wipe): the code word is blacked out in the trusted contact's history - #48
Merged
Merged
Conversation
…'s history
A trusted contact sends the remote-wipe code word as an ordinary message.
The owner's app swallows it and counts it as a wipe request, but on the
contact's side it stayed in the history in plain text, readable by anyone
holding that phone (security assessment 2026-11-23, SEC-M8).
The delivery receipt for a swallowed code word now carries the text
"tilgen". On receiving it, the contact's app blacks out that message
("••••••"), the same way it already does for the shares of the trust
backup. Older apps ignore the receipt text and acknowledge as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Addresses SEC-M8 from the external security assessment of 16–23 Nov 2026: "The wipe code word remains readable in the trusted contact's chat history."
Confirmed (for the code word, not for
/wipe)/wipesends a control payload and stores nothing._istFernCodewort) and acknowledges it, but on the contact's side it stays in the history in plain text, readable by anyone holding that phone. The sender's app cannot recognise it, because only a salted hash is kept on the owner's side.Fix
tilgen(Payload.quittungTilgen;Payload.controlgained an optionaltext).••••••), the same way it already does for the shares of the trust backup (geheim). Each of the contact's devices gets the receipt and blacks it out.Test
test/net/codewort_geschwaerzt_test.dart(real relay): Anna sets a code word and trusts Bob; Bob sends it. Afterwards it is••••••in Bob's history, Anna counted the request and has nothing in her history, and an ordinary message from Bob stays readable. Atorigin/mainit fails (the code word stays in plain text); on this branch it passes.Run in CT 107:
flutter analyzeshows only the 29 existing hints; withfern_codewort_test,fernloeschung_test,protokoll_befunde_test,relay_end_to_end_test,payload_neue_arten_testandfernloeschung_ui_test: 65 green.Not covered
Until the receipt arrives (owner offline), the text is visible on the contact's phone. A notification shown on the contact's side is not affected.
🤖 Generated with Claude Code