[UNIX] printenv XSS Vulnerability

From: support@securiteam.com
Date: 12/26/02

  • Next message: support@securiteam.com: "[UNIX] PHPNuke Path Disclosure (Your_Account)"
    From: support@securiteam.com
    To: list@securiteam.com
    Date: 26 Dec 2002 23:34:06 +0200
    
    

    The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
    - - promotion

    Beyond Security would like to welcome Tiscali World Online
    to our service provider team.
    For more info on their service offering IP-Secure,
    please visit http://www.worldonline.co.za/services/work_ip.asp
    - - - - - - - - -

      printenv XSS Vulnerability
    ------------------------------------------------------------------------

    SUMMARY

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

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

    DETAILS

    Example:
    http://www/cgi-bin/printenv/>alert(document.cookie)</scr!pt>

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

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:tek@superw00t.com> Dr.Tek.

    ========================================

    This bulletin is sent to members of the SecuriTeam mailing list.
    To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
    In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

    ====================
    ====================

    DISCLAIMER:
    The information in this bulletin is provided "AS IS" without warranty of any kind.
    In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



    Relevant Pages

    • printenv XSS vulnerability
      ... Title: 'printenv' XSS vulnerability ... without direct consent of the author or of Mallochackers or ... 'printenv' is a test CGI script that tends to come default with most ...
      (Bugtraq)
    • Re: CGI Web Application Problem
      ... > virtually shared with the individual web site folders. ... Can you run any other cgi script? ... (i.e. the printenv )? ... What does the error log file of the webserver say? ...
      (microsoft.public.win2000.general)