Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux > #59746 > unrolled thread
| Started by | Soviet_Mario <SovietMario@CCCP.MIR> |
|---|---|
| First post | 2019-10-16 15:35 +0200 |
| Last post | 2019-10-17 09:40 +0000 |
| Articles | 20 on this page of 33 — 12 participants |
Back to article view | Back to alt.os.linux
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 1 of 2 [1] 2 Next page →
| From | Soviet_Mario <SovietMario@CCCP.MIR> |
|---|---|
| Date | 2019-10-16 15:35 +0200 |
| Subject | sudo breach |
| Message-ID | <qo76bb$lfe$1@dont-email.me> |
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 tutti Soviet_Mario - (aka Gatto_Vizzato)
[toc] | [next] | [standalone]
| From | Aragorn <thorongil@telenet.be> |
|---|---|
| Date | 2019-10-16 16:00 +0200 |
| Message-ID | <20191016160018.15739dcf@nx-74205> |
| In reply to | #59746 |
On 16.10.2019 at 15:35, Soviet_Mario scribbled: > 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 It's real, but it has been patched upstream before the news was made public. Just make sure your system remains fully updated. It was announced at the Manjaro forum the day before yesterday, and a patched version of sudo was already pushed as an update yesterday. -- With respect, = Aragorn =
[toc] | [prev] | [next] | [standalone]
| From | Wildman <best_lay@yahoo.com> |
|---|---|
| Date | 2019-10-16 14:09 -0500 |
| Message-ID | <DMOdnR28soBh9zrAnZ2dnUU7-QGdnZ2d@giganews.com> |
| In reply to | #59748 |
On Wed, 16 Oct 2019 16:00:18 +0200, Aragorn wrote: > On 16.10.2019 at 15:35, Soviet_Mario scribbled: > >> 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 > > It's real, but it has been patched upstream before the news was made > public. Just make sure your system remains fully updated. > > It was announced at the Manjaro forum the day before yesterday, and a > patched version of sudo was already pushed as an update yesterday. Debian also pushed an update yesterday for sudo. -- <Wildman> GNU/Linux user #557453 The cow died so I don't need your bull!
[toc] | [prev] | [next] | [standalone]
| From | Fenris <fenris@invalid.invalid> |
|---|---|
| Date | 2019-10-16 19:51 +0000 |
| Message-ID | <slrn3sdcqqet6e.69u.fenris@norge.freeshell.org> |
| In reply to | #59756 |
On 2019-10-16, Wildman <best_lay@yahoo.com> wrote: > On Wed, 16 Oct 2019 16:00:18 +0200, Aragorn wrote: > >> On 16.10.2019 at 15:35, Soviet_Mario scribbled: >> >>> 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 >> >> It's real, but it has been patched upstream before the news was made >> public. Just make sure your system remains fully updated. >> >> It was announced at the Manjaro forum the day before yesterday, and a >> patched version of sudo was already pushed as an update yesterday. > > Debian also pushed an update yesterday for sudo. So did opensuse today
[toc] | [prev] | [next] | [standalone]
| From | Ned Latham <nedlatham@woden.valhalla.oz> |
|---|---|
| Date | 2019-10-16 15:43 -0500 |
| Message-ID | <slrnqqf07e.ipo.nedlatham@woden.valhalla.oz> |
| In reply to | #59757 |
Fenris wrote: > Wildman wrote: > > Aragorn wrote: > > > Soviet_Mario scribbled: > > > > > > > > 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 > > > > > > It's real, but it has been patched upstream before the news was made > > > public. Just make sure your system remains fully updated. > > > > > > It was announced at the Manjaro forum the day before yesterday, and a > > > patched version of sudo was already pushed as an update yesterday. > > > > Debian also pushed an update yesterday for sudo. > > So did opensuse today And Slackware on 2019/10/14.
[toc] | [prev] | [next] | [standalone]
| From | Aragorn <thorongil@telenet.be> |
|---|---|
| Date | 2019-10-17 08:00 +0200 |
| Message-ID | <20191017080044.1c2e0106@nx-74205> |
| In reply to | #59756 |
On 16.10.2019 at 14:09, Wildman scribbled: > On Wed, 16 Oct 2019 16:00:18 +0200, Aragorn wrote: > > > On 16.10.2019 at 15:35, Soviet_Mario scribbled: > > > >> 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 > > > > It's real, but it has been patched upstream before the news was made > > public. Just make sure your system remains fully updated. > > > > It was announced at the Manjaro forum the day before yesterday, and > > a patched version of sudo was already pushed as an update > > yesterday. > > Debian also pushed an update yesterday for sudo. I think Debian were the first to issue the patch. ;) -- With respect, = Aragorn =
[toc] | [prev] | [next] | [standalone]
| From | Grant Taylor <gtaylor@tnetconsulting.net> |
|---|---|
| Date | 2019-10-16 08:54 -0600 |
| Message-ID | <qo7av5$12i$1@tncsrv09.home.tnetconsulting.net> |
| In reply to | #59746 |
On 10/16/19 7:35 AM, 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
There is a bug. But I think there is a LOT of FUD around it.
My understanding is that the bug is simply a matter of sudo conflating
numeric user IDs -1 or 4294967296 as being the same as numeric user ID 0
for root.
This — what I'm calling a wrapping — bug is really only germane if you
you have a sudoers policy that includes something like the following for
specifying the Run_As user.
ALL, !root
This means that you can specify any / all user IDs to run the command as
/except/ root.
So, the bug in CVE-2019-14287 means that sudo doesn't recognize the
numeric user IDs -1 and 4294967296 as root, thus it doesn't negate them,
ultimately allowing people to run commands as root when they shouldn't
have been.
But all of this is predicated on people using a rule with a Run_As like
the one above. I've never seen a default sudoers policy file use
anything like this. In fact, most default sudoers (on common Linux
distributions) give direct root access, thus there is no need to even
mess with this.
So, yes, CVE-2019-14287 is real. But I think it's exposure ~> risk is
actually quite limited.
--
Grant. . . .
unix || die
[toc] | [prev] | [next] | [standalone]
| From | "David W. Hodgins" <dwhodgins@nomail.afraid.org> |
|---|---|
| Date | 2019-10-16 11:33 -0400 |
| Message-ID | <op.z9reusota3w0dxdave@hodgins.homeip.net> |
| In reply to | #59746 |
On Wed, 16 Oct 2019 09:35:39 -0400, Soviet_Mario <SovietMario@cccp.mir> 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 It's real, but can only be exploited by a user where the sysadmin has modified the sudoers configuration to allow that user to run commands as other users on that system, and not allowing them to run those commands as root. Not a configuration I've ever seen in use. The version with the bugfix should be installed, but it's not something to lose any sleep over, it that hasn't been done. Regards, Dave Hodgins -- Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for email replies.
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-10-16 18:32 +0200 |
| Message-ID | <r9tj7g-4o4.ln1@Telcontar.valinor> |
| In reply to | #59751 |
On 16/10/2019 17.33, David W. Hodgins wrote: > On Wed, 16 Oct 2019 09:35:39 -0400, Soviet_Mario <SovietMario@cccp.mir> > 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 > > It's real, but can only be exploited by a user where the sysadmin has > modified the sudoers configuration to allow that user to run commands > as other users on that system, and not allowing them to run those > commands as root. Not a configuration I've ever seen in use. > > The version with the bugfix should be installed, but it's not something > to lose any sleep over, it that hasn't been done. And there is the problem of someone, not root, creating a user with that uid. -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Grant Taylor <gtaylor@tnetconsulting.net> |
|---|---|
| Date | 2019-10-16 19:53 -0600 |
| Message-ID | <qo8hj8$ojo$1@tncsrv09.home.tnetconsulting.net> |
| In reply to | #59753 |
On 10/16/19 10:32 AM, Carlos E.R. wrote: > And there is the problem of someone, not root, creating a user with > that uid. Please elaborate what you mean. -- Grant. . . . unix || die
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-10-17 12:11 +0200 |
| Message-ID | <marl7g-kre.ln1@Telcontar.valinor> |
| In reply to | #59764 |
On 17/10/2019 03.53, Grant Taylor wrote: > On 10/16/19 10:32 AM, Carlos E.R. wrote: >> And there is the problem of someone, not root, creating a user with >> that uid. > > Please elaborate what you mean. To make use of the "problem" you need a user with uid "-1". How do you create it without being root? cer@Telcontar:~> useradd juan useradd: cannot open /etc/passwd useradd: failed to unlock /etc/passwd cer@Telcontar:~> sudo useradd juan [sudo] password for cer: Sorry, user cer is not allowed to execute '/usr/sbin/useradd juan' as root on Telcontar. cer@Telcontar:~> -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Grant Taylor <gtaylor@tnetconsulting.net> |
|---|---|
| Date | 2019-10-17 22:04 -0600 |
| Message-ID | <qobdlf$7i9$1@tncsrv09.home.tnetconsulting.net> |
| In reply to | #59790 |
On 10/17/19 4:11 AM, Carlos E.R. wrote: > To make use of the "problem" you need a user with uid "-1". I almost guarantee that you already do. -1 effectively translates to 0. Remember that root's UID is 0. > How do you create it without being root? You don't normally create it so much as it exists when the system is installed. It gets copied from install files and used at install time. -- Grant. . . . unix || die
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-10-18 09:39 +0200 |
| Message-ID | <2q6o7g-enr.ln1@Telcontar.valinor> |
| In reply to | #59821 |
On 18/10/2019 06.04, Grant Taylor wrote: > On 10/17/19 4:11 AM, Carlos E.R. wrote: >> To make use of the "problem" you need a user with uid "-1". > > I almost guarantee that you already do. > > -1 effectively translates to 0. Remember that root's UID is 0. > >> How do you create it without being root? > > You don't normally create it so much as it exists when the system is > installed. It gets copied from install files and used at install time. But uid 0 is not a problem. uid 0 is already root and has powers, it is not a breach. -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Joe Beanfish <joebeanfish@nospam.duh> |
|---|---|
| Date | 2019-10-18 13:49 +0000 |
| Message-ID | <qocftp$8jo$1@dont-email.me> |
| In reply to | #59826 |
On Fri, 18 Oct 2019 09:39:14 +0200, Carlos E.R. wrote: > On 18/10/2019 06.04, Grant Taylor wrote: >> On 10/17/19 4:11 AM, Carlos E.R. wrote: >>> To make use of the "problem" you need a user with uid "-1". >> >> I almost guarantee that you already do. >> >> -1 effectively translates to 0. Remember that root's UID is 0. >> >>> How do you create it without being root? >> >> You don't normally create it so much as it exists when the system is >> installed. It gets copied from install files and used at install time. > > But uid 0 is not a problem. uid 0 is already root and has powers, it is > not a breach. Perhaps the most common use of sudo is to get root, so you're largely correct. But if a user is setup to sudo to a non-root user they could get root thru this bug. (that's how I understand it anyhow)
[toc] | [prev] | [next] | [standalone]
| From | Grant Taylor <gtaylor@tnetconsulting.net> |
|---|---|
| Date | 2019-10-18 09:31 -0600 |
| Message-ID | <qoclsr$nr5$1@tncsrv09.home.tnetconsulting.net> |
| In reply to | #59832 |
On 10/18/19 7:49 AM, Joe Beanfish wrote: > Perhaps the most common use of sudo is to get root, so you're largely > correct. But if a user is setup to sudo to a non-root user they could > get root thru this bug. (that's how I understand it anyhow) That's my understanding as well. -- Grant. . . . unix || die
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-10-18 20:01 +0200 |
| Message-ID | <a9bp7g-09b.ln1@Telcontar.valinor> |
| In reply to | #59832 |
On 18/10/2019 15.49, Joe Beanfish wrote: > On Fri, 18 Oct 2019 09:39:14 +0200, Carlos E.R. wrote: > >> On 18/10/2019 06.04, Grant Taylor wrote: >>> On 10/17/19 4:11 AM, Carlos E.R. wrote: >>>> To make use of the "problem" you need a user with uid "-1". >>> >>> I almost guarantee that you already do. >>> >>> -1 effectively translates to 0. Remember that root's UID is 0. >>> >>>> How do you create it without being root? >>> >>> You don't normally create it so much as it exists when the system is >>> installed. It gets copied from install files and used at install time. >> >> But uid 0 is not a problem. uid 0 is already root and has powers, it is >> not a breach. > > Perhaps the most common use of sudo is to get root, so you're largely > correct. But if a user is setup to sudo to a non-root user they could > get root thru this bug. (that's how I understand it anyhow) But my understanding is that you need an existing user (in the passwd file) "-1" to attempt it (or 4294967296). -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-10-18 20:06 +0200 |
| Message-ID | <gibp7g-09b.ln1@Telcontar.valinor> |
| In reply to | #59841 |
On 18/10/2019 20.01, Carlos E.R. wrote: > On 18/10/2019 15.49, Joe Beanfish wrote: >> On Fri, 18 Oct 2019 09:39:14 +0200, Carlos E.R. wrote: >> >>> On 18/10/2019 06.04, Grant Taylor wrote: >>>> On 10/17/19 4:11 AM, Carlos E.R. wrote: >>>>> To make use of the "problem" you need a user with uid "-1". >>>> >>>> I almost guarantee that you already do. >>>> >>>> -1 effectively translates to 0. Remember that root's UID is 0. >>>> >>>>> How do you create it without being root? >>>> >>>> You don't normally create it so much as it exists when the system is >>>> installed. It gets copied from install files and used at install time. >>> >>> But uid 0 is not a problem. uid 0 is already root and has powers, it is >>> not a breach. >> >> Perhaps the most common use of sudo is to get root, so you're largely >> correct. But if a user is setup to sudo to a non-root user they could >> get root thru this bug. (that's how I understand it anyhow) > > But my understanding is that you need an existing user (in the passwd > file) "-1" to attempt it (or 4294967296). > What I have read is: > - CVE-2019-14287: Fixed an issue where a user with sudo privileges that > allowed them to run commands with an arbitrary uid, could run commands > as root, despite being forbidden to do so in sudoers (bsc#1153674). You need a sudo configuration that allows running commands with arbitrary uid. That's rare, I see no justification for that (nor do I know what config that would be). -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Joe Beanfish <joebeanfish@nospam.duh> |
|---|---|
| Date | 2019-10-21 13:39 +0000 |
| Message-ID | <qokced$fh1$1@dont-email.me> |
| In reply to | #59842 |
On Fri, 18 Oct 2019 20:06:40 +0200, Carlos E.R. wrote:
> On 18/10/2019 20.01, Carlos E.R. wrote:
>> On 18/10/2019 15.49, Joe Beanfish wrote:
>>> On Fri, 18 Oct 2019 09:39:14 +0200, Carlos E.R. wrote:
>>>
>>>> On 18/10/2019 06.04, Grant Taylor wrote:
>>>>> On 10/17/19 4:11 AM, Carlos E.R. wrote:
>>>>>> To make use of the "problem" you need a user with uid "-1".
>>>>>
>>>>> I almost guarantee that you already do.
>>>>>
>>>>> -1 effectively translates to 0. Remember that root's UID is 0.
>>>>>
>>>>>> How do you create it without being root?
>>>>>
>>>>> You don't normally create it so much as it exists when the system is
>>>>> installed. It gets copied from install files and used at install
>>>>> time.
>>>>
>>>> But uid 0 is not a problem. uid 0 is already root and has powers, it
>>>> is not a breach.
>>>
>>> Perhaps the most common use of sudo is to get root, so you're largely
>>> correct. But if a user is setup to sudo to a non-root user they could
>>> get root thru this bug. (that's how I understand it anyhow)
>>
>> But my understanding is that you need an existing user (in the passwd
>> file) "-1" to attempt it (or 4294967296).
No, you do NOT need a "-1" or "4294967296" user in passwd, or
anywhere else. Those are magic values that don't get looked up.
>>
>>
> What I have read is:
>> - CVE-2019-14287: Fixed an issue where a user with sudo privileges
>> that
>> allowed them to run commands with an arbitrary uid, could run
>> commands as root, despite being forbidden to do so in sudoers
>> (bsc#1153674).
>
>
> You need a sudo configuration that allows running commands with
> arbitrary uid. That's rare, I see no justification for that (nor do I
> know what config that would be).
Example from the man page:
for the entry:
dgb boulder = (operator) /bin/ls, /bin/kill, /usr/bin/lprm
The user dgb may run /bin/ls, /bin/kill, and /usr/bin/lprm on the
host
boulder—but only as operator. E.g.,
$ sudo -u operator /bin/ls
With this bug, dbg could instead do
$ sudo -u -1 /bin/ls
to run ls as root. ls is *somewhat* harmless, but kill, which is also
allowed in the above rule isn't.
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-10-21 18:22 +0200 |
| Message-ID | <hi218g-cuh.ln1@Telcontar.valinor> |
| In reply to | #59975 |
On 21/10/2019 15.39, Joe Beanfish wrote: > On Fri, 18 Oct 2019 20:06:40 +0200, Carlos E.R. wrote: >> On 18/10/2019 20.01, Carlos E.R. wrote: >>> On 18/10/2019 15.49, Joe Beanfish wrote: >>>> On Fri, 18 Oct 2019 09:39:14 +0200, Carlos E.R. wrote: >>>>> On 18/10/2019 06.04, Grant Taylor wrote: >>>>>> On 10/17/19 4:11 AM, Carlos E.R. wrote: ... > Example from the man page: > > for the entry: > > dgb boulder = (operator) /bin/ls, /bin/kill, /usr/bin/lprm > > The user dgb may run /bin/ls, /bin/kill, and /usr/bin/lprm on the > host > boulder—but only as operator. E.g., > > $ sudo -u operator /bin/ls > > > With this bug, dbg could instead do > $ sudo -u -1 /bin/ls > to run ls as root. ls is *somewhat* harmless, but kill, which is also > allowed in the above rule isn't. Ah, I was not aware of the "-u -1" construct. -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Richard Kettlewell <invalid@invalid.invalid> |
|---|---|
| Date | 2019-10-18 10:10 +0100 |
| Message-ID | <87eezazafg.fsf@LkoBDZeT.terraraq.uk> |
| In reply to | #59821 |
Grant Taylor <gtaylor@tnetconsulting.net> writes: > On 10/17/19 4:11 AM, Carlos E.R. wrote: >> To make use of the "problem" you need a user with uid "-1". > > I almost guarantee that you already do. > > -1 effectively translates to 0. In what contexts? -- https://www.greenend.org.uk/rjk/
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | alt.os.linux
csiph-web