发布日期:2005-12-16
更新日期:2005-12-16
受影响系统:
LibremailLibremail<=1.1.0
描述:
BUGTRAQ ID:
libremail是一套命令行邮件工具。
libremail的pop.c中存在格式串
漏洞,攻击者可能利用此
漏洞在服务器上执行任意指令。
漏洞相关的代码如下:
[...]
voidlire_pop()
{
intposbuf;
//initialisation
posbuf=0;
//lecturejusqu'enfindeligneoudebuffer
do
recv(sockfd,buf_lect+posbuf,1,0);
while(buf_lect[posbuf++]!='\n'&&posbuf<sz_buflect);
//terminerlachainedecaractèreslue(onsupprime\r\n)
if(posbuf>1&&buf_lect[posbuf-2]=='\r')
buf_lect[posbuf-2]='\0';
else
buf_lect[posbuf-1]='\0';
#ifdefDEBUG
putchar('<');
printf(buf_lect);
#endif
}
攻击者可以通过诱骗用户连接到恶意的pop服务器或发送恶意邮件来利用这个
漏洞,导致执行任意代码拒绝服务。但是,只有在非默认的debug模式下才会出现这个
漏洞。
<*来源:MehdiOudad(
)
链接:
*>
建议:
厂商补丁:
Libremail
---------
目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: