-
Notifications
You must be signed in to change notification settings - Fork 6.1k
StrictHttpFirewall allows "//path" "//path//path" patterns. #5044
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
Comments
Thanks for the report! I have pushed a fix for this |
We are running into problems due to this change as the URL that gets checked in To make it clear: We are using embedded Tomcat in version 8.5.29 (the default in Spring Boot2.0.1.RELEASE). Let's say I'm sending the following GET request:
The following happens:
Any advice besides downgrading to Spring Security 5.0.3.RELEASE? Is there something wrong on our side? |
@opncow Thanks for the feedback. This issue is closed so the best way to proceed is to create a new ticket so we can track the problem. Please provide details on how to reproduce in the issue. If we cannot reproduce the problem we cannot advise or provide a fix. |
@rwinch Okay, I thought you might simply reopen it. I will create a separate issue asap and provide a minimal example project there to reproduce it. |
As an FYI we cannot reopen tickets once we have done a release because that would change the changelog for a release. |
Okay, to clear this one up: It actually was a misconfiguration of our NGINX reverse proxy... :-) Thanks for pointing us on it with this change and sorry for the noise! |
@opncow Thanks for the follow up! I'm glad you got the problem resolved |
Summary
StrictHttpFirewall checks non-normalized URL containing double slash (//).
However, I think this checking algorithm is ambiguous.
Actual Behavior
Is this intended specification? or bug?
Expected Behavior
Version
Spring Security 5.0.1
Comment
StrictHttpFirewall.isNormalized(String)
>=0
is right?or
lastIndexOf("//")
?The text was updated successfully, but these errors were encountered: