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

Add new rule around loose permission in os module #556

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

ericwb
Copy link
Contributor

@ericwb ericwb commented Aug 15, 2024

Any usage of os.chmod and the like, the mode for the permissions for a file should be checked to ensure the permissions are not considered loose or incorrect. Incorrect in this case is using world write, group write, world execute, group execute. Care should be taken when using those.

Partially-resolves: #217

@ericwb ericwb force-pushed the loose_permissions branch 12 times, most recently from 2f36013 to af77da7 Compare August 26, 2024 02:06
Any usage of os.chmod and the like, the mode for the permissions
for a file should be checked to ensure the permissions are not
considered loose or incorrect. Incorrect in this case is using
world write, group write, world execute, group execute. Care
should be taken when using those.

Partially-resolves: securesauce#217

Signed-off-by: Eric Brown <[email protected]>
@ericwb ericwb force-pushed the loose_permissions branch from af77da7 to 7a00a92 Compare August 26, 2024 02:21
@ericwb ericwb merged commit 56e5590 into securesauce:main Aug 26, 2024
8 checks passed
@ericwb ericwb deleted the loose_permissions branch August 26, 2024 02:33
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.

Add Python rule to check for loose permissions on chmod, lchmod, and pathlib.chmod
1 participant