Date: Mon, 29 Sep 2003 01:44:46 +0900 (JST) From: IIJIMA Hiromitsu <delmonta@ht.sakura.ne.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/57322: CGI.pm in ports/japanese/perl5 has a cross-site scripting vulneravility Message-ID: <20030928164446.F3C54A97F@sodans.usata.org> Resent-Message-ID: <200309281650.h8SGo3bI044828@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 57322 >Category: bin >Synopsis: CGI.pm in ports/japanese/perl5 has a cross-site scripting vulneravility >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 28 09:50:02 PDT 2003 >Closed-Date: >Last-Modified: >Originator: IIJIMA Hiromitsu >Release: FreeBSD 4.7-RELEASE-p3 i386 >Organization: DENNOU GEDOU GAKKAI, N. D. D. http://www.dennougedougakkai-ndd.org >Environment: System: FreeBSD sodans.usata.org 4.7-RELEASE-p3 FreeBSD 4.7-RELEASE-p3 #0: Wed Jan 22 14:50:19 JST 2003 root@www.my.domain:/usr/src/sys/compile/RENTALv6 i386 Userland is upgraded to -p16, while the kernel is still -p3. >Description: 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*. >How-To-Repeat: See the exploit code at: http://marc.theaimsgroup.com/?l=bugtraq&m=105880349328877&w=2 >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 . >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030928164446.F3C54A97F>