mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Рысь <lynx@sibserver.ru>
To: musl@lists.openwall.com
Subject: Re: Re: Busybox on musl is affected by CVE-2015-1817
Date: Fri, 3 Apr 2015 11:51:58 +0700	[thread overview]
Message-ID: <20150403115158.66654b1e@r2lynx> (raw)
In-Reply-To: <20150402183627.GE4456@example.net>

On Thu, 2 Apr 2015 20:36:27 +0200
u-wsnj@aetey.se wrote:

> On Fri, Apr 03, 2015 at 12:26:56AM +0700, Рысь wrote:
> > Audit your filesystem and remove all
> > setuid bits from all programs, move/rename them as prog.real and
> > place a shell script in place which will call setuid wrapper which
> > then will setreuid(uid, 0) then execve().
> 
> This way you are still exposed to setuid and also still depend on how
> the prog.real is going to use the supplied credentials. You more or
> less have to reimplement in your wrapper the checks expected "to be
> already present" in the program, without any control over its
> internals.

If talking about ping issue then yes, ping and other such programs must
not even start to process user input when not sure. You've got setuid
-- quickly drop it when needed privileged resource is obtained. Tools
just need to be fixed, without surrounding scream and initiating
another security dances which usually only hurt.

Instead of wrapper there maybe limiting group which members can run
program, but Unix credentials were always somewhat limited and at some
point you understand that without certain things like ACLs or sudo you
can't effectively partition privileges.

> 
> This can certainly improve the situation if you are (which presumably
> is the case) more security-oriented and thoughtful than the upstream
> developer, but you are in an uphill battle.
> 
> For me this does not look like a solution, rather like a patchwork
> which may or may not be effective.
> 
> Rune
> 



  reply	other threads:[~2015-04-03  4:51 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-30  5:31 Rich Felker
2015-03-31 19:07 ` Denys Vlasenko
2015-03-31 23:11   ` Justin Cormack
2015-03-31 23:51     ` Rich Felker
2015-03-31 23:48   ` Rich Felker
2015-04-01  7:41     ` u-wsnj
2015-04-01  7:52       ` Raphael Cohn
2015-04-01  8:11       ` Harald Becker
2015-04-01  8:49         ` u-wsnj
2015-04-02 13:56           ` Harald Becker
2015-04-02 17:26             ` Рысь
2015-04-02 18:16               ` Harald Becker
2015-04-03  4:40                 ` Рысь
2015-04-04  5:35                   ` Harald Becker
2015-04-02 18:36               ` u-wsnj
2015-04-03  4:51                 ` Рысь [this message]
2015-04-03 10:31                   ` [OT] setuid (Re: Busybox on musl is affected by CVE-2015-1817) u-wsnj
2015-04-02 15:38           ` Re: Busybox on musl is affected by CVE-2015-1817 Rich Felker
2015-04-02 18:02             ` u-wsnj

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=20150403115158.66654b1e@r2lynx \
    --to=lynx@sibserver.ru \
    --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).