sobota, 11 luty 2012 
Start arrow Security Advisory arrow NetBSD arrow NetBSD-SA2005-013
Menu BSD4u
FreeBSD
OpenBSD
NetBSD
Dla *BSD
FAQ BSD4u
Forum BSDGuru.org
Security Advisory
Licencje
Images BSD
Menu ogólne
Start
Aktualności
Download
Sondy
Szukaj
Książki
About BSD4u
Info
Team BSD4u
Regulamin
Kanał #BSD4u
Kontakt
Sondy
Co sądzisz o naszym nowym Projekcie, i jak oceniasz zmianę koncepcji Projektu?
 
Popularne
SQUID - najpopularni...
Kompilacja i konfigu...
Samba - serwer plikó...
Neostrada+ i modem ...
Praktyczne IPFW
Upgrade systemu
NATowanie czyli jak ...
Apache (konfiguracja...
MRTG - statystyki ru...
Postfix - bezpieczny...
CVSup - pomocny podc...
Postfix z autoryzacj...
Neostrada na modemie...
System Portów (Kolek...
Instalacja FreeBSD 5...
Top Download
File icon Postfix - "Krok po kroku" v1.18107
File icon Postfix - "Krok po kroku" v1.06803
File icon PPTPd - "Prosty i szybki VPN" v1.0b6420
File icon sdi.sh3887
File icon uEagle 1.0p12975
File icon named.sh2945
File icon uEagle 0.99b2869
File icon cs.sh2834
File icon uEagle 1.02759
File icon uEagle 1.12568
Ostatnie komentarze
jeden raz na konto
Dodał: arti
Dnia: 2011-06-15 15:10:56
Re: Kod rabatowy na...
Dodał: cooler
Dnia: 2011-06-15 13:59:07
JAK NIE DZIALA opti...
Dodał: wierzba86
Dnia: 2010-02-25 21:37:29
JAK NIE DZIALA opti...
Dodał: wierzba86
Dnia: 2010-02-25 21:36:09
RE: transparent a v...
Dodał: Trash
Dnia: 2009-10-06 15:45:18
transparent a virus...
Dodał: grzywka18
Dnia: 2008-05-13 11:19:58
NetBSD-SA2005-013 Drukuj E-mail
Oceny: / 1
KiepskiBardzo dobry 
czwartek, 03 listopad 2005 - Napisał: Artur Kulda (2456 odsłon)
Topic: ptrace() permissions after S[UG]ID and exec()
Version: NetBSD-current: source prior to October 21, 2005
NetBSD 2.1: affected
NetBSD 2.0.3: affected
NetBSD 2.0: affected
NetBSD 1.6: affected
Severity: privilege escalation and injection of code
Fixed: NetBSD-current: October 31, 2005
NetBSD-3 branch: October 31, 2005
NetBSD-2.1 branch: October 31, 2005 (2.1.1 will include the fix)
NetBSD-2.0 branch: October 31, 2005 (2.0.4 will include the fix)
NetBSD-2 branch: October 31, 2005
NetBSD-1.6 branch: October 31, 2005

Abstract

Processes running with alternate privileges gained from setuid and
setgid executables are prevented from debugger attachment by their
original owner (via ptrace). However, if these processes exec'd
without resetting their real credentials, the replacement process
could be attached to and tampered with.

Technical Details

A process flag P_SUGID is used to track processes that have gained
privileges via the set-id execution bits. This flag is checked by
ptrace when deciding whether to allow debugger attachment.

When a process called exec(), this flag was being cleared, even if the
real and effective credentials were still different. This would defeat
the ptrace check for the replacement process image, and allow
inappropriate attachment by processes owned by the real uid. This
attachment could then be used to alter the behaviour of the process,
and make additional syscalls under the effective uid.

Solutions and Workarounds

A limited workaround may be to mount filesystems with the nosuid
option, or remove setuid bits or general user access from setuid
programs. This is likely to affect required functionality.

For all NetBSD versions, you need to obtain fixed kernel sources,
rebuild and install the new kernel, and reboot the system.

The fixed source may be obtained from the NetBSD CVS repository.

The following instructions briefly summarise how to upgrade your
kernel. In these instructions, replace:

ARCH with your architecture (from uname -m), and
KERNCONF with the name of your kernel configuration file.

To update from CVS, re-build, and re-install the kernel:

# cd src
# cvs update -d -P sys/kern/kern_exec.c
# ./build.sh kernel=KERNCONF
# mv /netbsd /netbsd.old
# cp sys/arch/ARCH/compile/obj/KERNCONF/netbsd /netbsd
# shutdown -r now

For more information on how to do this, see:

http://www.netbsd.org/guide/en/chap-kernel.html

Thanks To

Tavis Ormandy for reporting the bug and Christos Zoulas for the fix.

Revision History

2005-11-01 Initial release

More Information
 

Advisories may be updated as new information becomes available.
The most recent version of this advisory (PGP signed) can be found at
ftp://ftp.NetBSD.org/pub/NetBSD/security/advisories/NetBSD-SA2005-013.txt.asc

Information about NetBSD and NetBSD security can be found at
http://www.NetBSD.org/  and http://www.NetBSD.org/Security/ .

Copyright 2005, The NetBSD Foundation, Inc. All Rights Reserved.
Redistribution permitted only in full, unmodified form.


dalej »
Ciekawostki
Chcesz zobaczyć ile wirtualnej pamięci zużywasz? Wpisz "swapinfo" by zobaczyć informacje o wykorzystaniu swoich partycji swap.
Pobierz
FreeBSD
OpenBSD
NetBSD
DragonFlyBSD
PC-BSD
FreeSBIE LiveCD
4.4BSD Lite
Domeny
Google

Google


Newsletter
Zapisz się na nasz newsletter, jeżeli chcesz być na bieżąco informowany o aktualnościach..




Licznik odwiedzin
Odwiedziło już nas
3815396
Internautów od lutego 2003

Korzystamy ze statysyk