Skip to content

Use SecureRandom for temp paths instead of predictable timestamps#422

Closed
neidiom wants to merge 1 commit intoitamae-kitchen:masterfrom
neidiom:fix/issue-30-predictable-temppath
Closed

Use SecureRandom for temp paths instead of predictable timestamps#422
neidiom wants to merge 1 commit intoitamae-kitchen:masterfrom
neidiom:fix/issue-30-predictable-temppath

Conversation

@neidiom
Copy link
Contributor

@neidiom neidiom commented Mar 4, 2026

Time.now.to_f.to_s is trivially predictable, enabling symlink race attacks on shared systems. SecureRandom.hex provides unpredictable temp path names.

Time.now.to_f.to_s is trivially predictable, enabling symlink race
attacks on shared systems. SecureRandom.hex provides unpredictable
temp path names.
@unasuke
Copy link
Member

unasuke commented Mar 4, 2026

#430 (comment)

@unasuke unasuke closed this Mar 4, 2026
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.

2 participants