Bug 692844 - lc launders tainted flag
lc launders tainted flag
Status: CLOSED DUPLICATE of bug 692898
Product: Fedora
Classification: Fedora
Component: perl (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Marcela Mašláňová
Fedora Extras Quality Assurance
: Regression, Security
Depends On:
  Show dependency treegraph
Reported: 2011-04-01 06:54 EDT by Petr Pisar
Modified: 2011-04-01 10:42 EDT (History)
10 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 692862 (view as bug list)
Last Closed: 2011-04-01 10:42:06 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
CPAN 87336 None None None Never

  None (edit)
Description Petr Pisar 2011-04-01 06:54:36 EDT
perlsec manual states:

> Laundering data using regular expression is the _only_ mechanism for
> untainting dirty data, [...]

However perl-5.12.3-142.fc14.x86_64 clears tainted flag even after lc() and uc() perl functions:

$ perl -Te 'use Scalar::Util qw(tainted); printf("%d %d %d\n", tainted($0), tainted(lc($0)), tainted(uc($0)));'
1 0 0

This has been recognized by upstream as a security regression and fixed in forthcoming perl-5.14 (RT #87336).
Comment 1 Jan Lieskovsky 2011-04-01 10:42:06 EDT

*** This bug has been marked as a duplicate of bug 692898 ***

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