See what polkit agents draw for a name of combining marks #9
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Catcrafts/Nostro#9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 isUnshown, and none isBlank. A name of one letter and 63 marks above and below it is 64 characters toShown()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,UnshownandBlank.Party), so a name sits between the two things a user checks.What it would take
Sendwhose 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.Shown()keep a few marks after a base character and drop the rest, or drop marks that have no base, and say so inAGENTS.consumer.mdwhere it says what the dialog does to a name.ShouldServeEveryUserholds what a dialog is kept free of.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.