Skip to content

Find, verify, and analyze leaked credentials

Update ngrok.go detector to handle 403s properly (#4216)

thiggy134252d0ee5f5419
diff --git a/pkg/detectors/ngrok/ngrok.go b/pkg/detectors/ngrok/ngrok.go
index e31cd08cd..620857505 100644
--- a/pkg/detectors/ngrok/ngrok.go
+++ b/pkg/detectors/ngrok/ngrok.go
@@ -99,6 +99,8 @@ func verifyMatch(ctx context.Context, client *http.Client, token string) (bool,
return true, nil
case http.StatusUnauthorized:
return false, nil
+ case http.StatusForbidden:
+ return false, nil
case http.StatusBadRequest:
bodyBytes, err := io.ReadAll(res.Body)
if err != nil {