Repository navigation
fix(contacts): a contact request shows the full address and its identicon - #47
Merged
Merged
Conversation
…icon The request card showed only the first and last four characters of the address (about 40 bits). That is exactly where the user decides whom to accept, and a generated lookalike address could pass for a known contact (security assessment 2026-11-23, SEC-M7). The card now also shows the full formatted address (selectable, so it can be compared or copied) and the identicon derived from the whole address, the same one the chat shows after accepting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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-M7 from the external security assessment of 16–23 Nov 2026 (also a low finding of the QA report): "Contact request shows only 8 characters / ~40 bits. Lookalike risk."
Confirmed
The incoming request card showed
shortId(...): the first and last four characters of the formatted address, without an identicon. That card is exactly where the user decides whom to accept. Outgoing requests and contact rows already had an identicon; this card did not.Fix
The card now shows the identicon (derived from the whole address, the same one the chat shows after accepting) and the full formatted address as selectable text below the short ID, so it can be compared with what the other person reads out, or copied.
Test
test/oberflaeche/anfrage_adresse_test.dart: with the fake core's incoming request, the card shows the full formatted address. Atorigin/mainit fails (no such element); on this branch it passes.Run in CT 107:
flutter analyzeshows only the 29 existing hints;test/oberflaeche: 183 green.🤖 Generated with Claude Code