How do sitebuilders like neocities handle cross-site scripting and sanitizing?

370 views Asked by At

In the Neocities editor, it seems possible to input vulnerable text and this will run in the browser (like the onload alert seen in the image below). Is there any security Neocities takes to sanitize user-generated pages and address vulnerabilities?

Neocities editor

1

There are 1 answers

5
fgb On

If sites are loaded from separate domains then they can't read the data from each other so the user site content can be loaded from separate domains from each other and separate from the main account pages.

You can control the JavaScript on your own site, but if you can't use that to run in the context of a different site, then it isn't a vulnerability.