Bug 1348410
Summary: | Audit for arbitrary code execution vulnerabilities due to insecure loading of Python module(s) from CWD | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dhiru Kholia <dkholia> |
Component: | distribution | Assignee: | Václav Pavlín <vpavlin> |
Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | cstratak, dennis, kevin, mhroncok, rdieter |
Target Milestone: | --- | Keywords: | FutureFeature, Tracking |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | Type: | Bug | |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1347124, 1347130, 1347177, 1347180, 1348455, 1348460, 1348463, 1348469, 1348470, 1348473, 1348474, 1348480, 1348505, 1348507, 1348514 | ||
Bug Blocks: |
Description
Dhiru Kholia
2016-06-21 06:45:44 UTC
This audit is motivated by https://bugzilla.redhat.com/show_bug.cgi?id=995060 This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. So any general suggestions or advice on how to rectify this issue (in tracked packages)? (It almost seems like something that could be better fixed in python itself) This message is a reminder that Fedora 25 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '25'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 25 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. > So any general suggestions or advice on how to rectify this issue (in tracked packages)?
I missed your message earlier. I don't have any general tips at the moment.
Something like https://wiki.gentoo.org/wiki/Project:Perl/Dot-In-INC-Removal would be nice. For Python 3, using the -I flag in shebang does the trick: $ cat > foo.py print('boom!') $ cat > script #!/usr/bin/python3 import foo print('imported') $ chmod +x script $ ./script boom! imported $ sed -i 's/python3/python3 -I/' script $ cat ./script #!/usr/bin/python3 -I import foo print('imported') $ ./script Traceback (most recent call last): File "./script", line 2, in <module> import foo ModuleNotFoundError: No module named 'foo' There seems to be 1 bug left blocking this... in initial-setup? Perhaps someone could fix that and we can close this out? Note that a) 8 of the bugs were closed as EOL. So in fact, likely never actually fixed. b) The last remaining open bug is for RHEL 7, so likely not going to be fixed either. I propose we close this tracker as WONTFIX, unless somebody actually wants to drive this. |