mirror of
https://github.com/pushbits/server.git
synced 2025-07-31 23:29:08 +02:00
Add scans with Semgrep
This commit is contained in:
parent
5cd3627dc6
commit
23e64b8380
73 changed files with 3006 additions and 3 deletions
|
@ -21,6 +21,7 @@ func IsPasswordPwned(password string) (bool, error) {
|
|||
return true, nil
|
||||
}
|
||||
|
||||
// nosemgrep: tests.semgrep.go.lang.security.audit.crypto.insecure-module-used, tests.semgrep.go.lang.security.audit.crypto.use-of-sha1
|
||||
hash := sha1.Sum([]byte(password)) //#nosec G401 -- False positive, only the first 5 bytes are transmitted.
|
||||
hashStr := fmt.Sprintf("%X", hash)
|
||||
lookup := hashStr[0:5]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue