]> git.ipfire.org Git - thirdparty/systemd.git/commit
ask-password: reject control chars and quotes in query description
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 2 Feb 2026 13:57:12 +0000 (14:57 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 2 Feb 2026 14:16:23 +0000 (15:16 +0100)
commitf01c99c67ede1f3df92993b91b8176cebb5e656a
tree92c9225c3a0d762521a4f6ff108e61d362a8805f
parent7e6003b9bc1e0ce48353c72f0d1fb881eb81784e
ask-password: reject control chars and quotes in query description

As reported in https://yeswehack.com/vulnerability-center/reports/705270,
YesWeHack issue #YWH-PGM9780-66, if a newline is injected into the message
field, it is passed through unmolested and lands in the .ini file. This
obviously would cause the parser to be confused.

Let's forbid any control characters or quotes in those fields. If we want
something more complicated in the future, we can add a custom validation
function and allow some escaping mechanism.
src/ask-password/ask-password.c