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 slide mode stored XSS #1650

Merged
merged 2 commits into from
Jan 25, 2021
Merged

Conversation

jackycute
Copy link
Member

Fixes #1648

Since meta-marked uses js-yaml and parse meta with yaml.safeLoad, there is no way the yaml can get js function or regex out. We only need to remove library load external resources.

@jackycute jackycute requested a review from Yukaii January 21, 2021 05:29
@Yukaii Yukaii temporarily deployed to codimd-bugfix-fix-revea-9pxttt January 21, 2021 05:29 Inactive
@jackycute
Copy link
Member Author

Hi @TobiasHoll, could you help us to validate if this fix works?

@jackycute
Copy link
Member Author

@TobiasHoll, I've tested the example you attached to #1648.
It seems no longer can reproduce.

@Yukaii Yukaii added this to the Next milestone Jan 25, 2021
@Yukaii Yukaii merged commit 452f9ac into develop Jan 25, 2021
@Yukaii Yukaii deleted the bugfix/fix-reveal-markdown-stored-xss branch January 25, 2021 08:50
@Yukaii Yukaii modified the milestones: Next, 2.4.0 May 11, 2021
edgarogh pushed a commit to WartaPoirier-corp/codimd that referenced this pull request Jun 7, 2022
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.

Stored XSS in slide mode (via reveal-markdown)
2 participants