I am wondering what kind of category cross-site-scripting would be if it's injected in the local storage. Would it be "stored", "reflected" or maybe something else?
An example of what I mean:
- I found a website that is vulnerable for reflected XSS (lets refer to it as vulnerable.com).
- Using this reflected XSS I edit some JSON in the localStorage.
- I changed a part of the JSON to this:
"imgUrl":"https://vulnerable.com/products/some-product.jpg\" onload=\"alert(1)",
- I changed a part of the JSON to this:
- When the user restarts the browser and opens vulnerable.com, an alert will popup.
OWASP states that it's not "stored" (source):
Stored attacks are those where the injected script is permanently stored on the target servers, such as in a database, in a message forum, visitor log, comment field, etc.
But OWASP also states that it's not "reflected" (source):
Reflected attacks are those where the injected script is reflected off the web server, such as in an error message, search result, or any other response that includes some or all of the input sent to the server as part of the request.
Is there anyone who knows?