CGI-City's CCLOG Script Injection Vulns

From: BrainRawt . (brainrawt@hotmail.com)
Date: 03/29/03

  • Next message: White Vampire: "[security@slackware.com: [slackware-security] Samba buffer overflow fixed]"
    From: "BrainRawt ." <brainrawt@hotmail.com>
    To: bugtraq@securityfocus.com
    Date: Sat, 29 Mar 2003 18:46:07 +0000
    
    

    CGI-City's CCLOG USER-AGENT and REFERER Script Injection
    Vulnerabilities Discovered By BrainRawt (brainrawt@hotmail.com)

    About CCLOG:
    ------------------
    CC Log is a very simple logging script which logs the hits to
    a single web page. This script is typically useful for logging
    the hits to the main index page. It collects information like
    date and time of the hit, browser agent used by the visitor,
    host IP addresses, and HTTP referrer whenever available. The
    script logs everything on to an HTML log file which the user
    can easily view under any browser. This script requires SSI.

    CCLOG can be downloaded from the following address.

    http://www.icthus.net/CGI-City/scr_cgicity.shtml#CCLOG

    Vendor Contact:
    ----------------
    1-30-03 Emailed cgicity@icthus.net

    No Response

    Vulnerability:
    ----------------
    CCLOG's cc_log.pl lacks filtering of any data coming in from the
    remote host. This data in return is redirected to an html. Due
    to the lack of input filters, a malicious visitor could inject
    scripting into that html by falsifying the USER-AGENT and/or the
    REFERER. This attack would result in the execution of the
    injected script by anyones browser that views the html.

    Exploit (POC):
    ----------------
    User-Agent: <script>alert('obvious?')</script>
    Referer: <script>alert('obvious?')</script>

    _________________________________________________________________
    Add photos to your messages with MSN 8. Get 2 months FREE*.
    http://join.msn.com/?page=features/featuredemail


  • Next message: White Vampire: "[security@slackware.com: [slackware-security] Samba buffer overflow fixed]"

    Relevant Pages

    • Re: BioPerl Range() Issue
      ... and am writing a script to automate the whole process. ... from one of my hits, it sometimes returns an invalid subsequence. ...
      (perl.beginners)
    • Re: TOPcast mp3s gone as of 1:20 PDT
      ... but the script that serves ... them up (and counts the hits on them) blew up earlier today. ... It's blown ...
      (rec.games.pinball)
    • Need a help on this Script
      ... I am a software developer and I have a written a script which will read the ... configuration like to address, subject of the mail and the threshold value. ... port | Hits ...
      (perl.beginners)
    • Re: recursive find to display directory
      ... I need to recursively find and display a folder ... > retrurns eight hits, including the files. ... I need a NT script or VB script to return just ...
      (microsoft.public.win2000.cmdprompt.admin)
    • Re: recursive find to display directory
      ... I need to recursively find and display a folder ... > retrurns eight hits, including the files. ... I need a NT script or VB script to return just ...
      (microsoft.public.windows.server.scripting)