Skip to content

Commit 6ff54ce

Browse files
committed
fix sqlmap false positive detection
1 parent c6639ca commit 6ff54ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎internal/modules/vulnscan.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func VulnScan(ctx context.Context, cfg *config.Config, exec *runner.Executor) {
252252

253253
if err == nil && len(output) > 0 {
254254
outStr := string(output)
255-
if strings.Contains(outStr, "is vulnerable") || strings.Contains(outStr, "injectable") {
255+
if strings.Contains(outStr, "is vulnerable") || strings.Contains(outStr, "Parameter:") && strings.Contains(outStr, "Type:") {
256256
findings = append(findings, fmt.Sprintf("[VULN] %s", cleanURL))
257257
findings = append(findings, outStr)
258258
}

0 commit comments

Comments
 (0)