## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-NU0L-CVE-2022-22965
# CVE-2022-22965
Spring Framework/CVE-2022-22965
์ทจ์ฝ์ ID: CVE-2022-22965/CNVD-2022-23942/QVD-2022-1691
### ์ทจ์ฝ์ ์ฌํ
root@kitploit:~
docker pull vulfocus/spring-core-rce-2022-03-29
docker run -dit -p 8080:8080 vulfocus/spring-core-rce-2022-03-29

### ์ทจ์ฝ์ ํ์ง
#### POC
POC๋ฅผ ์ฌ์ฉํ์ฌ ๋์์ ํ์งํ๋ ๊ฒ์ ๊ถ์ฅํฉ๋๋ค. DNSLOG๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์ทจ์ฝ์ ์กด์ฌ ์ฌ๋ถ๋ฅผ ํ์ธํ๋ ์ฅ์ ์ด ์์ผ๋ฉฐ, tomcat์ ๋ก๊ทธ ๊ตฌ์ฑ์ ์์ ํ์ง ์์ต๋๋ค.
root@kitploit:~
python3 cve-2022-22965-poc.py -url https://example.com/
python3 cve-2022-22965-poc.py -file file.txt

#### EXP
root@kitploit:~
python3 cve-2022-22965.py -url https://example.com/
python3 cve-2022-22965.py -file file.txt

### ์ต์คํ๋ก์
#### POC
root@kitploit:~
python3 cve-2022-22965-poc.py -url https://example.com/

#### EXP
root@kitploit:~
python3 cve-2022-22965.py -url http://example.com/

#### ํผ์ง
##### POC
_13๋ฒ์งธ ์ค์ ๊ณตํต ๊ฒฝ๋ก ์ถ๊ฐ_
root@kitploit:~
routs = ['env',]
##### EXP ํผ์ง
_12๋ฒ์งธ ์ค์ ๊ณตํต ๊ฒฝ๋ก ์ถ๊ฐ_
root@kitploit:~
path = ['root',]
* ๊ฒฝ๊ณ :*
* ์ด EXP๋ ์คํจํ HTTP ์์ฒญ์ ํ์ผ์ ํจ๊ป ๊ธฐ๋กํฉ๋๋ค.
* ์ด EXP๋ tomcat ๊ตฌ์ฑ์ ๋ณ๊ฒฝํฉ๋๋ค.
## 
**์์ ํ ํ์ต ๋ชฉ์ ์ผ๋ก๋ง ์ฌ์ฉํ์ญ์์ค. ๋ถ๋ฒ์ ์ผ๋ก ์ฌ์ฉํ์ง ๋ง์ญ์์ค.**
**์์ ํ ํ์ต ๋ชฉ์ ์ผ๋ก๋ง ์ฌ์ฉํ์ญ์์ค. ๋ถ๋ฒ์ ์ผ๋ก ์ฌ์ฉํ์ง ๋ง์ญ์์ค.**