See what polkit agents draw for a name of combining marks #9

Open
opened 2026-11-22 13:22:56 +00:00 by jorijnvdgraaf · 0 comments

A payee's name reaches the password dialog through nostrod's Shown(), which keeps a dialog free of what draws nothing, turns text around or breaks a line, and cuts a name at 64 characters. Combining marks pass it: of U+0300 to U+036F only U+034F is Unshown, and none is Blank. A name of one letter and 63 marks above and below it is 64 characters to Shown() and one tall glyph to an agent that shapes text.

What is not known is what each polkit agent draws for such a name: whether the stack stays within its line, or runs over the lines beside it, where the amount and the IBANs are. If it runs over them, a name can make the dialog unreadable in the place that matters.

Found by the pre-push review of 1.0.0 (the security lens), as something it could not settle from the code. It is not new with that release: any program of the user's can put such a name into a payment's summary through Send. Since 1.0.0 a pay link can carry one from a website as well, which the user then sees on the pay form first.

Where

Links are to the tree at 8dd31e2 (1.0.0).

  • Shown() and the tables it asks, Unshown and Blank.
  • The summary puts the amount first, then the address whole, then the name in brackets, then the paying account (Party), so a name sits between the two things a user checks.
  • The app's own toolkit draws glyph by glyph by its advance, so the pay form does not stack marks: the form and the dialog can look different for the same name.

What it would take

  • Look first: a Send whose name is one letter followed by 63 combining marks, above and below, in each agent the guide names under "Gotchas" (GNOME Shell's, Phosh's, LXDE's, polkit-gnome, mate-polkit, Plasma's), and see whether the amount and both IBANs stay readable.
  • If any agent lets the stack cover them: have Shown() keep a few marks after a base character and drop the rest, or drop marks that have no base, and say so in AGENTS.consumer.md where it says what the dialog does to a name. ShouldServeEveryUser holds what a dialog is kept free of.
  • If none does: a line in the guide's "Gotchas" on what was seen, and where.

What was run, and what was read

Nothing was run. That marks pass Shown() is from reading the two tables; what an agent draws is not in the repository.

A payee's name reaches the password dialog through nostrod's `Shown()`, which keeps a dialog free of what draws nothing, turns text around or breaks a line, and cuts a name at 64 characters. Combining marks pass it: of U+0300 to U+036F only U+034F is `Unshown`, and none is `Blank`. A name of one letter and 63 marks above and below it is 64 characters to `Shown()` and one tall glyph to an agent that shapes text. What is not known is what each polkit agent draws for such a name: whether the stack stays within its line, or runs over the lines beside it, where the amount and the IBANs are. If it runs over them, a name can make the dialog unreadable in the place that matters. Found by the pre-push review of 1.0.0 (the security lens), as something it could not settle from the code. It is not new with that release: any program of the user's can put such a name into a payment's summary through `Send`. Since 1.0.0 a pay link can carry one from a website as well, which the user then sees on the pay form first. ## Where Links are to the tree at 8dd31e2 (1.0.0). - [`Shown()`](https://forgejo.catcrafts.net/Catcrafts/Nostro/src/commit/8dd31e2bb9eb3ac3f7c73ea5f35ad1986b61877b/implementations/Nostro-Daemon-Worker.cpp#L135-L179) and the tables it asks, [`Unshown` and `Blank`](https://forgejo.catcrafts.net/Catcrafts/Nostro/src/commit/8dd31e2bb9eb3ac3f7c73ea5f35ad1986b61877b/interfaces/Nostro-Utils.cppm#L175-L211). - The summary puts the amount first, then the address whole, then the name in brackets, then the paying account ([`Party`](https://forgejo.catcrafts.net/Catcrafts/Nostro/src/commit/8dd31e2bb9eb3ac3f7c73ea5f35ad1986b61877b/implementations/Nostro-Daemon-Worker.cpp#L207-L210)), so a name sits between the two things a user checks. - The app's own toolkit draws glyph by glyph by its advance, so the pay form does not stack marks: the form and the dialog can look different for the same name. ## What it would take - Look first: a `Send` whose name is one letter followed by 63 combining marks, above and below, in each agent the guide names under "Gotchas" (GNOME Shell's, Phosh's, LXDE's, polkit-gnome, mate-polkit, Plasma's), and see whether the amount and both IBANs stay readable. - If any agent lets the stack cover them: have `Shown()` keep a few marks after a base character and drop the rest, or drop marks that have no base, and say so in `AGENTS.consumer.md` where it says what the dialog does to a name. `ShouldServeEveryUser` holds what a dialog is kept free of. - If none does: a line in the guide's "Gotchas" on what was seen, and where. ## What was run, and what was read Nothing was run. That marks pass `Shown()` is from reading the two tables; what an agent draws is not in the repository.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Catcrafts/Nostro#9
No description provided.