Skip to content
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

Fix encoding issue with OC.Notification.show #25234

Merged

Conversation

nickvergessen
Copy link
Member

@nickvergessen nickvergessen commented Jan 20, 2021

Rename an existing filename to <img src=x onerror=prompt(1)>.jpg.
Try to rename <img src=x onerror=prompt(1)>.jpg with an invalid filename, like add a \ in it, will trigger the XSS attack.

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen
Copy link
Member Author

/backport to stable20

@nickvergessen
Copy link
Member Author

/backport to stable19

@skjnldsv skjnldsv merged commit 3478f39 into master Jan 21, 2021
@skjnldsv skjnldsv deleted the bugfix/noid/fix-encoding-issue-with-oc.notification.show branch January 21, 2021 07:25
@backportbot-nextcloud
Copy link

The backport to stable19 failed. Please do this backport manually.

@rullzer rullzer mentioned this pull request Jan 21, 2021
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants