ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Dmitry Vodennikov <vod@elecom.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Fwd: Linux Kernel 2.6.x PRCTL Core Dump Handling -	Local r00t Exploit ( BID 18874 / CVE-2006-2451 )
Date: Thu, 20 Jul 2006 03:11:37 -0700
Message-ID: <44BF56D9.2030809@elecom.ru> (raw)
In-Reply-To: <20060713095034.GA23205@immo.ru>

Alexey I. Froloff пишет:
> * Michael Shigorin <mike@> [060713 13:45]:
>> Напоминаю тем, у кого linux-2.6 на серверах, что в 2.6.13 до
>> 2.6.17.4 или 2.6.16.24 может быть незаткнут local root и 
>> эксплойт уже опубликован.
> 
>>         chdir("/etc/cron.d");
> Вот тут оно благополучно хватает -EPERM и отваливаеццо.

Видимо у кого как. У меня на compact шелл получается (при условии 
умолчательных опций монтирования /tmp), по почему-то не рутовый.
---------------------------------------------------
[vod@rs tmp]$ ./rs_prctl_kernel
Linux Kernel 2.6.x PRCTL Core Dump Handling - Local r00t
By: dreyer & RoMaNSoFt
[ 10.Jul.2006 ]

[*] Creating Cron entry
[*] Sleeping for aprox. one minute (** please wait **)
[*] Running shell (remember to remove /tmp/sh when finished) ...

sh-2.05b$ id
uid=500(vod) gid=500(vod) 
groups=10(wheel),19(proc),22(cdrom),36(camera),37(scanner),71(floppy),80(cdwriter),81(audio),83(radio),106(xgrp),500(vod)

sh-2.05b$ less /var/log/messages
/var/log/messages: Permission denied

sh-2.05b$ uname -r
2.6.12-vs26-smp-alt10

sh-2.05b$ ls -ld /etc/cron*
drwxr-x---  2 root root    4096 Jul 20 15:53 /etc/cron.d
drwxr-x---  2 root root    4096 Jul 11 14:45 /etc/cron.daily
-rw-r-----  1 root crontab    0 Dec 19  2004 /etc/cron.deny
drwxr-x---  2 root root    4096 Jul 11 05:31 /etc/cron.hourly
drwxr-x---  2 root root    4096 Jul 11 02:51 /etc/cron.monthly
drwxr-x---  2 root root    4096 Jul 11 14:44 /etc/cron.weekly
-rw-------  1 root root     184 Apr 25  2003 /etc/crontab
-rw-r--r--  1 root root     167 Apr 26  2003 /etc/crontab.template

---------------------------------------------------


      parent reply	other threads:[~2006-07-20 10:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-13  9:44 Michael Shigorin
2006-07-13  9:50 ` Alexey I. Froloff
2006-07-13 10:48   ` Dmitry V. Levin
2006-07-13 21:01     ` Michael Shigorin
2006-07-13 21:12       ` Dmitry V. Levin
2006-07-13 21:27         ` Michael Shigorin
2006-07-13 21:53           ` Sergey V Kovalyov
2006-07-13 21:57             ` Sergey V Kovalyov
2006-07-14  5:55           ` Alexey I. Froloff
2006-07-13 11:03   ` Vadim Gusev
2006-07-20 10:11   ` Dmitry Vodennikov [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=44BF56D9.2030809@elecom.ru \
    --to=vod@elecom.ru \
    --cc=sysadmins@lists.altlinux.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

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git