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

Merge Develop into Release #3303

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion generic/secrets/security/detected-etc-shadow.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
rules:
- id: detected-etc-shadow
pattern-regex: root:[x!*]*:[0-9]*:[0-9]*
patterns:
- pattern-regex: ^(\s*)(?P<ROOT>root:[x!*]*:[0-9]*:[0-9]*)
- focus-metavariable: $ROOT
languages: [regex]
message: linux shadow file detected
severity: ERROR
Expand Down
5 changes: 1 addition & 4 deletions go/lang/security/decompression_bomb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ rules:
message: >-
Detected a possible denial-of-service via a zip bomb attack. By limiting the max
bytes read, you can mitigate this attack.
`io.CopyN()` can specify a size. Refer to https://bomb.codes/ to learn more about
this attack and other ways to mitigate
it.
`io.CopyN()` can specify a size.
severity: WARNING
languages: [go]
patterns:
Expand Down Expand Up @@ -51,7 +49,6 @@ rules:
- 'CWE-400: Uncontrolled Resource Consumption'
source-rule-url: https://github.com/securego/gosec
references:
- https://bomb.codes/
- https://golang.org/pkg/io/#CopyN
- https://github.com/securego/gosec/blob/master/rules/decompression-bomb.go
category: security
Expand Down
Loading