Bug 57322

Summary: CGI.pm in ports/japanese/perl5 has a cross-site scripting vulneravility
Product: Ports & Packages Reporter: IIJIMA Hiromitsu <delmonta>
Component: Individual Port(s)Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description IIJIMA Hiromitsu 2003-09-28 17:50:02 UTC
	A cross-site scripting vulnerability is reported in CGI.pm.
	All of the following are affected:
		- 4.x base system's perl 5.005_03
		- ports/japanese/perl5 (5.005_03 with Japanese patch)
		- ports/lang/perl5 (5.6.1)
		- ports/lang/perl5.8 (5.8.0)

	I sent separate PR for 4.x base system and will send another
	for lang/perl5*.

Fix: 

1. Currently, the only perfect solution is to replace CGI.pm with
	   a newer one.

	2. It is safe to avoid using CGI.pm's start_form() until ports/57302
	   is accepted.

	3. Just installing ports/www/p5-CGI.pm or latest version at CPAN does
	   not solve the problem, since jperl finds the old CGI.pm in standard
	   perl distribution, before searching site_perl folders where newer
	   CGI.pm is installed.
	   This problem will be solved if ports/57302 is accepted.

	4. If you do want to use start_form(), either
		- all local users are urged to make sure by themselves that
		  newer CGI.pm will be used, by using -I command-line option
		  or manipulating @INC array.
		- the administrator may ensure using newer CGI.pm by linking
		  newer one to the old one, namely,
			% su
			# cd /usr/local/lib/perl5/5.00503
			# ln -sf ../site_perl/5.005/CGI.pm .
How-To-Repeat: 	See the exploit code at:
	http://marc.theaimsgroup.com/?l=bugtraq&m=105880349328877&w=2
Comment 1 IIJIMA Hiromitsu 2003-09-28 17:51:05 UTC
Labelled as CAN-2003-0615 and more information is available at:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0615
Comment 2 IIJIMA Hiromitsu 2003-09-28 17:53:07 UTC
[RESENDING BECAUSE I'VE SENT A FOLLOWUP WITH CHARSET=ISO-2022-JP]
Labelled as CAN-2003-0615 and more information is available at:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0615
Comment 3 IIJIMA Hiromitsu 2003-09-28 17:59:49 UTC
Sorry, I have posted with wrong Category labelling.
It should have been labelled as ports/57322.

It is my fault that I failed to change Category: line after
copy-and-paste'ing from bin/57321.
Comment 4 IIJIMA Hiromitsu 2003-09-30 07:23:45 UTC
I have reposted the duplicate as ports/57390 before noticing that this issue
was renumbered to ports/57322.

Ports/57390 was already passed to the maintainer, so solve one of the two,
and close another.
Comment 5 Norikatsu Shigemura freebsd_committer freebsd_triage 2003-09-30 09:50:59 UTC
State Changed
From-To: open->closed

Superseded by ports/57390.