javascript – HTML / CSS / JS:隐形表单是否可以拦截(劫持)用户输入?

我听到有人提到理论上可以在内容之上放置一个不可见的iframe,并接收某人想要放入表单的输入.这怎么可能而且不会引起怀疑?吓到我了…

解决方法

对的,这是可能的!它被称为clickjacking,确实非常真实.查看此信息以获取更多信息: http://en.wikipedia.org/wiki/Clickjacking

Google的Michal Zalewski有一个理论上的例子(来源:Page 1,Page 2):

A malicious page in domain A may create an IFRAME pointing to an application in domain B,to which the user is currently authenticated with cookies,” Zalewski said in a message to a mailing list on Thursday. “The top-level page may then cover portions of the IFRAME with other visual elements to seamlessly hide everything but a single UI button in domain B,such as ‘delete all items,’ ‘click to add Bob as a friend,’ etc. It may then provide [its] own,misleading UI that implies that the button serves a different purpose and is a part of site A,inviting the user to click it.

相关文章

kindeditor4.x代码高亮功能默认使用的是prettify插件,prett...
这一篇我将介绍如何让kindeditor4.x整合SyntaxHighlighter代...
js如何实现弹出form提交表单?(图文+视频)
js怎么获取复选框选中的值
js如何实现倒计时跳转页面
如何用js控制图片放大缩小