[PersianHacker.NET 200503-12]Chatness 2.5.1 and prior Html Injection Vulnerability Date: 2005 March Bug Number: 12 Chatness Chatness is a PHP based chat script.It has enough flexibility to fit any users needs, and enough modification options to customly fit into any site http://www.chatness.us Discussion: -------------------- Html Injection & Cross-Site Scripting The script does not properly validate user-supplied input in the 'user' field. A remote user can create specially crafted HTML that, when loaded by the target user, will cause arbitrary scripting code to be executed by the target user's browser. Also 'message' field in "message.php" Exploit: -------------------- Chatness 2.5.1 Html Injection Exploit

Chatness 2.5.1 Html Injection Exploit

XSS in message.php:

Username:


example: <script>document.write(document.cookie)</script>

 

 

www.PersianHacker.NET

Solution: -------------------- Edit the source code to ensure that input is properly sanitised. Credit: -------------------- Discovered by PersianHacker.NET Security Team by 3nitro (3nitro[@]persianhacker[.]net) http://www.PersianHacker.NET Special Thanks: Pi3cH Help -------------------- visit: http://www.PersianHacker.NET or mail me @: 3nitro[@]persianhacker[.]net Note -------------------- script authors contacted for this vulnerablility.