tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50453] Multiple X-Forwarded-For headers not handled by RemoteIP valve
Date Fri, 10 Dec 2010 21:48:09 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50453

--- Comment #6 from Jim Riggs <jim@riggs.me> 2010-12-10 16:48:05 EST ---
(In reply to comment #4)
> So, should the RemoteIPValve/Filter should be looking at the first
> X-Forwarded-For (A) or the last X-Forwarded-For (E) address?

Chris -

It should be looking at them as if they were combined in a single
comma-separated list and evaluating them from right-to-left.  As Mark said,
regardless of how the header(s) are received, it should be treated as
"X-Forwarded-For: A, B, C, D, E" and RemoteIP should "trust" them in the order
E - D - C - B - A.  I will make sure that the switch to getHeaders() in my
patch does this.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message