Skip to content

Sanitize file name#44

Merged
fyneworks merged 1 commit intofyneworks:masterfrom
lianee:sanitize-file-name
May 23, 2016
Merged

Sanitize file name#44
fyneworks merged 1 commit intofyneworks:masterfrom
lianee:sanitize-file-name

Conversation

@lianee
Copy link
Copy Markdown
Contributor

@lianee lianee commented May 23, 2016

fixes #41

File names are not sanitized before display.

This can lead to some fun XSS:
name a file abc"<img src="a" onerror="alert('haxxored');">def.jpg and open it with the demo page.

Any of these chars &<>"' in a file name is likely to produce display problems at least

@fyneworks
Copy link
Copy Markdown
Owner

Nice. Well spotted. Thanks for sharing!

@fyneworks fyneworks merged commit c396e4f into fyneworks:master May 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Files with <script> in their name break the plugin

2 participants