TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

SemicolonScript

2 点作者 rodh257大约 13 年前

1 comment

mikegirouard大约 13 年前
This reminds me of a demo I saw Billy Hoffman[1] do a while back at a conference. He demonstrated a way of embedding whitespace in a forum post that is mapped to a malicious JS method injected via XSS. The point was to circumvent HTML sanitation attempts to strip raw JS code.<p>This tool could be used for something similar. Just replace the semicolon token[2] with something less obvious (say '\t' for example), and you've got a pretty interesting tool.<p>[1]: <a href="https://en.wikipedia.org/wiki/Billy_Hoffman" rel="nofollow">https://en.wikipedia.org/wiki/Billy_Hoffman</a> [2]: <a href="https://github.com/RodH257/SemicolonScript/blob/master/Default.htm#L41" rel="nofollow">https://github.com/RodH257/SemicolonScript/blob/master/Defau...</a>