Re: Telnetd Vulnerability Report
Simon Josefsson via Bug reports for the GNU Internet utilities <[email protected]> Sat, 07 Feb 2026 18:58:04 +0100
| Newsgroups | gmane.comp.gnu.inetutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
--=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Erik Auerswald <[email protected]> writes: >> Comparing to the SSH world, then OpenSSH has this: >>=20 >> AcceptEnv >> Specifies what environment variables sent by the client wil= l be >> copied into the session's environ(7). See SendEnv and SetE= nv in >> ssh_config(5) for how to configure the client. The TERM en= viron=E2=80=90 >> ment variable is always accepted whenever the client reques= ts a >> pseudo-terminal as it is required by the protocol. Variabl= es are >> specified by name, which may contain the wildcard character= s =E2=80=98*=E2=80=99 >> and =E2=80=98?=E2=80=99. Multiple environment variables ma= y be separated by >> whitespace or spread across multiple AcceptEnv directives. = Be >> warned that some environment variables could be used to byp= ass >> restricted user environments. For this reason, care should= be >> taken in the use of this directive. The default is not to = accept >> any environment variables. >>=20 >> Is there any reason we shouldn't adopt something similar? Especially >> the last sentence. Allowing clients to set environment variables seems >> like a never ending source of concerns. > > I'd say adding such a configuration option to telnetd could be useful. > I'd also prefer not to accept environment variables by default, i.e., > without explicit configuration. So add a new telnetd parameter --accept-env that accepts names of environment variables to allow clients to set? And default it to the empty set? I'm not yet sure if this will actually work, or if we are just moving the same security problem to default /etc/inetd.conf files that allowlist some environments. But maybe this is consistent with /etc/ssh/sshd_config in many distributions containing things like: AcceptEnv LANG LC_* COLORTERM NO_COLOR We should review BSD telnet's etc to see if this problem has been solved before. /Simon --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQNoBAEWCgMQFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAmmHfSwUHHNpbW9uQGpv c2Vmc3Nvbi5vcmfCHCYAmDMEXJLOtBYJKwYBBAHaRw8BAQdACIcrZIvhrxDBkK9f V+QlTmXxo2naObDuGtw58YaxlOu0JVNpbW9uIE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