Open GoogleCodeExporter opened 9 years ago
Fixed with this patch. I think this should be classified as an enhancement.
Original comment by tomsm...@gmail.com
on 28 Jul 2011 at 4:02
Attachments:
Original comment by wbrune...@gmail.com
on 29 Jul 2011 at 12:27
"The patch should probably be changed to do preemptive auth only if the target
host port is 8443 or 443; what we really want to do is only send credentials if
the intended scheme is https, but I don't know how to do that."
-- mitch
Original comment by yanokwa
on 29 Jul 2011 at 8:46
This issue was closed by revision 9b24ad8c72e0.
Original comment by carlhart...@gmail.com
on 27 Sep 2011 at 9:58
I realized I attached the wrong patch to this. The proper one is attached to
this message. It includes a new function in WebUtils.java.
I'm not quite sure I understand Mitch's comment above. If I did perhaps I could
suggest something.
Original comment by tomsm...@gmail.com
on 20 Oct 2011 at 3:12
Attachments:
The issue with your patch is that you don't check that the communications
channel is running within an HTTPS pipe before proactively attaching the
username and password. Basic auth credentials are sent in plaintext (base64
encoded). By not first ensuring you are operating within an HTTPS pipe, you
have ended up broadcasting your username and password, in plaintext, to the
world.
Not sure what fix carl and yaw implemented, but a simple check to mitigate this
erroneous wide disclosure of username and password is to first ensure that the
server is being contacted on port 443 or 8443; those are, by convention, the
https and non-privileged alternate https ports for a webserver.
Original comment by mitchellsundt@gmail.com
on 20 Oct 2011 at 5:12
I understand what you're saying now. I'll take a crack at this and get back to
y'all.
Original comment by tomsm...@gmail.com
on 20 Oct 2011 at 6:42
Original comment by yanokwa
on 20 Oct 2011 at 8:47
I think a change accomplishing this was checked into the code base and is
already in the mainline.
Original comment by mitchellsundt@gmail.com
on 20 Oct 2011 at 8:54
I believe that was on a different but related issue. I have checked the trunk
and this issue still exists. My patch fixes it, but your earlier comment still
applies and I will address it when I get time.
Original comment by tomsm...@gmail.com
on 21 Oct 2011 at 2:12
Original comment by yanokwa
on 25 May 2012 at 8:10
Original issue reported on code.google.com by
tomsm...@gmail.com
on 28 Jul 2011 at 3:59