Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 676781 Details for
Bug 884354
CVE-2012-6329 perl: possible arbitrary code execution via Locale::Maketext
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Upstream fix
0001-Fix-misparsing-of-maketext-strings.patch (text/plain), 3.37 KB, created by
Petr Pisar
on 2013-01-11 10:34:09 UTC
(
hide
)
Description:
Upstream fix
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2013-01-11 10:34:09 UTC
Size:
3.37 KB
patch
obsolete
>From 1735f6f53ca19f99c6e9e39496c486af323ba6a8 Mon Sep 17 00:00:00 2001 >From: Brian Carlson <brian.carlson@cpanel.net> >Date: Wed, 28 Nov 2012 08:54:33 -0500 >Subject: [PATCH] Fix misparsing of maketext strings. > >Case 61251: This commit fixes a misparse of maketext strings that could >lead to arbitrary code execution. Basically, maketext was compiling >bracket notation into functions, but neglected to escape backslashes >inside the content or die on fully-qualified method names when >generating the code. This change escapes all such backslashes and dies >when a method name with a colon or apostrophe is specified. >--- > AUTHORS | 1 + > dist/Locale-Maketext/lib/Locale/Maketext.pm | 24 ++++++++---------------- > 2 files changed, 9 insertions(+), 16 deletions(-) > >diff --git a/AUTHORS b/AUTHORS >index 70734b0..009dea0 100644 >--- a/AUTHORS >+++ b/AUTHORS >@@ -154,6 +154,7 @@ Breno G. de Oliveira <garu@cpan.org> > Brent Dax <brentdax@cpan.org> > Brooks D Boyd > Brian Callaghan <callagh@itginc.com> >+Brian Carlson <brian.carlson@cpanel.net> > Brian Clarke <clarke@appliedmeta.com> > brian d foy <brian.d.foy@gmail.com> > Brian Fraser <fraserbn@gmail.com> >diff --git a/dist/Locale-Maketext/lib/Locale/Maketext.pm b/dist/Locale-Maketext/lib/Locale/Maketext.pm >index 4822027..63e5fba 100644 >--- a/dist/Locale-Maketext/lib/Locale/Maketext.pm >+++ b/dist/Locale-Maketext/lib/Locale/Maketext.pm >@@ -625,21 +625,9 @@ sub _compile { > # 0-length method name means to just interpolate: > push @code, ' ('; > } >- elsif($m =~ /^\w+(?:\:\:\w+)*$/s >- and $m !~ m/(?:^|\:)\d/s >- # exclude starting a (sub)package or symbol with a digit >+ elsif($m =~ /^\w+$/s >+ # exclude anything fancy, especially fully-qualified module names > ) { >- # Yes, it even supports the demented (and undocumented?) >- # $obj->Foo::bar(...) syntax. >- $target->_die_pointing( >- $string_to_compile, q{Can't use "SUPER::" in a bracket-group method}, >- 2 + length($c[-1]) >- ) >- if $m =~ m/^SUPER::/s; >- # Because for SUPER:: to work, we'd have to compile this into >- # the right package, and that seems just not worth the bother, >- # unless someone convinces me otherwise. >- > push @code, ' $_[0]->' . $m . '('; > } > else { >@@ -693,7 +681,9 @@ sub _compile { > elsif(substr($1,0,1) ne '~') { > # it's stuff not containing "~" or "[" or "]" > # i.e., a literal blob >- $c[-1] .= $1; >+ my $text = $1; >+ $text =~ s/\\/\\\\/g; >+ $c[-1] .= $text; > > } > elsif($1 eq '~~') { # "~~" >@@ -731,7 +721,9 @@ sub _compile { > else { > # It's a "~X" where X is not a special character. > # Consider it a literal ~ and X. >- $c[-1] .= $1; >+ my $text = $1; >+ $text =~ s/\\/\\\\/g; >+ $c[-1] .= $text; > } > } > } >-- >1.7.11.7 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 884354
:
658787
| 676781 |
704920
|
705056
|
705349
|
705351