-
-
Notifications
You must be signed in to change notification settings - Fork 930
XSS 安全漏洞 #1162
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
Comments
Closed
#918 前端可能这种方式可以一定程度山解决 src 导致的 XSS,建议直接禁掉 iframe 标签的键入 |
恐怕不能禁止,规范里面是允许的。 |
对于使用 Vditor 的论坛之类的项目来说,这是算是一个严重的安全问题,轻则可以挂广告 |
后端也得过滤一下的。 |
emmm 那得写个状态机来获取 iframe 的 src 属性过滤吧😂 |
用现成的库可靠一些。 |
Case 3 单独在 #1205 中处理。 |
Thanks |
想禁用 <iframe src="https://www.hao123.com" style="width:800px"></iframe> 类似的标签是否可行 |
还有 embed 类似 iframe 的效果 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://huntr.dev/bounties/fa546b57-bc15-4705-824e-9474b616f628/
Case 1
Case 2
https://www.huntr.dev/bounties/8202aa06-4b49-45ff-aa0f-00982f62005c/
Case 3
https://ld246.com/article/1647990115728
在 #1205 中处理。
The text was updated successfully, but these errors were encountered: