Full Disclosure mailing list archives

hdweGUEST <= 2.1.1 Cross Site Scripting Vulnerabilities


From: Tamriel <tamriel () gmx net>
Date: Tue, 18 Jul 2006 21:19:11 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
      Advisory: hdweGUEST <= 2.1.1 Cross Site Scripting Vulnerabilities
  Release Date: 2006/07/18
 Last Modified: 2006/07/18
        Author: Tamriel [tamriel at gmx dot net]
   Application: hdweGUEST 2.1.1
          Risk: Low
 Vendor Status: contacted | no reply | no patch available
   Vendor Site: www.huttenlocher-webdesign.de

 Overview:

   Quote from www.huttenlocher-webdesign.de

   "hwdeGUEST ist ein Gaestebuch geschrieben in PHP. Es bietet dem
    Betreiber eine Vielzahl von Moeglichkeiten"


 Details:

      In the new_entry.php are some possible cross site scripting
      vulnerabilities.

      This can be used to insert malicious code that will be executed
      on the client's machine.

      All user inputs are not checked by the script, only in this lines
      (arround line 250-255)

      ...

      $username=trim($username);
      $usernachricht=trim($usernachricht);
      if($GLOBALS[html_allowed]==0)
        {$usernachricht=strip_tags($usernachricht);}

      ...

      and the mail input is checked by this function:
      (arround line 70-80)

      ...

      if(strstr($adresse,"@"))
         {
            $temp_adresse=explode("@",$adresse);
            if(strstr($temp_adresse[1],"."))
               {
                  if(strlen($adresse)<8)
                     {return false;}
                     else
                        {return true;}
               }
                else
                   {return false;}
         }

      ...


 Proof of Concept:

      Insert HTML/JS Code like "<u>name</u>" into the name input field
      on "new entry" page.


 Solution/Note:

      It is strongly recommended to update your script by yourself.
      Use the htmlentities() function and replace some insecure functions
      like the checke_email()'s one with proper code.

 Greets:

      Greets fly out to all people at bluegeek.de

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
 
iD8DBQFEvUI/qBhP+Twks7oRAtFJAJ9k0MmdJAK5MpVKQgaZ4QWYNHMwEwCdGBWI
lUwgqJqWD3UUsUzRJ0icwPA=
=/jUS
-----END PGP SIGNATURE-----

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/


Current thread: