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

CWE-732: Insecure Directory Permissions #4222

Open
omordyk opened this issue Jan 9, 2025 · 0 comments · May be fixed by #4223
Open

CWE-732: Insecure Directory Permissions #4222

omordyk opened this issue Jan 9, 2025 · 0 comments · May be fixed by #4223
Assignees
Labels

Comments

@omordyk
Copy link
Contributor

omordyk commented Jan 9, 2025

Description:
CWE-732: Insecure Directory Permissions
A sensitive sink functions were discovered. It causes a High severity Insecure Directory Permissions vulnerability.

The permission mode is passed as an integer to the os.MkdirAll function, which can lead to unintended permissions. The issue stems from how the permissions are specified in Go. The resulting permissions may be interpreted incorrectly.
To prevent unintended permissions, you should specify the mode in octal format.

List of problem places:

cluster_install_files.go:154
css.go:340
certificate.go:44
dependency.go:241
policy_file.go:916
resource_manager.go:97
utils.go:402
cluster_install_files.go:444
utils.go:421

https://cwe.mitre.org/data/definitions/732.html

@omordyk omordyk self-assigned this Jan 9, 2025
omordyk added a commit that referenced this issue Jan 9, 2025
@omordyk omordyk linked a pull request Jan 9, 2025 that will close this issue
12 tasks
@omordyk omordyk linked a pull request Jan 9, 2025 that will close this issue
12 tasks
omordyk added a commit that referenced this issue Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant