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

Stored XSS in markdown preview #80

Open
fakeboboliu opened this issue Aug 21, 2021 · 0 comments
Open

Stored XSS in markdown preview #80

fakeboboliu opened this issue Aug 21, 2021 · 0 comments

Comments

@fakeboboliu
Copy link

详情:cloudreve/Cloudreve#986

成因:https://github.com/kkfor/for-editor/blob/d97c009dd13c39c02163327a85500cf4de1cc90a/src/index.tsx#L439 将文本直接使用 dangerouslySetInnerHTML ,造成 xss

建议:换个库

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

No branches or pull requests

1 participant