Description-Behavior Mismatch
Medium
- Confidence
- 99% confidence
- Finding
- The script calls os.umask(0) inside print(), which does not merely display the current umask: it sets the process umask to 0 and returns the previous value. This leaves the current process and any child operations creating files with maximally permissive defaults, which can cause newly created files or directories to become overly accessible.
