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

Add Advanced Stylesheet Fingerprint (Same idea as image fingerprinting) #6

Open
mandatoryprogrammer opened this issue Aug 26, 2015 · 5 comments

Comments

@mandatoryprogrammer
Copy link
Owner

sonar should be able to fingerprint specific stylesheets by what styles they change from the current document when included. We'd have to write iframes and then include the stylesheet into them, after the styles are imported we can observe the changes and create a fingerprint off of that. Required a bit more research into how to hook style changes/etc.

@mandatoryprogrammer
Copy link
Owner Author

After doing a bunch of research into this I think the best route would be to create an iframe with a bunch of elements such as <b>, <i>, <input>, with a few divs with some common IDs. We can then diff the CSS styles applied when we include an external stylesheet from the router to generate a more unique fingerprint.

@mandatoryprogrammer
Copy link
Owner Author

I've written most of the code for this which can be seen here:
https://github.com/mandatoryprogrammer/sonar.js/blob/master/experiments/css_diff.htm

Should have a working proof of concept shortly, having some issues with different browsers treating things different (Chrome generates different prints from Firefox).

@ghost
Copy link

ghost commented Sep 4, 2015

nice work @mandatoryprogrammer but can you help me out with this Octodog Invasion which is currently disable.?

@mandatoryprogrammer
Copy link
Owner Author

@atsuyim that's a bit off topic for this bug - what is your issue with "Octodog Invasion"? It was disable by Github due to this:
http://thehackerblog.com/how-i-got-5000-github-followers-in-less-than-24-hours/

@ghost
Copy link

ghost commented Sep 5, 2015

hehee that's awesome well where can find this Octodog Invasion if not in Github

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