-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inproper data handling leads to crashes and local code execution #25
Comments
Thank you for your great input! I will try to fix these issues for the next release. |
Regarding 85c2ceb and 216cfc4, use some existing library to prevent javascript injection. Preventing XSS is not a trivial task, it's very difficult to blacklist all the possibilities. |
I am aware of the fact that XSS fixing is not trivial task. In my commits I was searching for a quick fix of the issues you mentioned. In a future releases of tagspaces I will definitely consider integrating of some library for the XSS prevention. |
Multiple outputs are not properly sanitised.
Examples
Filenames in perspectiveList
Filenames are not properly sanitised. Proof of concept:
touch "<img src=x onerror=alert(1)>qwerty"
viewerBrowser, viewerMD, viewerText and editorHTML
It's is possible to render any html code and because of node-webkit architecture we have ability to access the file system or execute arbitrary command using nodejs modules.
Location name in remove dialog
Same situation as in viewers

Tag names
Special characters lead to unspecified behaviour and crashes.
Solutions
The text was updated successfully, but these errors were encountered: