[squid-users] Bogus Squid answers to Squid internal icon URLs?

From: Paas, Sven <Sven.Paas@dont-contact.us>
Date: Fri, 2 Jan 2004 11:11:12 +0100

Hi,

a happy new your top all Squid users.

I found that Squid 2.5STABLE3 answers requests to
Squid internal icon URLs regardless of the hostname
within that URL.

Examples:

I have a Squid running on host "cachehost", Port 8080.

So it completely ok that Squid answers to the URL request

[sven@kickstart ftp]$ export http_proxy="http://cachehost:8080"
[sven@kickstart ftp]$ wget
http://cachehost:8080/squid-internal-static/icons/anthony-dir.gif
--10:59:57--
http://cachehost:8080/squid-internal-static/icons/anthony-dir.gif
           => `anthony-dir.gif'
Connecting to cachehost:8080... connected!
Proxy request sent, awaiting response... 200 OK
Length: 137 [image/gif]

    0K 100% @ 133.79
KB/s

10:59:57 (133.79 KB/s) - `anthony-dir.gif' saved [137/137]

But I found that the same Squid ignores the host name in the
above URL completely, that is, the following request also works:

[sven@kickstart ftp]$ wget
http://thisisnotavalidhostname:8080/squid-internal-static/icons/anthony-dir.
gif
--11:01:33--
http://thisisnotavalidhostname:8080/squid-internal-static/icons/anthony-dir.
gif
           => `anthony-dir.gif.1'
Connecting to cachehost:8080... connected!
Proxy request sent, awaiting response... 200 OK
Length: 137 [image/gif]

    0K 100% @ 133.79
KB/s

11:01:33 (133.79 KB/s) - `anthony-dir.gif.1' saved [137/137]

Even worse, if the hostname is a valid DNS hostname of another host, Squid
still deliveres
it's iternal icon (!):

[sven@kickstart ftp]$ wget
http://www.cnn.com:8080/squid-internal-static/icons/anthony-dir.gif
--11:02:58--
http://www.cnn.com:8080/squid-internal-static/icons/anthony-dir.gif
           => `anthony-dir.gif.2'
Connecting to cachehost:8080... connected!
Proxy request sent, awaiting response... 200 OK
Length: 137 [image/gif]

    0K 100% @ 133.79
KB/s

11:02:58 (133.79 KB/s) - `anthony-dir.gif.2' saved [137/137]

This cannot be correct behaviour. What am I doing wrong?

Regards, Sven

-- 
Received on Fri Jan 02 2004 - 03:11:18 MST

This archive was generated by hypermail pre-2.1.9 : Sun Feb 01 2004 - 12:00:02 MST