TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A timing attack with CSS selectors and JavaScript

104 pointsby mhasbiniover 6 years ago

6 comments

throwaway2016aover 6 years ago
&gt; Have you ever encountered a website that runs jQuery(location.hash)?<p>No. Actually I have never seen a website do that. What sites do that? What is the actual use of grabbing an element that has an ID that matches the URL hash?<p>And this attack will only work on those sites.<p>This is just one more variation of the best practice: don&#x27;t trust user&#x2F;client supplied data.<p>Edit: Though academically I actually find how this was implemented to be really interesting. I&#x27;m just not sure what uses it would have in the wild.
评论 #18160508 未加载
评论 #18160557 未加载
评论 #18160718 未加载
评论 #18160722 未加载
评论 #18160802 未加载
driverdanover 6 years ago
I don&#x27;t understand the point of this. What elements will a timing attack work against that you can&#x27;t read the value from directly? I didn&#x27;t notice any discussion of this in the article.<p>Edit: I see how this works. It will allow you to exfiltrate data from 3rd party websites that pass the URL hash into jQuery. An interesting idea but limited in scope.
评论 #18161394 未加载
评论 #18160391 未加载
EastSmithover 6 years ago
Cool hack.<p>May be it is time for browsers to disable iframes by default and ask the end user if they want to run them via the standard browser confirmation mechanisms site by site.
评论 #18160988 未加载
评论 #18160888 未加载
评论 #18160567 未加载
detaroover 6 years ago
I would have thought Chrome&#x27;s site isolation would prevent this. Not enabled in the author&#x27;s chromium build, or not helping for some reason?
评论 #18161468 未加载
评论 #18160595 未加载
otrivover 6 years ago
This is a good time to shill NoScript. If your browser runs JavaScript automatically, then you are putting your privacy and safety at risk.
SimeVidasover 6 years ago
Why does the RSS link on that website link to feedly.com instead of the feed directly? Weird.
评论 #18161313 未加载