-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed Sensitive Data Exposure at /tmp
directory
#5375
Fixed Sensitive Data Exposure at /tmp
directory
#5375
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine I just would prefer the commits squashed, as the change from the second commit is introduced in the first commit.
639f754
to
2006c74
Compare
Done. Can you please check now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed that we hardcode this dbus.log in more places. See pyanaconda/exception.py
We need to match the file matching the pattern there and include it to the file list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly pyanaconda/modules/boss/installation.py and tests/unit_tests/pyanaconda_tests/modules/boss/test_copy_logs_task.py can't have hardcoded the file name anymore.
How about we use |
Sounds like the easy way to go forward indeed! |
2006c74
to
06bcdcf
Compare
Please have a look. |
This PR fixes a case of sensitive data exposure by using the existing helped method `open_with_perm`. Signed-off-by: fazledyn-or <[email protected]>
06bcdcf
to
9cb6f74
Compare
/kickstart-test --testtype smoke |
Summary
This PR fixes a case of sensitive data exposure by using
mkstemp
method to createdbus.log
file and a customopener
to createanaconda-tb-all.log
.Description
While triaging your project, our bug fixing tool generated the following message(s)-
There were two cases which required individual fixes for each of them. I've updated them as it seemed correct to me. Please have a look and let me know what you think. If required, I can update the PR accordingly.
Previously Found & Fixed
Below is a list of open-source projects where this same bug was found and fixed-
CLA Requirements
This section is only relevant if your project requires contributors to sign a Contributor License Agreement (CLA) for external contributions.
All contributed commits are already automatically signed off.
Sponsorship and Support
This work is done by the security researchers from OpenRefactory and is supported by the Open Source Security Foundation (OpenSSF): Project Alpha-Omega. Alpha-Omega is a project partnering with open source software project maintainers to systematically find new, as-yet-undiscovered vulnerabilities in open source code - and get them fixed – to improve global software supply chain security.
The bug is found by running the Intelligent Code Repair (iCR) tool by OpenRefactory and then manually triaging the results.