Skip to content

Add test for tmpdir permissions#393

Open
neidiom wants to merge 2 commits intoitamae-kitchen:masterfrom
neidiom:patch-7
Open

Add test for tmpdir permissions#393
neidiom wants to merge 2 commits intoitamae-kitchen:masterfrom
neidiom:patch-7

Conversation

@neidiom
Copy link
Contributor

@neidiom neidiom commented Mar 1, 2026

Add a spec to ensure tmpdir is not world-writable.

Problem: The temporary directory used during recipe execution is set to world-readable, world-writable, and world-executable (777). Any user on the system can list directory contents, read temp file names, create decoy files, or delete files in progress. While individual temp files are set to 0600, the directory permissions still allow enumeration and symlink attacks. This is especially concerning because Itamae typically runs as root.

neidiom added 2 commits March 1, 2026 12:46
Add a spec to ensure tmpdir is not world-writable.
@neidiom
Copy link
Contributor Author

neidiom commented Mar 1, 2026

@unasuke please review.

@unasuke
Copy link
Member

unasuke commented Mar 1, 2026

@neidiom Fix failed integration tests please 😌

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