Re: Reality Check: Session Hijacking

From: Daniel Tryba (news_comp.lang.php_at_canopus.nl)
Date: 05/07/04


Date: Fri, 7 May 2004 12:38:37 +0000 (UTC)

R. Rajesh Jeba Anbiah <ng4rrjanbiah@rediffmail.com> wrote:
>> Sure, if you only look to the x-forwarded-for (or equiv) header you are
>> totally screwed.... with my own proxy/network I can put any IP address
>> in there I want :)
>
> Just curious... what is your proxy? and what will be the result of
> print_r($_SERVER) if your real ip is say x.y.z.a?

I'm running a simple squid setup, with my local network behind a nat
box (linux which also runs squid). So I can assign any network I want to
my localnet and it gets translated to x.y.a.z as the
$_SERVER['REMOTE_ADDR'], squid sees the request coming from my chosen
internal IP address d.e.f.g and puts that in $_SERVER['X-FORWARDED-FOR']

-- 
  Daniel Tryba


Relevant Pages

  • Re: squid and dns lookups
    ... We have one of our PC's set up as an internal (local network) web ... The PC is listed in each of the other linux machines /etc/hosts ... When squid is turned off it is ... the name of the server in the address bar. ...
    (Fedora)
  • Re: squid and dns lookups
    ... We have one of our PC's set up as an internal (local network) web ... The PC is listed in each of the other linux machines /etc/hosts ... When squid is turned off it is ... the name of the server in the address bar. ...
    (Fedora)
  • Re: Squid under fedora core 3
    ... > I'm using squid on fc3 and here are my settings: ... > # set as transparent proxy for all clients in local network ...
    (Fedora)
  • RE: Squid question
    ... I believe you want transparent proxy services. ... Point the new machines to the squid box as their gateway, ... > discovery, such as the physician-patient privilege, or a peer review ...
    (RedHat)
  • Re: parental control with squid and dansguardian
    ... I need to configure the browser to look for proxy on port ... if someone just changes the port in their browser to 3128 (squid ... as the box is behind a router firewall anyway but I would appreciate your ...
    (freebsd-questions)