-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
SecHashing href rewrites to invalid href #752
Labels
Comments
Has this been forgotten? :) |
@zimmerle It has been a year - is this forgotten? |
Let me take a look at that today... not many people use this functionality so it'll be interesting |
@scaarup can you tell me what version of libXML you are using? |
@csanders-git I am using 2.7.6 |
Fixed - #1071 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am serving this html in the directory meta on an apache behind nginx with modsecurity 2.8:
With these settings:
SecContentInjection On
SecStreamOutBodyInspection On
SecDisableBackendCompression On
SecHashEngine On
SecHashParam "hmac"
SecHashKey "rand" "KeyOnly"
SecHashMethodRx "HashHref" "testparam"
The html presented to the client looks like:
As you can see, both hrefs are now prefixed with "/meta/" which the 2nd href does not exist on my server and therefore breaks my application. I have sniffed the traffic directly on the apache-server, and it serves nginx/modsec with html exactly as it looks like in the original html file. So that concludes that it is modsecurity which rewrites it wrongly.
The text was updated successfully, but these errors were encountered: