Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4063)

Issue 9766046: code review 9766046: net/http: Fix authentication info leakage in Referer he...

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by Hierro
Modified:
9 years, 9 months ago
Reviewers:
dave, golang-codereviews, bradfitz
Visibility:
Public.

Description

net/http: Fix authentication info leakage in Referer header (potential security risk) http.Client calls URL.String() to fill in the Referer header, which may contain authentication info. This patch removes authentication info from the Referer header without introducing any API changes. A new test for net/http is also provided.

Patch Set 1 #

Patch Set 2 : diff -r 1faca3687fe6 https://code.google.com/p/go #

Patch Set 3 : diff -r 1faca3687fe6 https://code.google.com/p/go #

Patch Set 4 : diff -r b2560a1d1e52 https://code.google.com/p/go #

Patch Set 5 : diff -r b2560a1d1e52 https://code.google.com/p/go #

Total comments: 1

Patch Set 6 : diff -r 654ca7de0282 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -4 lines) Patch
M src/pkg/net/http/client.go View 1 2 3 4 5 2 chunks +22 lines, -4 lines 0 comments Download
M src/pkg/net/http/client_test.go View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download
M src/pkg/net/http/export_test.go View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 16
Hierro
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 11 months ago (2013-05-31 13:06:15 UTC) #1
bradfitz
If this is worth fixing, I think we should fix it without any API changes. ...
10 years, 11 months ago (2013-06-02 01:36:00 UTC) #2
dsymonds
R=bradfitz
10 years, 10 months ago (2013-06-14 09:02:46 UTC) #3
bradfitz
Q=wait Hierro, were you going to revise this to not introduce AnonymousString?
10 years, 10 months ago (2013-06-17 18:35:41 UTC) #4
Hierro
On 2013/06/17 18:35:41, bradfitz wrote: > Q=wait > > Hierro, were you going to revise ...
10 years, 10 months ago (2013-06-20 11:34:29 UTC) #5
Hierro
PTAL
10 years, 10 months ago (2013-06-20 11:58:13 UTC) #6
bradfitz
https://codereview.appspot.com/9766046/diff/13001/src/pkg/net/http/client.go File src/pkg/net/http/client.go (right): https://codereview.appspot.com/9766046/diff/13001/src/pkg/net/http/client.go#newcode280 src/pkg/net/http/client.go:280: if lastReq.URL.Scheme != "https" { let's pull this out ...
10 years, 10 months ago (2013-06-20 20:23:30 UTC) #7
Hierro
On 2013/06/20 20:23:30, bradfitz wrote: > https://codereview.appspot.com/9766046/diff/13001/src/pkg/net/http/client.go > File src/pkg/net/http/client.go (right): > > https://codereview.appspot.com/9766046/diff/13001/src/pkg/net/http/client.go#newcode280 > ...
10 years, 9 months ago (2013-07-15 13:57:03 UTC) #8
bradfitz
On Mon, Jul 15, 2013 at 6:57 AM, <alberto.garcia.hierro@gmail.com> wrote: > On 2013/06/20 20:23:30, bradfitz ...
10 years, 9 months ago (2013-07-22 21:57:51 UTC) #9
Hierro
> You can add a line below and similar to this one: > > var ...
10 years, 9 months ago (2013-07-26 22:06:51 UTC) #10
Hierro
PING
10 years, 6 months ago (2013-10-17 14:16:08 UTC) #11
bradfitz
Too late for Go 1.2 Please file a bug so we can track this for ...
10 years, 6 months ago (2013-10-17 16:04:03 UTC) #12
Hierro
On 2013/10/17 16:04:03, bradfitz wrote: > Too late for Go 1.2 Please file a bug ...
10 years, 6 months ago (2013-10-17 17:49:08 UTC) #13
gobot
Replacing golang-dev with golang-codereviews.
10 years, 4 months ago (2013-12-20 16:11:03 UTC) #14
dave_cheney.net
On 2013/12/20 16:11:03, gobot wrote: > Replacing golang-dev with golang-codereviews. R=close
10 years, 2 months ago (2014-01-31 00:40:11 UTC) #15
bradfitz
9 years, 9 months ago (2014-07-23 20:09:41 UTC) #16
I see this never went in.

I've opened https://code.google.com/p/go/issues/detail?id=8417 to track it at
least.

Feel free to polish it up. In particular, I don't think the https part is
exactly correct yet: https still should send redirects to other https sites.

Perhaps remove that part for now and only address the username:password@ part
for now?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b