Actions
Task #7952
open
VJ
VJ
tracking: CWE-732: File created without restricting permissions
Task #7952:
tracking: CWE-732: File created without restricting permissions
Effort:
Difficulty:
Label:
Description
We generally use a simple fopen pattern when creating files. This is considered to be unsafe as it might create files with permissions that too broad.
There is a workaround, which is to set the umask config option the yaml. This should probably be enabled by default.
Github/CodeQL suggests a more explicit pattern of using open with explicit permission flags followed by fdopen to get a FILE pointer. This is fairly easy for C, but needs a bit more thought for Rust as there we'd need to add Unix specific logic.
VJ Updated by Victor Julien 6 months ago
- Subtask #7953 added
VJ Updated by Victor Julien 6 months ago
- Subtask #7955 added
VJ Updated by Victor Julien 6 months ago
- Subtask #7956 added
VJ Updated by Victor Julien 6 months ago
- Subtask #7957 added
VJ Updated by Victor Julien 5 months ago
- Status changed from New to Assigned
Actions