|
Message-Id: <38ZW90QHEA9XD.3GB2I1P1ZLKDB@8pit.net> Date: Sun, 05 Sep 2021 23:26:08 +0200 From: Sören Tempel <soeren@...ren-tempel.net> To: musl@...ts.openwall.com Subject: Re: tzset() cannot handle arbitrary inputs Markus Wichmann <nullplan@....net> wrote: > Hi all, Hi, > 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. This is only true under the assumption that $TZ itself is never set to a value derived from an untrusted source. See the aforementioned calcurse code for example where this assumption does not hold. If you search GitHub or use codesearch.debian.net you will find plenty additional examples where people "abuse" $TZ to query information about zonefiles by name. Please also note that these spatial memory safety violations are UB and thus might or might not lead to a crash. Greetings, Sören
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.