Skip to content

Commit

Permalink
Merge pull request #13 from OWASP/add-ATO-regex
Browse files Browse the repository at this point in the history
add regex for detecting ATO attack vectors
  • Loading branch information
dmdhrumilmistry authored Oct 29, 2023
2 parents 31d8940 + f437acf commit 9976acf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/offat/tester/regexs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
'ip': r'(?:\d{1,3}\.){3}\d{1,3}\b|\b(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}\b',
'ccn': r'\b\d{4}-\d{4}-\d{4}-\d{4}\b',
'jwtToken':r'(^|\s|")[A-Za-z0-9_-]{2,}(?:\.[A-Za-z0-9_-]{2,}){2}($|\s|")',
'ato_data':r'\b(auth_code|otp|password|password_hash|auth_token|access_token|refresh_token|secret|session_id|key|pin|accessToken|refreshToken|authenticationCode|authentication_code|jwt|api_secret|apiSecret)\b'

# BRAZIL
'BrazilCPF':r'\b(\d{3}\.){2}\d{3}\-\d{2}\b',
Expand Down

0 comments on commit 9976acf

Please sign in to comment.