728x90 ๐ดCTF/OSCP3 OSCP - 9.2.2. PHP Wrappers kali@kali:~$ curl http://mountaindesserts.com/meteor/index.php?page=admin.php...Admin The admin page is currently under maintenance.Listing 21 - Contents of the admin.php file ๋ค์๊ณผ ๊ฐ์ด LFI๊ฐ ๋ฐ์ํ๋ ๊ฒฝ์ฐ(์ ๋ ฅ ๊ฒ์ฆ ์์ด ๋ฐ๋ก include ์คํ => include $_GET["page"];)PHP Wrappers์ ์ทจ์ฝํ ์ ์๋ค. kali@kali:~$ curl http://mountaindesserts.com/meteor/index.php?page=php://filter/convert.base64-encode/resource=admin.php.. 2025. 7. 21. OSCP - 9.2. File Inclusion Vulnerabilities, Labs Local File Inclusion (LFI) ๋ฐ access.log ํฌ์ด์ฆ๋ ์ทจ์ฝ์ access.log ํฌ์ด์ฆ๋(์ค์ผ)User-Agent ํค๋์ ํ์ค ์ง๋ฆฌ ์น์ ์ฝ๋๋ฅผ ๋ฃ๋๋ค. ์ดํ ์๋ฒ๋ก ๋ถํฐ ์์ฒญ์ด ๊ฐ๊ฒ ๋๋ฉด ์๋ฒ ์ธก์ ์ํ์น ๋ก๊ทธ ํ์ผ์ธ /var/log/apache2/access.log(์๋์ฐ ์์: C:\xampp\apache\logs\access.log)์๋ ์ฌ์ฉ์์ ๋ฐฉ๋ฌธ ์ ๋ณด(์์ดํผ ์ฃผ์, ๊ฒฝ๋ก, User-Agent)๊ฐ ๋จ๊ฒ ๋๋ค. ์ด์ LFI ์ทจ์ฝ์ ์ด ์๋ ํ๋ผ๋ฏธํฐ์๋ค /var/log/apache2/access.log๋ฅผ ์ ๋ ฅ์ ํด ํ์ผ์ ์ฝ์ด ์ค๊ฒ ๋๋ฉด์ ํด๋น PHP ์ฝ๋๊ฐ ์คํ๋๋ฉด์ ์๊ฒฉ ์ฝ๋ ์คํ ์ทจ์ฝ์ด ๋ฐ์ํ๋ค. (*cmd ํ๋ผ๋ฏธํฐ ์์๋ ?๊ฐ ์๋ &์ด ์ฌ ๊ฒ) nc -nvlp 4444์ข ๋ ์ํํ ์ ์ด๋ฅผ ์ํ ๊ฒฝ์ฐ ๊ณต๊ฒฉ์๋ ๋ฆฌ๋ฒ์ค์์ ์ด์ด ๋์ ์๋ฒ๊ฐ ์ฐ๊ฒฐ์.. 2025. 7. 21. OSCP - 9.1. Directory Traversal, Labs CVE-2021-43 --path-as-is ์ทจ์ฝ์ ๊ฐ์Grafana 8.x ๋ฒ์ ์์ ๋ฐ์ ํ๋ Path Traversal ์ทจ์ฝ์ ์ด๋ค. ํ๋ฌ๊ทธ์ธ API ์๋ํฌ์ธํธ์ ๊ฒฝ๋ก์ ๋ํ ์ฌ์ฉ์ ์ ๋ ฅ์ ๋ํ ๊ฒ์ฆ์ด ๋ฏธํกํ์ฌ ์๋น์ค ์์ญ ์ธ์ ์์ ๋๋ ํฐ๋ฆฌ ๋ฑ์ ์ก์ธ์ค๊ฐ ๊ฐ๋ฅํ๊ฒ ๋๋ค. ๋ฌธ์ ์ ์ฝ๋ : https://github.com/grafana/grafana/blob/c80e7764d84d531fa56dca14d5b96cf0e7099c47/pkg/api/plugins.go#L284 ์ฐธ๊ณ https://github.com/taythebot/CVE-2021-43798 GitHub - taythebot/CVE-2021-43798: CVE-2021-43798 - Grafana 8.x Path Traversal (Pre-Auth)CVE-2021-43798 - Grafan.. 2025. 7. 21. ์ด์ 1 ๋ค์ 728x90