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 856466 Details for
Bug 1051421
CVE-2014-1402 python-jinja2: FileSystemBytecodeCache insecure cache temporary file use
[?]
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]
Fix for CVE-2014-0012 that uses lstat instead of stat
python-jinja2-fix-CVE-2014-0012-v2.patch (text/plain), 882 bytes, created by
Bohuslav "Slavek" Kabrda
on 2014-01-28 10:39:13 UTC
(
hide
)
Description:
Fix for CVE-2014-0012 that uses lstat instead of stat
Filename:
MIME Type:
Creator:
Bohuslav "Slavek" Kabrda
Created:
2014-01-28 10:39:13 UTC
Size:
882 bytes
patch
obsolete
>diff --git a/jinja2/bccache.py b/jinja2/bccache.py >index 09ff845..c31a905 100644 >--- a/jinja2/bccache.py >+++ b/jinja2/bccache.py >@@ -16,6 +16,7 @@ > """ > from os import path, listdir > import os >+import stat > import sys > import errno > import marshal >@@ -230,6 +231,14 @@ class FileSystemBytecodeCache(BytecodeCache): > if e.errno != errno.EEXIST: > raise > >+ if os.lstat(actual_dir).st_uid != os.getuid(): >+ raise RuntimeError('Someone else owns temp directory with your ' >+ 'uid. You need to explicitly provide another.') >+ >+ if stat.S_IMODE(os.lstat(actual_dir).st_mode) != 448: >+ raise RuntimeError('Bad permission flags on temp directory, ' >+ 'shoud be 0700. You need to fix this.') >+ > return actual_dir > > def _get_cache_filename(self, bucket):
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 1051421
:
856133
| 856466