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 open redirect #972

Merged
merged 2 commits into from
Apr 21, 2018
Merged

Fix open redirect #972

merged 2 commits into from
Apr 21, 2018

Conversation

wozz
Copy link
Contributor

@wozz wozz commented Apr 20, 2018

Fix open redirect by using strings.Trim.

Another option would be to use path.Clean similar to here, but I'm unsure of side effects that may have for this use case: https://github.com/golang/go/blob/master/src/net/http/server.go#L2034

See a PoC of this issue with this link: https://iris-go.com//google.com/

Fix open redirect by using strings.Trim.

Another option would be to use path.Clean similar to here, but I'm unsure of side effects that may have for this use case: https://github.com/golang/go/blob/master/src/net/http/server.go#L2034

See a PoC of this issue with this link: https://iris-go.com//google.com/
@wozz wozz requested a review from kataras as a code owner April 20, 2018 23:51
@CLAassistant
Copy link

CLAassistant commented Apr 20, 2018

CLA assistant check
All committers have signed the CLA.

@kataras
Copy link
Owner

kataras commented Apr 21, 2018

Nice one @wozz! Thank you!

@kataras kataras merged commit 057a909 into kataras:master Apr 21, 2018
github-actions bot pushed a commit to goproxies/github.com-kataras-iris that referenced this pull request Jul 27, 2020
Fix open redirect

Former-commit-id: c2f89d48d6fd1e0b96f057d32cff58147b83b5f0
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.

3 participants