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

Issue open-horizon#4222 - CWE-732: Insecure Directory Permissions vul… #160

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

LiilyZhang
Copy link
Contributor

…nerabilities

Copy link
Member

@johnwalicki johnwalicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Octal notation? Seems obscure. Especially for security permission settings. 0o777 is 0511
Would it be better to use 0511 or a comment ?

chmod 511 is a+rwx,u-w,g-rw,o-rw
sets permissions so that,
(U)ser / owner can read, can't write and can
execute.
(G)roup can't read, can't write and can execute.
(O)thers can't read, can't write and can execute

@johnwalicki
Copy link
Member

https://chmodcommand.com/chmod-511/

Is that really the permissions you want for this directory?

@omordyk
Copy link

omordyk commented Feb 2, 2025

@johnwalicki these changes did not change anything.
0777: In Go, numbers starting with 0 are interpreted as octal (base-8) by default.
0o777: This is a more explicit octal notation, introduced in Go 1.13.

@LiilyZhang LiilyZhang merged commit 68364e6 into open-horizon:master Feb 3, 2025
2 checks passed
@LiilyZhang LiilyZhang deleted the zhangl/Issue4222 branch February 3, 2025 20:37
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.

4 participants