magento XSS漏洞 介绍就不说了 百度一下 处处都是php
这边简单记录下 处理过程, (比较粗暴,是否有效还没有验证)html
编辑安全
app/design/adminhtml/default/default/template/sales/order/view/info.phtmlapp
文件ide
搜索 getCustomerEmail htm
有两处 输出调用get
使用 htmlentities 方法过滤处理 便可 以下:it
<td class="value"> <a href="mailto:<?php echo htmlentities($_order->getCustomerEmail()); ?>"> <strong> <?php echo htmlentities($_order->getCustomerEmail()); ?> </strong> </a> </td>
PS: 主要是云ECS 老提示安全问题, 如此处理后 烦人的提示就没了,至因而否有效可用,有须要的能够验证下 ,若有不对 欢迎拍砖 :)class