Skip to content
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

Re-submit PR #40 to eliminate use of state/node files in temp directory #44

Merged
merged 5 commits into from
Mar 17, 2024

Conversation

bleargh45
Copy link
Owner

A re-submission of #40, which eliminated the use of state/node files in a predictable location, to address the vulnerability outlined by CVE-2013-4184.

Since #40 was first submitted, repo ownership had been transferred, and as a result I had to blow away my forked copy of the repository. Thus the need for a re-submission, as the original PR was closed when the repository was destroyed.

CVE-2013-4184 discusses the insecure usage of `/tmp/.UUID_STATE` and
`/tmp/.UUID_NODEID`, due to a potential symlink attack.

Unfortunately, this code is old enough that none of the current
maintainers fully understand the history of the code, nor do we have
sufficient context from the commit history.

Rather than attempting to address this vulnerability by changing the
location of where these files are written, or by adding additional logic
to ensure that they are handled securely, this patch addresses the issue
by eliminating the need for these two files completely.
Now that we are no longer saving any context (of either the Node, or the
State), we no longer need to maintain a "when should we do the next
save?" field in the UUID context.
We no longer save any State/Node files to disk, so we do not need to
keep track of what the requested umask was for those files.
We no longer save State/Node files out to disk, and so we no longer
require the option to specify what directory those files should be
recorded or saved to.
@bleargh45 bleargh45 merged commit 6ad7806 into master Mar 17, 2024
32 checks passed
@bleargh45 bleargh45 deleted the bleargh45.eliminate-files-in-tmp branch March 17, 2024 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant