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

fix: make sure to match servers even if they contain “regexp” chars #9

Merged

Conversation

paulRbr
Copy link
Member

@paulRbr paulRbr commented Nov 25, 2024

This is a fix in the JWT token verification in both:

  • the server verification which was using an uneeded regex in the
    start_with? parameter
  • the path verification which was using the matching_server data
    inside a regexp without escaping the input data

I added a test case showcasing the issue.

This is a fix in the JWT token verification in both:

- the server verification which was using an uneeded regex in the
  `start_with?` parameter
- the path verification which was using the matching_server data
  inside a regexp without escaping the input data

I added a test case showcasing the issue.
@paulRbr paulRbr self-assigned this Nov 25, 2024
Copy link
Contributor

@hack3rvaillant hack3rvaillant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the investigation and fix

@hack3rvaillant hack3rvaillant merged commit b608eef into bump-sh:main Nov 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants