mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
extend FB access token discovery (#1407)
* extend FB access token discovery * validate config * set upper 40 * set upper 40
This commit is contained in:
1 parent
79cac73f72
commit
39947b0b0d
2 files changed
+2
-2
No files matched your search
@@ -32,7 +32,7 @@ func FacebookAccessToken() *config.Rule {
|
||||
r := config.Rule{
|
||||
Description: "Discovered a Facebook Access Token, posing a risk of unauthorized access to Facebook accounts and personal data exposure.",
|
||||
RuleID: "facebook-access-token",
|
||||
Regex: generateUniqueTokenRegex(`\d{15,16}\|[0-9a-z\-_]{27}`, true),
|
||||
Regex: generateUniqueTokenRegex(`\d{15,16}(\||%)[0-9a-z\-_]{27,40}`, true),
|
||||
}
|
||||
|
||||
// validate
|
||||
|
||||
Reference in new issue
Block a user