Skip to content

fix(contacts): a contact request shows the full address and its identicon - #47

Merged
Henner4746 merged 1 commit into
mainfrom
fix/anfrage-volle-adresse
Nov 30, 2026
Merged

Henner4746 merged 1 commit into
mainfrom
fix/anfrage-volle-adresse

Conversation

@Henner4746

Copy link
Copy Markdown
Owner

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. At origin/main it fails (no such element); on this branch it passes.

Run in CT 107: flutter analyze shows only the 29 existing hints; test/oberflaeche: 183 green.

🤖 Generated with Claude Code

…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>
@sonarqubecloud

Copy link
Copy Markdown

@Henner4746
Henner4746 merged commit 1cb9d88 into main Nov 30, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant