I've stumbled upon following examples of XSS attacks on OWASP:
Other damaging attacks include the disclosure of end user files, installation of Trojan horse programs...
As I know a classic XSS attack that uses JS has very restrictive access (if at all) to user end files and the OS itself because of the browser's sandbox. So I would like to know how is it even possible or maybe am I missing something? And does anyone has a scenario for such an attack?