Yesterday night a 0-Day Exploit for Tor-Browser was posted on the torproject.org mailing list. Tor-Browser is used to anonymously surf the internet or the darknet.
We have analyzed the exploit in our SecurityLabs and found that the security issue is a use-after-free vulnerability in the SVG-Animation module and is also present in the latest Firefox release. The existing exploit code can easily be ported to standard Firefox. Therefore Firefox users should be extremely careful until a patch is available.
The exploit has an all around professional touch and uses state of the art exploitation techniques. Looking at it on a high level it contains all the standard elements: a heap-spray is used to defy ASLR followed by a ROP-Chain to defeat DEP.
Using the import table of XUL.dll instead of the export table of kernel32.dll itself also deserves a mention. Some Exploit-Protection mechanisms like Microsoft’s EMET are soft to exploits using the import-table of unprotected libraries to retrieve the addresses of otherwise protected exports.
The shellcode looks extremely familiar. It is basically a slightly updated version of the “FBI-Exploit” from 3 years ago . Besides being fully interchangeable with any shellcode, it may be interesting to look at the shellcode that is available to us in the exploit in its posted form. The purpose is to retrieve the network interfaces’ mac address and report it to a server. This is most likely used to deanonymize certain Tor-Users. There is no functionality to retrieve further commands or execute anything else besides its original functionality. This is a big difference to traditional exploit kits or other targeted attacks.
The target IP address (18.104.22.168) for this information is located in Europe (France) which may or may not be interesting for attribution.
The shellcode looks clean and organized. It contains error checking and cleans up after it has fulfilled its purpose. The needed API’s are resolved by the shellcode using the export table of the containing libraries this time.
The Bug is new but the purpose seems to be the same. Based on the shellcode, the exploit looks like a new attempt to deanonymize targeted Tor Users. There is no persistent threat, everything is done in memory, therefore even the newly introduced Sandbox in Firefox is nothing that can stop this particular attack. OLD:Firefox users should use another browser until the vulnerability is fixed. NEW:According to Mozilla's blog, they have released an update for it's Firefox browser which users should install immediately. OLD:Users of TorBrowser should consider that their anonymity is currently not given. NEW:Fortunately, the Tor Project Developers also released an update, as stated on their website. Users are advised to update and restart afterwards.
Other exploit mitigation techniques integrated into other modern browsers like: Control-Flow-Guard, Separate Heap or Delayed Free may have been enough to prevent the exploitation of the bug, but of course there is no guarantee. G Data customers are protected using a variety of technologies including of course the G Data ExploitProtection.