一种有趣的安全隐患——界面劫持

2017 年 2 月 28 日
 kindjeff
这是一个演示链接: https://www.kindjeff.com/static/for_fun/v2ex_0.html

在这个链接里点击按钮之后,再来看我的 V2EX 主页: https://www.v2ex.com/member/kindjeff

会发现特别关注了我。思路很简单但是很有效。
8450 次点击
所在节点    V2EX
58 条回复
eastpiger
2017 年 2 月 28 日
看起来很厉害的样子。

除了我并没有发现特别关注了你呢
isCyan
2017 年 2 月 28 日
劫持失败?
shiny
2017 年 2 月 28 日
报错了:[Error] Blocked a frame with origin "https://www.v2ex.com" from accessing a frame with origin "https://www.kindjeff.com". Protocols, domains, and ports must match.
mythabc
2017 年 2 月 28 日
iframe 233
binux
2017 年 2 月 28 日
kankana
2017 年 2 月 28 日
clickjacking?
acmetal
2017 年 2 月 28 日
V2 应该本来就有防止被 iframe 的 js ,只不过。。。。

kindjeff
2017 年 2 月 28 日
@binux 不是的, V2EX 的特别关注链接后面的 t 参数需要是点击者的注册日期~界面劫持其实比这个更简单。
kindjeff
2017 年 2 月 28 日
@acmetal 浏览器不错, 23333 。我的 chrome 和同学的 edge 都是一片白。
wjm2038
2017 年 2 月 28 日
失败了
Mutoo
2017 年 2 月 28 日
Anything with <frame> and <iframe>. A site can use the X-Frame-Options header to prevent this form of cross-origin interaction.
https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy
also24
2017 年 2 月 28 日


hhhhh 这很机智
kindjeff
2017 年 2 月 28 日
之后失败的各位可以回复一下浏览器版本号。以及分辨率……
成功的也可以回一下。
nanpuyue
2017 年 2 月 28 日
有意思。
imlonghao673
2017 年 2 月 28 日
clickhijacking
几年前看过用来做吸粉的
whoops
2017 年 2 月 28 日
@kindjeff chrome 版本 58.0.3018.3 (正式版本) unknown ( 64 位)
3653x2400
xxxoooooxx
2017 年 2 月 28 日
chrome 阻止了第三方 cookie ,没反应
oott123
2017 年 2 月 28 日
Coxxs
2017 年 2 月 28 日
Clickjacking
terence4444
2017 年 2 月 28 日
Firefox 无效,本来以为是我用了防跨站的 RequestPolicy ,后来把这个插件关了也是一样的。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/343894

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX