mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Riley Williams" <Riley@Williams.Name>
To: "Bernhard Kaindl" <bk@suse.de>, <bojan@gajba.net>
Cc: <linux-kernel@vger.kernel.org>,
	"Bernhard Kaindl" <bernhard.kaindl@gmx.de>
Subject: RE: ptrace/kmod local root exploit STILL unresolved in 2.4.21! - MY MISTAKE
Date: Sat, 14 Jun 2003 09:03:30 +0100	[thread overview]
Message-ID: <BKEGKPICNAKILKJKMHCAMEDNEFAA.Riley@Williams.Name> (raw)
In-Reply-To: <Pine.LNX.4.56.0306140027190.20048@wotan.suse.de>

Hi all.

 >>> I've upgraded my Linux box to 2.4.21 because of the security
 >>> reasons. Now I found out that old local exploit for ptrace
 >>> is still working under 2.4.21. Wasn't it fixed in RC1?

 >> I've tested this exploit in wrong way. I've first logged in as 
 >> root, then I made "su nobody" and then exploit worked.

 > Maybe "nobody" isn't a "real" user in your case. If there is some
 > problem with it, you may end up with uid 0 after "su nobody".
 >
 > check the output of the command "id" after the executing the su
 > command, just to be safe in any case!
 >
 > If su really worked correctly, the exploit may not even work if
 > you su (successfully) su'ed from root.

Probably more to the point, the command `su nobody` does NOT log you
in as user nobody. You need the command `su -l nobody` to do that.
Check the manpage for su to verify that without the -l option, you
are still logged in as user root although you are running with the
effective user nobody.

My understanding is that the permissions checks can succeed when
EITHER your login or effective user would succeed in most cases,
but in some cases, it's when your login user succeeds irrespective
of whether your effective user would succeed or not.

Best wishes from Riley.
---
 * Nothing as pretty as a smile, nothing as ugly as a frown.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.488 / Virus Database: 287 - Release Date: 5-Jun-2003


      reply	other threads:[~2003-06-14  7:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-13 22:19 Bojan Pogačar
2003-06-13 22:32 ` Bernhard Kaindl
2003-06-14  8:03   ` Riley Williams [this message]

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=BKEGKPICNAKILKJKMHCAMEDNEFAA.Riley@Williams.Name \
    --to=riley@williams.name \
    --cc=bernhard.kaindl@gmx.de \
    --cc=bk@suse.de \
    --cc=bojan@gajba.net \
    --cc=linux-kernel@vger.kernel.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®