As the parallel thread rightly points out, this "breach" isn't really a Tor breach at all, but surfing to a set of compromised web sites that run as "hidden services" on the Tor network. Tor wasn't breached; rather, websites that some folks visit with Tor were hacked. Without diving into the technical details of the exploit, I think there are a couple of reminders that folks on this board that care about such matters should take away:
1) Always be wary of allowing javascript to run, and only allow it to run if it comes from a trusted source. If you are a Firefox user, learn to use the excellent 'NoScript' plugin (see noscript.net). As a rule you should be very wary of any "third-party javascript" (i.e. javascript that is coming from some site other than the one you are visiting). Probably the most common purpose of third-party javascript these days is for tracking you.
2) Pay attention to cookies being set --- only allow cookies from sites you have a trusted relationship with. If a cookie is being set for a site that you aren't (intentionally) visiting, that should be a red flag. Many browsers have the ability to disable third-party cookies altogether and to *ask* you before allowing first-party cookies to be set ... learn to use this. If your browser doesn't allow this level of control, then find a plugin or a different browser. Third-party cookies are almost always associated with tracking.
3) Use SSL (https) whenever possible. Without SSL, the web page can be manipulated (i.e. a "man in the middle" can inject malicious code) while in flight to your browser.
This particular exploit seems to have been packaged as third-party javascript and also utilized cookies. An alert user paying attention to javascript and cookies would probably not have been compromised.
And some thoughts to those of you that have websites of your own: carefully vet the javascript that you use; be extra wary of third-party javascript use (i.e. you domain name should be the source of all javascript, etc. that you use); support SSL connections; and consider adopting the practice of "progressive enhancement" (wikipedia.org/wiki/Progressive_enhancement). Can your site achieve it's goal if javascript and cookies, etc., are all disabled?