提交 #43711: The simple and beautiful PHP shopping cart system has XSS vulnerability.信息

标题The simple and beautiful PHP shopping cart system has XSS vulnerability.
描述Simple and beautiful PHP shopping cart system CMS exist Cross-site scripting Vulnerability .The input variables are not protected and output is directly output. Attackers can construct malicious code to steal user and administrator cookies. Vulnerability file location:/mkshope/login.php look at this source code ``` if (isset($_GET['status'])) { $id=$_GET['status']; $msg=$_GET['msg']; <strong>Error:</strong> &nbsp; <?php echo $msg; ?>! ``` There is no protection for the `msg` here. The `msg` variable is directly output here. Here we can insert XSS statements to steal user cookies and other information. The construction statement is as follows ``` ?status=error&msg=<script>alert(document.cookie)</script> ``` https://s1.ax1x.com/2022/08/13/vNcnHA.png Source link https://www.sourcecodester.com/php/12579/simple-and-nice-shopping-cart-script.html
来源⚠️ https://www.sourcecodester.com/php/12579/simple-and-nice-shopping-cart-script.html
用户
 qidian (UID 30810)
提交2022-08-14 11時36分 (4 年前)
管理2022-08-14 12時31分 (55 minutes later)
状态已接受
VulDB条目206401 [SourceCodester Simple and Nice Shopping Cart Script /mkshope/login.php msg 跨网站脚本]
积分20

Might our Artificial Intelligence support you?

Check our Alexa App!