Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

requests with double slashes get redirected #625

Open
oppianmatt opened this issue Jun 28, 2018 · 1 comment
Open

requests with double slashes get redirected #625

oppianmatt opened this issue Jun 28, 2018 · 1 comment

Comments

@oppianmatt
Copy link

When making a request to the url like:

https://foo.example.com/match/%5EHOST%5C%2F/top/5?b=1

oauth2_proxy issues a 301 redirect like so:

content-length: 62
content-type: text/html; charset=utf-8
date: Thu, 28 Jun 2018 14:09:11 GMT
location: /match/%5EHOST%5C/top/5?b=1
status: 301

Note it changes %2F/ to just /

%2F is / urldecoded

The request doesn't even make it to the backend.

@ploxiln
Copy link
Contributor

ploxiln commented Jun 28, 2018

This is a long-standing issue unfortunately: #506
(I think the cause is httputil.NewSingleHostReverseProxy())

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants