[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #18279 [Tor Browser]: Javascript setTimeout can be used for high resolution clock
#18279: Javascript setTimeout can be used for high resolution clock
-----------------------------+----------------------
Reporter: cypherpunks | Owner: tbb-team
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Tor Browser | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID: #16110
Points: | Sponsor:
-----------------------------+----------------------
Using Javascript setTimeout, around 20ms timer resolution can be achieved.
This is likely sufficient for input fingerprinting.
Simple demo that logs a counter to the console.
{{{
<html>
<body onload="logTime()">
<p>Test</p>
<script>
var counter = 0;
function logTime() {
counter += 1;
var today = new Date();
console.log(today.getSeconds() + "." + today.getMilliseconds() + " " +
counter);
var t = setTimeout(logTime, 1);
}
</script>
</body>
</html>
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18279>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs