
Dieses Repository stellt einen Docker-Container zur Simulation der Schwachstelle CVE-2023-30212 bereit, mit dem Sie deren Auswirkungen üben und verstehen können. Es enthält eine umfassende Anleitung, die Ihnen hilft, den Container auf Ihrem eigenen Computer einzurichten. Auch die Dokumentation für den Docker-Erstellungsprozess ist enthalten.
| Anbieter | Produkt | Version |
|---|---|---|
| ourphp | ourphp | 7.2.0 |
Um OURPHP <= 7.2.0 in Docker zu installieren, können Sie die Anleitung verwenden, um Docker zu Übungszwecken zu installieren.
# ourphp 7.2.0 version has a vulnerability to XSS (Cross-Site Scripting).
# In the file /client/manage/ourphp_out.php, there is a direct echo functionality that, along with controllable variables, can enable attackers to execute XSS code.When the ourphp_admin parameter is set to "logout," we echo a controllable variable called "out."
# To exploit this, we prepend a script tag and close it, forming our payload.This vulnerability can be exploited through the "out" parameter by injecting the following script: "</script><script>alert(xss)</script>"
# After completing the setup of the docker directly. Access the following path :
http://localhost/client/manage/ourphp_out.php?ourphp_admin=logout&out=</script><script>alert(`xss`)</script>
# </script><script>alert(`xss`)</script>