mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Markus Wichmann <nullplan@gmx.net>
To: musl@lists.openwall.com
Subject: Re: [musl] tzset() cannot handle arbitrary inputs
Date: Sun, 5 Sep 2021 19:39:49 +0200	[thread overview]
Message-ID: <20210905173949.GE3090@voyager> (raw)
In-Reply-To: <2R2YR9WZKQ66Q.2ITJ44PGSICVN@8pit.net>

Hi all,

I don't see any security issues here, only QoI issues. The user setting
TZ is also the one getting the crashes. The assumption is less that the
input is always valid, but more that if it is invalid, the user will
only be hacking themselves. Which is pointless. The user can at any
point provide a good definition of TZ, even if the site admin is a BOFH
that is deliberatly putting bad zone definitions into the zoneinfo
database.

That said, the user is prevented from doing so if the login shell
crashes after a successful hack of the system, which is where the QoI
and security domains start to rub up against each other. Then again, an
attacker capable of implanting bad zone files has at least root access,
and can therefore just disable user accounts and change passwords. And
an attacker capable of setting the user's default TZ variable has user
access and can probably just create an RC file that quits the shell or
something. So a successful attacker has no need to detain themselves
with zone files or TZ parsers.

Ciao,
Markus

  reply	other threads:[~2021-09-05 17:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-05 13:36 Sören Tempel
2021-09-05 17:39 ` Markus Wichmann [this message]
2021-09-05 21:26   ` Sören Tempel
2021-09-05 23:11     ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210905173949.GE3090@voyager \
    --to=nullplan@gmx.net \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).