Skip to content

Commit

Permalink
Update Password in JavaScript Logger.bcheck
Browse files Browse the repository at this point in the history
Fix to regex.
  • Loading branch information
LabMC authored Nov 11, 2024
1 parent 8b71ed7 commit 4bc5211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion other/Password in JavaScript Logger.bcheck
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ define:

given response then
# This check looks through HTTP responses' bodies for keywords that indicate usage of both JS loggers & password variables on a shared code line.
if {latest.response.body} matches "(?i)^(?=.*\b(?:log|info|warn|error|debug|table|group|trace|push|captureMessage)\s*\()(?=.*\b(?:password|pw|pass|passwrd|passwd|pswrd|pswd|psword|pword|client_secret|client-secret|clientsecret|secret|api_key|api-key|apikey)\b).*" then
if {latest.response.body} matches "(?i)^(?=.*\b(?:log|info|warn|error|debug|table|group|trace|push|captureMessage)\s*\()(?=.*[^\w]*?(?:password|pw|pass|passwrd|passwd|pswrd|pswd|psword|pword|client_secret|client-secret|clientsecret|secret|api_key|api-key|apikey)[^\w]*?).*" then
report issue:
severity: high
confidence: firm
Expand Down

0 comments on commit 4bc5211

Please sign in to comment.