Bug 140227 - Potential insecurity in CGI.pm
Summary: Potential insecurity in CGI.pm
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: perl
Version: 3.0
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Chip Turner
QA Contact: David Lawrence
URL:
Whiteboard: impact=low,public=20040127
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-21 12:42 UTC by Andreas Thienemann
Modified: 2007-11-30 22:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-02-07 16:42:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
better way of obtaining $script_name (458 bytes, patch)
2004-11-21 12:44 UTC, Andreas Thienemann
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2005:105 0 high SHIPPED_LIVE Important: perl security update 2005-02-07 05:00:00 UTC

Description Andreas Thienemann 2004-11-21 12:42:28 UTC
During a security audit of one of our perl-based webapplications we
noticed that there is a potential security problem in the CGI.pm
version included in RHEL3. Later issues of perl seems to have this fixed.

The problem lies in the way $script_name is obtained:
The s/some_client_provided_data/some_other_client_provided_data/ call
is a potential issue as the client can provide complicated regular
expressions which eat lots-o-ram [tm].
This could lead to a denial-of-service issue.

A patch for the RPM is attached.

Version-Release number of selected component (if applicable):
5.8.0-88.7

Comment 1 Andreas Thienemann 2004-11-21 12:44:07 UTC
Created attachment 107134 [details]
better way of obtaining $script_name

This is the silent fix which seems to have been incorporated into recent perl
releases.

Comment 2 Mark J. Cox 2005-02-07 15:55:44 UTC
This requires a valid regexp that will (to some extent) self match
after decoding, therefore this isn't going to be a siginificant DoS on
any reasonable system (there would be many better ways of doing a
DoS).  We're fixing it in an update due shortly however.

Comment 3 Josh Bressers 2005-02-07 16:42:40 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2005-105.html



Note You need to log in before you can comment on or make changes to this bug.