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: potential XSS vulnerabilities #7923

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: potential XSS vulnerabilities #7923

wants to merge 1 commit into from

Conversation

hshpy
Copy link
Contributor

@hshpy hshpy commented Feb 1, 2025

md文件渲染存在xss漏洞,低权限用户有上传权限可获取admin权限,rm文件自动加载,关闭文本预览无效,admin无感知,所以后端处理,但会导致浏览器无法编辑原文件。
txt文件预览页面选markdown with word wrap也会触发(预览里的文本类型都会触发)。
预览页面的html,open url也存在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

Successfully merging this pull request may close these issues.

1 participant