Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux > #59746 > unrolled thread

sudo breach

Started bySoviet_Mario <SovietMario@CCCP.MIR>
First post2019-10-16 15:35 +0200
Last post2019-10-17 09:40 +0000
Articles 13 on this page of 33 — 12 participants

Back to article view | Back to alt.os.linux


Contents

  sudo breach Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-16 15:35 +0200
    Re: sudo breach Aragorn <thorongil@telenet.be> - 2019-10-16 16:00 +0200
      Re: sudo breach Wildman <best_lay@yahoo.com> - 2019-10-16 14:09 -0500
        Re: sudo breach Fenris <fenris@invalid.invalid> - 2019-10-16 19:51 +0000
          Re: sudo breach Ned Latham <nedlatham@woden.valhalla.oz> - 2019-10-16 15:43 -0500
        Re: sudo breach Aragorn <thorongil@telenet.be> - 2019-10-17 08:00 +0200
    Re: sudo breach Grant Taylor <gtaylor@tnetconsulting.net> - 2019-10-16 08:54 -0600
    Re: sudo breach "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-10-16 11:33 -0400
      Re: sudo breach "Carlos E.R." <robin_listas@es.invalid> - 2019-10-16 18:32 +0200
        Re: sudo breach Grant Taylor <gtaylor@tnetconsulting.net> - 2019-10-16 19:53 -0600
          Re: sudo breach "Carlos E.R." <robin_listas@es.invalid> - 2019-10-17 12:11 +0200
            Re: sudo breach Grant Taylor <gtaylor@tnetconsulting.net> - 2019-10-17 22:04 -0600
              Re: sudo breach "Carlos E.R." <robin_listas@es.invalid> - 2019-10-18 09:39 +0200
                Re: sudo breach Joe Beanfish <joebeanfish@nospam.duh> - 2019-10-18 13:49 +0000
                  Re: sudo breach Grant Taylor <gtaylor@tnetconsulting.net> - 2019-10-18 09:31 -0600
                  Re: sudo breach "Carlos E.R." <robin_listas@es.invalid> - 2019-10-18 20:01 +0200
                    Re: sudo breach "Carlos E.R." <robin_listas@es.invalid> - 2019-10-18 20:06 +0200
                      Re: sudo breach Joe Beanfish <joebeanfish@nospam.duh> - 2019-10-21 13:39 +0000
                        Re: sudo breach "Carlos E.R." <robin_listas@es.invalid> - 2019-10-21 18:22 +0200
              Re: sudo breach Richard Kettlewell <invalid@invalid.invalid> - 2019-10-18 10:10 +0100
                Re: sudo breach Grant Taylor <gtaylor@tnetconsulting.net> - 2019-10-18 09:34 -0600
                  Re: sudo breach "Carlos E.R." <robin_listas@es.invalid> - 2019-10-19 02:37 +0200
                    Re: sudo breach Richard Kettlewell <invalid@invalid.invalid> - 2019-10-19 15:25 +0100
                    Re: sudo breach Grant Taylor <gtaylor@tnetconsulting.net> - 2019-10-19 11:24 -0600
                  Re: sudo breach Richard Kettlewell <invalid@invalid.invalid> - 2019-10-19 11:06 +0100
                    Re: sudo breach Grant Taylor <gtaylor@tnetconsulting.net> - 2019-10-19 11:26 -0600
    Re: sudo breach Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-16 20:34 +0200
      Re: sudo breach Grant Taylor <gtaylor@tnetconsulting.net> - 2019-10-16 19:57 -0600
        Re: sudo breach Aragorn <thorongil@telenet.be> - 2019-10-17 07:59 +0200
      Re: sudo breach Aragorn <thorongil@telenet.be> - 2019-10-17 07:57 +0200
    Re:sudo breach melzzzzz <mel@melzzzzz.com> - 2019-10-17 08:26 +0200
      Re: sudo breach Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-17 10:13 +0200
      Re: sudo breach Jasen Betts <jasen@xnet.co.nz> - 2019-10-17 09:40 +0000

Page 2 of 2 — ← Prev page 1 [2]


#59835

FromGrant Taylor <gtaylor@tnetconsulting.net>
Date2019-10-18 09:34 -0600
Message-ID<qocm3k$nr5$2@tncsrv09.home.tnetconsulting.net>
In reply to#59827
On 10/18/19 3:10 AM, Richard Kettlewell wrote:
> In what contexts?

CVE-2019-14287 is for a bug in sudo that incorrectly treats numbers that 
wrap around a 32-bit integer incorrectly.  Thus -1 becomes 0 thus root 
without matching the pattern for root.

I don't know the exact specifics of the code.  That's my understanding 
of the problem.



-- 
Grant. . . .
unix || die

[toc] | [prev] | [next] | [standalone]


#59871

From"Carlos E.R." <robin_listas@es.invalid>
Date2019-10-19 02:37 +0200
Message-ID<rf2q7g-3ks.ln1@Telcontar.valinor>
In reply to#59835
On 18/10/2019 17.34, Grant Taylor wrote:
> On 10/18/19 3:10 AM, Richard Kettlewell wrote:
>> In what contexts?
> 
> CVE-2019-14287 is for a bug in sudo that incorrectly treats numbers that
> wrap around a 32-bit integer incorrectly.  Thus -1 becomes 0 thus root
> without matching the pattern for root.
> 
> I don't know the exact specifics of the code.  That's my understanding
> of the problem.

It would be that, at least parts of the code, did the wrong type
definition, of "long int" instead of "unsigned long int".


-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#59885

FromRichard Kettlewell <invalid@invalid.invalid>
Date2019-10-19 15:25 +0100
Message-ID<87blucyfr4.fsf@LkoBDZeT.terraraq.uk>
In reply to#59871
"Carlos E.R." <robin_listas@es.invalid> writes:
> On 18/10/2019 17.34, Grant Taylor wrote:
>> On 10/18/19 3:10 AM, Richard Kettlewell wrote:
>>> In what contexts?
>> 
>> CVE-2019-14287 is for a bug in sudo that incorrectly treats numbers that
>> wrap around a 32-bit integer incorrectly.  Thus -1 becomes 0 thus root
>> without matching the pattern for root.
>> 
>> I don't know the exact specifics of the code.  That's my understanding
>> of the problem.
>
> It would be that, at least parts of the code, did the wrong type
> definition, of "long int" instead of "unsigned long int".

It’s nothing to do with that.

Why is there so much willingness to speculate without even reading the
advisory???

-- 
https://www.greenend.org.uk/rjk/

[toc] | [prev] | [next] | [standalone]


#59893

FromGrant Taylor <gtaylor@tnetconsulting.net>
Date2019-10-19 11:24 -0600
Message-ID<qofgtb$kmq$1@tncsrv09.home.tnetconsulting.net>
In reply to#59871
On 10/18/19 6:37 PM, Carlos E.R. wrote:
> It would be that, at least parts of the code, did the wrong type 
> definition, of "long int" instead of "unsigned long int".

Yep.  That's the exact type of underlying bug that I'm thinking this is too.



-- 
Grant. . . .
unix || die

[toc] | [prev] | [next] | [standalone]


#59874

FromRichard Kettlewell <invalid@invalid.invalid>
Date2019-10-19 11:06 +0100
Message-ID<87o8ydxd5x.fsf@LkoBDZeT.terraraq.uk>
In reply to#59835
Grant Taylor <gtaylor@tnetconsulting.net> writes:
> On 10/18/19 3:10 AM, Richard Kettlewell wrote:
>> In what contexts?
>
> CVE-2019-14287 is for a bug in sudo that incorrectly treats numbers
> that wrap around a 32-bit integer incorrectly.  Thus -1 becomes 0 thus
> root without matching the pattern for root.

-1 is not somehow treated as 0 and there is no “wrap around” going on.
What is happening is that -1 is a special case to the setresuid call
which means “do nothing”, and sudo doesn’t exclude -1 as a possible
UID.

> I don't know the exact specifics of the code.  That's my understanding
> of the problem.

The advisory is pretty clear and doens’t require any familiarity with
the code.

-- 
https://www.greenend.org.uk/rjk/

[toc] | [prev] | [next] | [standalone]


#59894

FromGrant Taylor <gtaylor@tnetconsulting.net>
Date2019-10-19 11:26 -0600
Message-ID<qofh14$kmq$2@tncsrv09.home.tnetconsulting.net>
In reply to#59874
On 10/19/19 4:06 AM, Richard Kettlewell wrote:
> -1 is not somehow treated as 0 and there is no “wrap around” 
> going on.  What is happening is that -1 is a special case to the 
> setresuid call which means “do nothing”, and sudo doesn’t 
> exclude -1 as a possible UID.

Whatever the underlying cause is, an otherwise invalid user id is being 
inadvertently treated as user id 0 in a way that isn't matched via 
"!root".  So the premise is in line with what I've been thinking, just a 
different underlying mechanism.



-- 
Grant. . . .
unix || die

[toc] | [prev] | [next] | [standalone]


#59755

FromSoviet_Mario <SovietMario@CCCP.MIR>
Date2019-10-16 20:34 +0200
Message-ID<qo7nqt$3ml$1@dont-email.me>
In reply to#59746
On 16/10/2019 15:35, Soviet_Mario wrote:
> 
> I've read an article about an old vulnerability of sudo cmd :
> allegedly, if one used UID = -1 long (or its unsigned 
> equivalent), sudo would bestow root privileges WITHOUT 
> ASKING FOR ANY PWD.
> 
> Is it real or a fake ? I'm a bit skeptical actually
> 

sorry If i reply "to myself" .... I've read all replies, but 
I run my distros as a "mono-user", and don't have 
explicitely set any "sudoers policy".

My fear could have been not that sb (physical person) could 
intrude, but of attack "from outside" (like malware).

If I got it right, this should not be the case, or am I 
wrong ? Malaware should not be allowed to attack the system 
executing SUDO out of a TTY terminal, right ?


-- 
1) Resistere, resistere, resistere.
2) Se tutti pagano le tasse, le tasse le pagano tutti
Soviet_Mario - (aka Gatto_Vizzato)

[toc] | [prev] | [next] | [standalone]


#59765

FromGrant Taylor <gtaylor@tnetconsulting.net>
Date2019-10-16 19:57 -0600
Message-ID<qo8hq6$sub$1@tncsrv09.home.tnetconsulting.net>
In reply to#59755
On 10/16/19 12:34 PM, Soviet_Mario wrote:
> If I got it right, this should not be the case, or am I wrong ? Malaware 
> should not be allowed to attack the system executing SUDO out of a TTY 
> terminal, right ?

Does your (mono) user have permission to run (any command) as root via 
sudo?  If so, then CVE-2019-14287 doesn't do anything more than you 
already have.

Yes, things on your computer can leverage sudo to run commands as your 
user.  If you have a common default sudoers policy then said things can 
already access root via sudo.  Again, CVE-2019-14287 doesn't grant 
anything that doesn't already exist.

It is possible to configure sudo to require a PTY to function.  It's 
also possible to run commands with a PTY.



-- 
Grant. . . .
unix || die

[toc] | [prev] | [next] | [standalone]


#59777

FromAragorn <thorongil@telenet.be>
Date2019-10-17 07:59 +0200
Message-ID<20191017075947.71d6ee07@nx-74205>
In reply to#59765
On 16.10.2019 at 19:57, Grant Taylor scribbled:

> On 10/16/19 12:34 PM, Soviet_Mario wrote:
> > If I got it right, this should not be the case, or am I wrong ?
> > Malaware should not be allowed to attack the system executing SUDO
> > out of a TTY terminal, right ?  
> 
> Does your (mono) user have permission to run (any command) as root
> via sudo?  If so, then CVE-2019-14287 doesn't do anything more than
> you already have.
> 
> Yes, things on your computer can leverage sudo to run commands as
> your user.  If you have a common default sudoers policy then said
> things can already access root via sudo.  Again, CVE-2019-14287
> doesn't grant anything that doesn't already exist.
> 
> It is possible to configure sudo to require a PTY to function.  It's 
> also possible to run commands with a PTY.
 
I always set up sudo to require the target user's password, as opposed
to the invoking user's password. ;)


-- 
With respect,
= Aragorn =

[toc] | [prev] | [next] | [standalone]


#59776

FromAragorn <thorongil@telenet.be>
Date2019-10-17 07:57 +0200
Message-ID<20191017075714.6ec4df25@nx-74205>
In reply to#59755
On 16.10.2019 at 20:34, Soviet_Mario scribbled:

> On 16/10/2019 15:35, Soviet_Mario wrote:
> > 
> > I've read an article about an old vulnerability of sudo cmd :
> > allegedly, if one used UID = -1 long (or its unsigned 
> > equivalent), sudo would bestow root privileges WITHOUT 
> > ASKING FOR ANY PWD.
> > 
> > Is it real or a fake ? I'm a bit skeptical actually   
> 
> sorry If i reply "to myself" .... I've read all replies, but 
> I run my distros as a "mono-user", and don't have 
> explicitely set any "sudoers policy".
> 
> My fear could have been not that sb (physical person) could 
> intrude, but of attack "from outside" (like malware).
> 
> If I got it right, this should not be the case, or am I 
> wrong ? Malaware should not be allowed to attack the system 
> executing SUDO out of a TTY terminal, right ?

In your case, no.  The bug only affected scenarios where someone has
been given sudo access for running processes as any of the other user
accounts on the machine, except as root.  This scenario is already very
rare in and of itself — not inexistent, but rare nevertheless, and
perhaps not even applicable to home desktop users at all.

Nevertheless, the distros have all been patching sudo and have been
pushing the update, so even if it's only an academic problem in your
case, I would still advise you to install the updated sudo package. ;)

ALWAYS heed the security advisories, and ALWAYS keep your system
updated. :)


-- 
With respect,
= Aragorn =

[toc] | [prev] | [next] | [standalone]


#59779

Frommelzzzzz <mel@melzzzzz.com>
Date2019-10-17 08:26 +0200
Message-ID<qo91jc$irv$1@news.albasani.net>
In reply to#59746
Soviet_Mario <SovietMario@CCCP.MIR> Wrote in message:
> I've read an article about an old vulnerability of sudo cmd :allegedly, if one used UID = -1 long (or its unsigned equivalent), sudo would bestow root privileges WITHOUT ASKING FOR ANY PWD.Is it real or a fake ? I'm a bit skeptical actually-- 1) Resistere, resistere, resistere.2) Se tutti pagano le tasse, le tasse le pagano tuttiSoviet_Mario - (aka Gatto_Vizzato)

isn't it that sudo is considered safety breach in unix world? 
-- 
Press any key to continue or any other to quit.... 

[toc] | [prev] | [next] | [standalone]


#59782

FromSoviet_Mario <SovietMario@CCCP.MIR>
Date2019-10-17 10:13 +0200
Message-ID<qo97ql$cuv$1@dont-email.me>
In reply to#59779
On 17/10/2019 08:26, melzzzzz wrote:
> Soviet_Mario <SovietMario@CCCP.MIR> Wrote in message:
>> I've read an article about an old vulnerability of sudo cmd :allegedly, if one used UID = -1 long (or its unsigned equivalent), sudo would bestow root privileges WITHOUT ASKING FOR ANY PWD.Is it real or a fake ? I'm a bit skeptical actually-- 1) Resistere, resistere, resistere.2) Se tutti pagano le tasse, le tasse le pagano tuttiSoviet_Mario - (aka Gatto_Vizzato)
> 
> isn't it that sudo is considered safety breach in unix world?
> 

I don't know

Anyway, I've read some anti-fake-news famous site (ita) and 
got the sensation they were incredibly happy to have found 
an alleged flaw allowing them to defame the linux OS 
(evidently too few controllable for their tastes)

Now reading it was so much emphasized confirms that impression

-- 
1) Resistere, resistere, resistere.
2) Se tutti pagano le tasse, le tasse le pagano tutti
Soviet_Mario - (aka Gatto_Vizzato)

[toc] | [prev] | [next] | [standalone]


#59788

FromJasen Betts <jasen@xnet.co.nz>
Date2019-10-17 09:40 +0000
Message-ID<qo9cus$tic$2@gonzo.revmaps.no-ip.org>
In reply to#59779
On 2019-10-17, melzzzzz <mel@melzzzzz.com> wrote:
> Soviet_Mario <SovietMario@CCCP.MIR> Wrote in message:
>> I've read an article about an old vulnerability of sudo cmd :allegedly, if one used UID = -1 long (or its unsigned equivalent), sudo would bestow root privileges WITHOUT ASKING FOR ANY PWD.Is it real or a fake ? I'm a bit skeptical actually-- 1) Resistere, resistere, resistere.2) Se tutti pagano le tasse, le tasse le pagano tuttiSoviet_Mario - (aka Gatto_Vizzato)
>
> isn't it that sudo is considered safety breach in unix world? 

no more than setuid 

-- 
  When I tried casting out nines I made a hash of it.

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | alt.os.linux


csiph-web