I'm practicing stored XSS attacks on my vulnerable single page web application. I want to achieve some kind of DoS attack, where the page keeps reloading from the server.
I can easily inject
window.location.reload(true);. The problem is that I can only insert it at a certain location, for example,
www.myapp.com/test/, and because it is a single page application, it reloads that single HTML of the website, and starts the website at
www.myapp.com/. Therefore, my attack is not repeated, since it needs to reload to
www.myapp.com/test/ in order to call the reload or refresh method again.
Any ideas how DoS attack through XSS can be achieve in single page applications where the URL defaults to homepage after refresh?