普华永道(PwC) 长期招聘各种软件开发,管理岗位,可全年在家办公, 全年假期优厚。有意者可邮件联系 julia_faneast@163.com 职位简介

verascan - xss issue

当选择policy scan type 去做verascan时,针对 window.location.href我们得到了 cross-Site-Script 和 Insufficient Input Validation 的错误。具体代码如下:

window.location.href = this.impactservice.getDownloadDataUrl(this.projectId);

解决方法:

1. 

window.location.assign(this.impactservice.getDownloadDataUrl(this.projectId));

2.

 window.location.href = decodeURIComponent(res.body.url);

 

posted @ 2019-02-18 16:11  julia_faneast  阅读(96)  评论(0编辑  收藏  举报