| Summary: | ssh-keygen: sanitize ANSI escape sequences in key comment | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Roland Hieber <rohieb+bugzillamindrotorg> | ||||||||||
| Component: | ssh-keygen | Assignee: | Damien Miller <djm> | ||||||||||
| Status: | CLOSED FIXED | ||||||||||||
| Severity: | minor | CC: | djm, dtucker | ||||||||||
| Priority: | P5 | ||||||||||||
| Version: | 7.1p1 | ||||||||||||
| Hardware: | amd64 | ||||||||||||
| OS: | Linux | ||||||||||||
| Bug Depends on: | |||||||||||||
| Bug Blocks: | 2647 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Roland Hieber
2016-01-06 06:15:44 AEDT
Created attachment 2776 [details]
screenshot showing the output from ssh-keygen on the public key
Created attachment 2777 [details]
proposed patch
This is not going to be popular with users who have UTF-8 or other non-ASCII characters in their comments. We need something like that proposed for bug #2058 Created attachment 2940 [details]
sanitise escape sequences but not valid UTF-8 when the locale supports it
This patch uses Ingo's recent mprintf API to safely render strings while preserving UTF-8 characters when the locale supports them.
Fix applied. This will be in OpenSSH 7.5 commit a287c5ad1e0bf9811c7b9221979b969255076019 Author: djm@openbsd.org <djm@openbsd.org> Date: Fri Feb 10 03:36:40 2017 +0000 upstream commit Sanitise escape sequences in key comments sent to printf but preserve valid UTF-8 when the locale supports it; bz#2520 ok dtucker@ Upstream-ID: e8eed28712ba7b22d49be534237eed019875bd1e Close all resolved bugs after release of OpenSSH 7.7. |