1
0
mirror of https://github.com/securego/gosec.git synced 2025-11-23 22:15:04 +02:00

Add a rule to detect the usage of ssh InsecureIgnoreHostKey function

This commit is contained in:
Cosmin Cojocar
2018-02-06 16:56:26 +01:00
parent 8b87505d97
commit d3c3cd6419
4 changed files with 61 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ func Generate(filters ...RuleFilter) RuleList {
"G103": RuleDefinition{"Audit the use of unsafe block", NewUsingUnsafe},
"G104": RuleDefinition{"Audit errors not checked", NewNoErrorCheck},
"G105": RuleDefinition{"Audit the use of big.Exp function", NewUsingBigExp},
"G106": RuleDefinition{"Audit the use of ssh.InsecureIgnoreHostKey function", NewSSHHostKey},
// injection
"G201": RuleDefinition{"SQL query construction using format string", NewSQLStrFormat},