-
Notifications
You must be signed in to change notification settings - Fork 113
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
Sanitise the http requests #3316
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
This pull request fixes 3 alerts when merging defa86a into db57930 - view on LGTM.com fixed alerts:
|
This pull request fixes 3 alerts when merging c1dd14e into db57930 - view on LGTM.com fixed alerts:
|
This pull request fixes 3 alerts when merging ff4312e into e58cd30 - view on LGTM.com fixed alerts:
|
This pull request fixes 3 alerts when merging 1802b1e into 1e4948b - view on LGTM.com fixed alerts:
|
This pull request fixes 3 alerts when merging f463253 into 1e4948b - view on LGTM.com fixed alerts:
|
https://drone.cernbox.cern.ch/cs3org/reva/9096/10/6
Those are examples of URLs that have multiple In real life a client that sends such requests should be fixed anyway! So maybe you are OK with these odd-looking-URL tests failing. If so, then add them to the expected-failures files: If not, then work out how ServeMux has to be set up so that it can understand and route these requests. |
This one is strange - these Again, add to expected failures if you do not care about this. |
https://drone.cernbox.cern.ch/cs3org/reva/9096/12/6
The failures in this test pipeline are of real things. In this example the returned status has changed from 201 to 200 - maybe that is a real problem, or maybe no client will care. But:
In this case, the receiver of a public link share is copying a folder that is inside the public link share, to create another folder inside the public link share. A In a lot of the other failures in that pipeline, the request is returning |
…cape string to respond with user-provided values update go mod tidy
This pull request fixes 3 alerts when merging 181e1b4 into 0a5d64b - view on LGTM.com fixed alerts:
|
Add http.ServeMux to http server to sanitise http requests and mitigate XSS.
Use html.EscapeString whenever responding to an http request with user-provided values (internal/http/services/ocmd/invites.go and pkg/siteacc/siteacc.go).