gosec/rules
Cosmin Cojocar 0d332a1027 Add a new rule which detects when a file is created with os.Create but the configured permissions are less than 0666
It seems that the os.Create will create by default a file with 0666 permissions.

This should be detected when the configured permissions are less than 0666. By default will not detect this case
unless the more restrictive mode is configured.

Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
2023-09-25 13:24:34 +02:00
..
archive.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
bind.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
blocklist.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
decompression-bomb.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
directory-traversal.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
errors.go Extract the issue in its own package 2023-02-16 09:45:28 +01:00
fileperms.go Add a new rule which detects when a file is created with os.Create but the configured permissions are less than 0666 2023-09-25 13:24:34 +02:00
fileperms_test.go fileperms: bitwise permission comparison (#883) 2022-10-20 08:48:40 +02:00
hardcoded_credentials.go Fix hardcoded_credentials rule to only match on more specific patterns (#1009) 2023-09-05 18:00:02 +02:00
http_serve.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
implicit_aliasing.go Ignore struct pointers in G601 (#1003) 2023-08-18 17:05:17 +02:00
integer_overflow.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
math_big_rat.go Extract the issue in its own package 2023-02-16 09:45:28 +01:00
pprof.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
rand.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
readfile.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
rsa.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
rulelist.go Add a new rule which detects when a file is created with os.Create but the configured permissions are less than 0666 2023-09-25 13:24:34 +02:00
rules_suite_test.go Update to ginkgo v2 (#753) 2022-01-03 18:11:35 +01:00
rules_test.go Feature: G602 Slice Bound Checking (#973) 2023-06-21 09:56:36 +02:00
slowloris.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
sql.go fix: correctly identify infixed concats as potential SQL injections (#987) 2023-07-25 17:13:07 +02:00
ssh.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
ssrf.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
subproc.go Fix typos in comments, vars and tests 2023-05-30 08:26:41 +02:00
tempfiles.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
templates.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
tls.go Extract the issue in its own package 2023-02-16 09:45:28 +01:00
tls_config.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
unsafe.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
weakcrypto.go Fix some linting warnings 2023-03-20 10:25:45 +01:00