News for hackers. Stuff that matters.
Re:PoC Exploit for Nginx packaging on Debian-based distros [... by rlpb on Wednesday November 16, 2016 @05:56PM (#12972396)
This was fixed in Ubuntu in October: https://www.ubuntu.com/usn/usn-3114-1/
Re:PoC Exploit for Nginx packaging on Debian-based distros [... by merb on Wednesday November 16, 2016 @03:52PM (#12971388)
well I guess for a webserver gaining any privileges is already bad. of course privilege escalation is bad, especially on client machine's, but on servers? well if you are an attacker from the outside and already have a shell your security is done anyway.

of course as said that won't apply to shared hosting (with shell) and client machines.

Re:PoC Exploit for Nginx packaging on Debian-based distros [... by eikenberry on Wednesday November 16, 2016 @04:42PM (#12971855)
I just looked at my current Debian Jessie system and it is not as described. That is /var/log/nginx is not owned by www-data, it is owned by root. It was freshly installed not to long ago and was only configured with my ansible setup. So I'm pretty sure that was the default.
Re:PoC Exploit for Nginx packaging on Debian-based distros [... by eikenberry on Wednesday November 16, 2016 @08:38PM (#12973438)
I think I know why... it was fixed a few weeks ago.

https://www.debian.org/security/2016/dsa-3701

Re:PoC Exploit for Nginx packaging on Debian-based distros [... by w8rbt on Wednesday November 16, 2016 @07:11PM (#12972934)
An LSM such as SELinux, Tomoyo or AppArmor could mitigate this.
Re:PoC Exploit for Nginx packaging on Debian-based distros [... by eikenberry on Wednesday November 16, 2016 @08:42PM (#12973472)
I was just researching these a little while ago and hadn't heard of Tomoyo. Turns out it is included in the mainline kernel and is pretty simple to use.

http://tomoyo.osdn.jp/

On debian you just need to enable it via a kernel param and install tomoyo-tools to get going.

Re:PoC Exploit for Nginx packaging on Debian-based distros [... by w8rbt on Thursday November 17, 2016 @01:23PM (#12979941)
I like Tomoyo better than any of the others. I find it the easiest to configure and reason about.
Re:PoC Exploit for Nginx packaging on Debian-based distros [... by module0000 on Wednesday November 16, 2016 @03:12PM (#12971015)
Well um, this is disturbing. Fun times!