我在jsp页面中有href链接,如果黑客将脚本添加到href,则目标页面显示脚本代码

时间:2014-08-14 10:12:06

标签: java jsp auditing

第一页是这样的:

<a href = "javascript:test('abcd.jsp?asd=<%= asd 
%>');">
function test(x)
    { 
        document.abc.method='post';
        document.abc.action=x;
        document.abc.submit();
    }

黑客将一些脚本"><script>alert(12345)</script>">代码添加到url然后提交它abcd.jsp显示以脚本代码编写的警报消息。

0 个答案:

没有答案