(command string)
| 307 | } |
| 308 | |
| 309 | func checkShellMetacharacters(command string) []SecurityFinding { |
| 310 | target := ExtractQuotedContent(command).FullyUnquoted |
| 311 | if strings.Count(target, "`") >= 2 { |
| 312 | return []SecurityFinding{{ID: CheckShellMetacharacters, Description: "Backtick command substitution detected"}} |
| 313 | } |
| 314 | return nil |
| 315 | } |
| 316 | |
| 317 | func checkNewlines(command string) []SecurityFinding { |
| 318 | target := ExtractQuotedContent(command).FullyUnquoted |
no test coverage detected