[28299] in bugtraq

home help back first fref pref prev next nref lref last post

'printenv' XSS vulnerability

daemon@ATHENA.MIT.EDU (Dr.Tek)
Mon Dec 23 14:10:28 2002

Date: 22 Dec 2002 21:49:58 -0000
Message-ID: <20021222214958.3166.qmail@mail.securityfocus.com>
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
From: "Dr.Tek" <tek@superw00t.com>
To: bugtraq@securityfocus.com




***** This writing is part of Malloc() Hackers & Malloc() Security *****
 			http://www.mallochackers.com
			http://www.superw00t.com     
************************************************************************
 	
Title: 'printenv' XSS vulnerability
~~~~~
  	   Author: Dr.Tek of Malloc() 
           ~~~~~~

Contact: "Dr.Tek" - (tek@superw00t.com)
~~~~~~~

No modification of the contents of this file should be made
without direct consent of the author or of Malloc() hackers or
Malloc() Security.
************************************************************************


'printenv' is a test CGI script that tends to come default with most
Apache installation. Usually located in the "/cgi-bin/" directory.


An XSS vulnerbility exist which will allow anyone to input specially 
crafted links and/or other malicious/obscene scripts.


Example exploitation:

http://www.w00tw00t.com/cgi-bin/printenv/<a href="bad">If you see this 
error, Click here!</a>


Fix:

Since 'printenv' is just an example CGI script that has no real use and 
has its own problems. Just remove it.






home help back first fref pref prev next nref lref last post