xfocus logo xfocus title
首页 焦点原创 安全文摘 安全工具 安全漏洞 焦点项目 焦点论坛 关于我们
English Version

Pine Unix用户名帐户信息泄露漏洞


发布时间:2002-06-13
更新时间:2002-06-13
严重程度:
威胁程度:服务器信息泄露
错误类型:设计错误
利用方式:服务器模式

BUGTRAQ ID:4963

受影响系统
University of Washington Pine 4.21
   + Conectiva Linux ecommerce
   + Conectiva Linux graficas
   + Conectiva Linux 5.0
   + Conectiva Linux 5.1
   + Conectiva Linux 6.0
   + Conectiva Linux 7.0
   + RedHat Linux 6.2 alpha
   + RedHat Linux 6.2 i386
   + RedHat Linux 6.2 sparc
   + RedHat Linux 7.0 alpha
   + RedHat Linux 7.0 i386
   + Slackware Linux 7.0
   + Slackware Linux 7.1
University of Washington Pine 4.30
University of Washington Pine 4.33
   - FreeBSD FreeBSD 4.2
   - FreeBSD FreeBSD 4.3
   - FreeBSD FreeBSD 4.4
   + HP Secure OS software for Linux 1.0
   + RedHat Linux 7.1 alpha
   + RedHat Linux 7.1 i386
   + RedHat Linux 7.1 ia64
   + RedHat Linux 7.2 i386
   + RedHat Linux 7.2 ia64
University of Washington Pine 4.44
详细描述
pine是免费开放源代码邮件用户客户端MUA,可使用在多种操作系统下。

Pine会泄露原始发送者的UNIX用户名,当邮件发送后,pine会在邮件头增加"Sender:"或者"X-X-Sender:"字段形式的信息,这可以允许远程攻击者发现发送邮件用户的用户名,导致信息泄露。

测试代码


解决方案
Roger Marquis <marquis@roble.com>提供如下补丁:

--------------------------------------------------------------------
--- pine/send.c.orig Tue Jan 8 12:59:37 2002
+++ pine/send.c Sat Mar 9 09:17:08 2002
@@ -3989,12 +3989,15 @@

outgoing->return_path = rfc822_cpy_adr(outgoing->from);

+
/*
* Don't ever believe the sender that is there.
* If From doesn't look quite right, generate our own sender.
*/
+ /**** fix u-washington anti-privacy loophole
if(outgoing->sender)
mail_free_address(&outgoing->sender);
+ /****

/*
* If the LHS of the address doesn't match, or the RHS
@@ -4003,6 +4006,7 @@
*
* Don't add a personal_name since the user can change that.
*/
+ /**** fix u-washington anti-privacy loophole
if(!outgoing->from
|| !outgoing->from->mailbox
|| strucmp(outgoing->from->mailbox, ps_global->VAR_USER_ID) != 0
@@ -4014,6 +4018,7 @@
outgoing->sender->mailbox = cpystr(ps_global->VAR_USER_ID);
outgoing->sender->host = cpystr(ps_global->hostname);
}
+ /****

/*----- Message is edited, now decide what to do with it ----*/
if(editor_result & (COMP_SUSPEND | COMP_GOTHUP | COMP_CANCEL)){
--------------------------------------------------------------------

相关信息
Roger Marquis <marquis@roble.com>.
参考:http://online.securityfocus.com/archive/1/276029
相关主页:http://www.washington.edu/pine/