Hello,

I think I found a security issue in wget.

Details:

when you try to download with http from a site requesting username & 
password, wget discloses the pw in two ways:

- on the local side not changing the argv[] vector to hide the password in 
the ps output (OS dependent, I guess)
- on the "referrer" field sent to the site

The second issue is the worst, since it may expose the pw both to the site 
you're authenticating (for istance while you surf or mirror the same site) 
or other ones (if a link points outside the first site, the pointed one 
may get the username/password you were using into the referrer).

Proof:
My website logs
151.www.xxx.yyy - costan [02/Oct/2006:07:12:43 +0200] "GET 
/remoteshare/movies/News/BigFile.avi HTTP/1.0" 200 727678976 
"http://costan:(CLEARPASSWORD!)@ayrton.amg.it/remoteshare/movies/News/" 
"Wget/1.9+cvs-stable (Red Hat modified)"



Hope it helps.
A.


-- 
pension:
        A federally insured chain letter.

Reply via email to