News for hackers. Stuff that matters.
Re:PAM Vulnerability in Ubuntu allowing root access by openfly on Thursday July 08, 2010 @01:32PM (#1498067)
It looks like a user could reset an environment variable, resulting in convincing the PAM module ( running as root ) to write a file somewhere the user should not be able to write. I assume since this could allow root access, it can overwrite something that can be executed as root by another process.
Re:PAM Vulnerability in Ubuntu allowing root access by nuclear_eclipse on Thursday July 08, 2010 @03:26PM (#1498479)
Actually, from the looks of the tweet linked above, it seems to allow a user to chown an arbitrary system file so that it is owned by him, in that case the shadow file. Having access to the shadow file would allow the user to trivially reset the password for every account on the machine, including root. With that access, a user could then do just about anything to the box, and then reset the password/shadow file back to its old value/permissions so that sysadmins would be none the wiser.
Re:PAM Vulnerability in Ubuntu allowing root access by openfly on Thursday July 08, 2010 @03:31PM (#1498494)
Neat. Similar idea but definitely different.
Re:PAM Vulnerability in Ubuntu allowing root access by rufugee on Thursday July 08, 2010 @01:21PM (#1498024)
Anyone care to describe how this can be used to gain root? I'm running Lucid...it'd be interesting to try the hack on myself before updating...
Re:PAM Vulnerability in Ubuntu allowing root access by Kototama on Thursday July 08, 2010 @01:31PM (#1498062)
Re:PAM Vulnerability in Ubuntu allowing root access by qjz on Thursday July 08, 2010 @02:12PM (#1498229)
Works for me on Mint (a Ubuntu derivative). I'm glad I use Slackware on my production machines (no PAM).
Re:PAM Vulnerability in Ubuntu allowing root access by someone_here on Thursday July 08, 2010 @01:37PM (#1498085)
That's incredible.
Re:PAM Vulnerability in Ubuntu allowing root access by barnaby on Thursday July 08, 2010 @01:47PM (#1498126)
Thank you for posting this... I often ignore doing updates because they're just not as interesting as other things I'm doing. This kicked my butt into gear to install the updates.
Re:PAM Vulnerability in Ubuntu allowing root access by xpaulbettsx on Thursday July 08, 2010 @03:24PM (#1498473)
This is important if you're running a website too - this exploit can be used to take over the machine if the hacker finds a way to execute code as the website (i.e. once they used a different exploit to break in, they would be able to escalate from www-data user to root).
Re:PAM Vulnerability in Ubuntu allowing root access by poundy on Thursday July 08, 2010 @03:11PM (#1498440)
I am on Ubuntu 10.04, what do I need to do besides updates and "proper" use to remain safe? I don't have an antivirus or anything of that sort!
Re:PAM Vulnerability in Ubuntu allowing root access by nuclear_eclipse on Thursday July 08, 2010 @03:15PM (#1498447)
Assuming you're still using the default package mirrors, updating is sufficient.
Re:PAM Vulnerability in Ubuntu allowing root access by zokier on Thursday July 08, 2010 @02:06PM (#1498202)
Is this bug restricted to ubuntu or does it affect debian/rhel etc?
Re:PAM Vulnerability in Ubuntu allowing root access by callahad on Thursday July 08, 2010 @02:57PM (#1498394)
I can't seem to replicate on a Debian unstable box, where pam hasn't been updated since April [0], but I don't have an Ubuntu box handy to verify that I'm properly trying to exploit it.

[0]: http://packages.qa.debian.org/p/pam.html

Re:PAM Vulnerability in Ubuntu allowing root access by joeyh on Thursday July 08, 2010 @04:05PM (#1498581)
The security hole was introduced by a Ubuntu-specfic patch to pam. The pam_motd-legal-notice patch was added in July 2009 due to https://bugs.launchpad.net/ubuntu/+source/pam/+bug/399071
Re:PAM Vulnerability in Ubuntu allowing root access by billybob on Thursday July 08, 2010 @03:01PM (#1498411)
Dumb question - what's PAM? To me that means "phone as modem"...
Re:PAM Vulnerability in Ubuntu allowing root access by callahad on Thursday July 08, 2010 @03:04PM (#1498417)
Pluggable Authentication Modules. It's an auth framework used by many Linux distributions.

See: http://en.wikipedia.org/wiki/Pluggable_Authentication_Module... and http://en.wikipedia.org/wiki/Linux_PAM

Re:PAM Vulnerability in Ubuntu allowing root access by xpaulbettsx on Thursday July 08, 2010 @03:20PM (#1498464)
PAM lets you among other things, define new methods of authenticating the user - for example, if I wanted to make my computer log me on whenever it saw my Bluetooth phone in range, I'd write a PAM module
Re:PAM Vulnerability in Ubuntu allowing root access by afhof on Thursday July 08, 2010 @02:52PM (#1498369)
It didn't work on 9.04, which I guess is good.