当我使用 Burp Scanner Tool 扫描 ASP.NET 应用程序时,我在 asp.net webresource.axd 文件中遇到了“打开重定向(基于 DOM)”问题。请让我知道是否有人遇到过同样的问题,或者如果您有任何想法或解决方法可以解决此问题。
问题详情如下:
问题详细信息 应用程序可能容易受到基于 DOM 的开放重定向的攻击。通过以下语句从 document.location.pathname 读取数据并写入 XMLHttpRequest 对象的 open() 函数:
var action = theForm.action || document.location.pathname, fragmentIndex = action.indexOf('#');
action = action.substr(0, fragmentIndex);
action = encodeURI(path) + action.substr(queryIndex);
xmlRequest.open("POST", action, true);