Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues in pattern detection logic for AeroWorkFlow #3432

Closed
sahil9001 opened this issue Oct 16, 2024 · 3 comments
Closed

Issues in pattern detection logic for AeroWorkFlow #3432

sahil9001 opened this issue Oct 16, 2024 · 3 comments
Labels

Comments

@sahil9001
Copy link
Contributor

Please review the Community Note before submitting

TruffleHog Version

Trace Output

Expected Behavior

The current API key pattern should match the pattern required.

Actual Behavior

The \b at the end of the regex is looking for a word boundary. In this case, the 20-character sequence is immediately followed by a /, which is not a word character. The word boundary \b is expecting a transition from a word character to a non-word character or the end of the string, which doesn't occur here.

Steps to Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Environment

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional Context

References

  • #0000
@zricethezav
Copy link
Collaborator

The \b at the end of the regex is looking for a word boundary. In this case, the 20-character sequence is immediately followed by a /, which is not a word character. The word boundary \b is expecting a transition from a word character to a non-word character or the end of the string, which doesn't occur here.

@sahil9001 Could you provide an example regex101 demonstrating this? I'm not following.

@sahil9001
Copy link
Contributor Author

sahil9001 commented Oct 16, 2024

A valid pattern which doesn't match @zricethezav
Screenshot 2024-10-17 at 1 02 13 AM

@sahil9001
Copy link
Contributor Author

Closing this, addressed here #3434

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants