### [CVE-2017-5404](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5404) ![](https://img.shields.io/static/v1?label=Product&message=Firefox%20ESR&color=blue) ![](https://img.shields.io/static/v1?label=Product&message=Firefox&color=blue) ![](https://img.shields.io/static/v1?label=Product&message=Thunderbird&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=%3C%2045.8%20&color=brighgreen) ![](https://img.shields.io/static/v1?label=Version&message=%3C%2052%20&color=brighgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=Use-after-free%20working%20with%20ranges%20in%20selections&color=brighgreen) ### Description A use-after-free error can occur when manipulating ranges in selections with one node inside a native anonymous tree and one node outside of it. This results in a potentially exploitable crash. This vulnerability affects Firefox < 52, Firefox ESR < 45.8, Thunderbird < 52, and Thunderbird < 45.8. ### POC #### Reference - https://bugzilla.mozilla.org/show_bug.cgi?id=1340138 - https://www.exploit-db.com/exploits/41660/ #### Github - https://github.com/googleprojectzero/domato - https://github.com/marckwei/temp - https://github.com/merlinepedra/DONATO - https://github.com/merlinepedra25/DONATO