|
楼主 |
发表于 2019-10-11 17:09:58
|
显示全部楼层
本帖最后由 ll2017 于 2019-10-11 17:19 编辑
UI\system\service\common\dsrc目录下BizAction.java文件中已对doPost及doGet方法的request进行过过滤判断,但还有部分跨站点漏洞存在
protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
String failPage ="/error.jsp";//发生注入时,跳转页面
//跨站点伪造
String fullurl = request.getHeader("Referer");
if(fullurl != null){
String[] referer = fullurl.split("/"); //请求来源全路径
String serverName = request.getServerName();//项目根路径
int serverPort = request.getServerPort(); //端口号
if(!referer[2].equals(serverName+":"+serverPort)){
request.getRequestDispatcher("failPage").forward(request, response);
}
}
……
} |
|