SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |    Help    |   

SecurityTracker
Archives


Welcome to SecurityTracker!
 
Click to Sign Up
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker
bugs
@
securitytracker.com

Sign Up!





Category:  Application (Generic)  >  Printenv Vendors:  Apache Software Foundation
Apache 'printenv' Script Input Validation Bugs in Older Versions May Let Remote Users Conduct Cross-Site Scripting Attacks
SecurityTracker Alert ID:  1005848
CVE Reference:  GENERIC-MAP-NOMATCH   (Links to External Site)
Updated:  Dec 23 2002
Original Entry Date:  Dec 23 2002
Impact:  Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information, User access via network
Exploit Included:  Yes  
Description:  An input validation vulnerability was reported in the 'printenv' test script distributed with the Apache web server [apparently affecting old versions]. A remote user can conduct cross-site scripting attacks against Apache users.

It is reported that older versions of the 'printenv' test CGI script does not filter HTML code from user-supplied input. A remote user can create a specially crafted URL that, when loaded by a target user, will cause arbitrary scripting code to be executed by the target user's browser. The code will originate from the site running the printenv script and will run in the security context of that site. As a result, the code will be able to access the target user's cookies (including authentication cookies), if any, associated with the site, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.

A demonstration exploit URL is provided in the Source Message.

Another user reports that "moderately recent" versions are not affected and that the script is not configured with executable permissions by default in recent versions of Apache.

Impact:  A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the printenv cgi script, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.
Solution:  No solution was available at the time of this entry.

The author recommends removing the script.

Vendor URL:  www.apache.org/ (Links to External Site)
Cause:  Input validation error
Underlying OS:  Linux (Any), UNIX (Any)
Reported By:  "Dr.Tek" <tek@superw00t.com>
Message History:   None.


 Source Message Contents

Date:  22 Dec 2002 21:49:58 -0000
From:  "Dr.Tek" <tek@superw00t.com>
Subject:  'printenv' XSS vulnerability

 




***** 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.






 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us   |    Help

Copyright 2002, SecurityGlobal.net LLC