@@ -60,7 +60,7 @@ func golangRules() []Rule {
6060 },
6161 {
6262 ID : "GO-007" , Language : config .LangGo , Severity : config .SeverityMedium ,
63- Title : "Unsafe use of math/rand for security" ,
63+ Title : "Unsafe use of math/rand for security" ,
6464 Description : "math/rand is not cryptographically secure and must not be used to generate " +
6565 "tokens, keys, salts, nonces, or other security-sensitive values." ,
6666 // Only fire when a security-sensitive identifier appears on the same
@@ -202,7 +202,7 @@ func kotlinRules() []Rule {
202202 // how you pin certs) and even matched imports and class names like
203203 // CustomSSLSocketFactory — ~100% false positives on any TLS code.
204204 Pattern : mustCompile (`(?i)(trustAllCerts|ALLOW_ALL_HOSTNAME_VERIFIER|NoopHostnameVerifier|HostnameVerifier\s*\{[^}]*->\s*true|fun\s+verify\b[^=\n]*=\s*true)` ),
205- OWASP : config .OWASP_A04_CryptographicFailures , CWE : "CWE-295" , CVSS : 7.4 ,
205+ OWASP : config .OWASP_A04_CryptographicFailures , CWE : "CWE-295" , CVSS : 7.4 ,
206206 References : []string {"https://cwe.mitre.org/data/definitions/295.html" },
207207 Remediation : "Use the default OkHttpClient which validates SSL certificates. Implement certificate pinning for sensitive apps." ,
208208 },
@@ -256,7 +256,7 @@ func csharpRules() []Rule {
256256 // named BinaryFormatter (e.g. `public byte[] BinaryFormatter()` in
257257 // benchmarks), which are not uses of the dangerous type.
258258 Pattern : mustCompile (`new\s+BinaryFormatter\s*\(` ),
259- OWASP : config .OWASP_A08_SoftwareDataIntegrityFailures , CWE : "CWE-502" , CVSS : 9.8 ,
259+ OWASP : config .OWASP_A08_SoftwareDataIntegrityFailures , CWE : "CWE-502" , CVSS : 9.8 ,
260260 References : []string {"https://docs.microsoft.com/en-us/dotnet/standard/serialization/binaryformatter-security-guide" },
261261 Remediation : "BinaryFormatter is deprecated. Use System.Text.Json, MessagePack, or Protobuf instead." ,
262262 },
@@ -432,8 +432,8 @@ func htmlRules() []Rule {
432432 Pattern : mustCompile (`(?i)<html` ),
433433 RequiredPattern : mustCompile (`(?i)Content-Security-Policy` ),
434434 OWASP : config .OWASP_A02_SecurityMisconfiguration , CWE : "CWE-693" , CVSS : 3.1 ,
435- References : []string {"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP" },
436- Remediation : "Add a CSP via meta tag (<meta http-equiv=\" Content-Security-Policy\" ...>) or an HTTP response header." ,
435+ References : []string {"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP" },
436+ Remediation : "Add a CSP via meta tag (<meta http-equiv=\" Content-Security-Policy\" ...>) or an HTTP response header." ,
437437 },
438438 {
439439 ID : "HTML-003" , Language : config .LangHTML , Severity : config .SeverityLow ,
@@ -674,7 +674,7 @@ func nginxRules() []Rule {
674674 // weak when it is NOT the prefix of TLSv1.2/1.3, so it must be
675675 // followed by whitespace/semicolon/EOL (RE2 has no negative lookahead).
676676 Pattern : mustCompile (`(?i)ssl_protocols\b[^;]*(SSLv2|SSLv3|TLSv1\.0|TLSv1\.1|TLSv1(\s|;|$))` ),
677- OWASP : config .OWASP_A02_SecurityMisconfiguration , CWE : "CWE-327" , CVSS : 7.4 ,
677+ OWASP : config .OWASP_A02_SecurityMisconfiguration , CWE : "CWE-327" , CVSS : 7.4 ,
678678 References : []string {"https://cwe.mitre.org/data/definitions/327.html" },
679679 Remediation : "Use only modern protocols: ssl_protocols TLSv1.2 TLSv1.3;" ,
680680 },
0 commit comments