Comments (14)
@88250 发布了嘛?我引用的[email protected] 还是存在这个问题,可以弹出XSS
@nicejade 老哥,我最近做一个 https://coldemo.js.org/ 是一个demo gallery站点,今天把vditor和arya也加了进去,还望许可 😆
from markdown-online-editor.
这个问题 Vditor 已经修复,可以考虑同步一波。
from markdown-online-editor.
const vditor = new Vditor()
vditor.vditor.lute.SetSanitize
from markdown-online-editor.
from markdown-online-editor.
@Leeport 嗯,好的,感谢提醒,这些安全性相关的,确实还没给予处理;会尽快修复类似漏洞。
from markdown-online-editor.
@88250 赞👍,将尽快同步。
from markdown-online-editor.
轩轩大
from markdown-online-editor.
@fritx 麻烦给我一下 Markdown 原文,谢谢
from markdown-online-editor.
@88250 #7 (comment) 就把楼主的这段粘贴进我的这个页面
https://coldemo.js.org/#/playground/vditor-rich.md 的editor里 能弹出XSS
页面里加载的是[email protected] 调用的.preview()方法
PS:我把vditor和arya也加了进去,还望许可 😆
from markdown-online-editor.
调用的源码在这里 https://github.com/coldemo/gallery.code/blob/master/src/playground/codeTransform.ts#L95-L134 (https://github.com/coldemo/gallery.code/blob/master/src/playground/codeTransform.ts#L95-L136)
from markdown-online-editor.
@fritx 分屏预览模式下默认没有开启过滤,可通过 vditor.lute.SetSanitize(true)
来开启。具体可参考 88250/lute#51
from markdown-online-editor.
赞,感谢,刚没仔细看到默认不开启,我试试
from markdown-online-editor.
@88250 window.Lute (1.3.3) 没有这个方法,vditor (3.2.0)上也没lute这个引用
github code 搜 lute.setsanitize 只有一处go的结果,暂时没有其他js参考
https://github.com/search?q=lute.setsanitize&type=Code
from markdown-online-editor.
@Vanessa219 我引的[email protected] 截图里 new 出来的示例上 也不存在 viditor或lute这两个属性
而且我的场景只调了Vditor.preview这个静态方法 😅
from markdown-online-editor.
Related Issues (20)
- TextBundle 支持 HOT 1
- 怎么导出HTML呢? HOT 8
- [feature request]支持脑图、及通过脑图拖拽markdown文字 HOT 1
- 怎么编辑五线谱?how to edit music score HOT 1
- export pdf error HOT 1
- 写错了,抱歉。。 HOT 1
- 复制到公众号思维导图、数学公式不支持 HOT 2
- 能不能搞个docker版的? HOT 6
- 不支持[TOC]目录么 HOT 1
- #63
- 无法导出到本地 HOT 5
- 支持vue3吗 HOT 1
- 怎么在本地部署 HOT 1
- 自定义css
- 有计划添加导入本地markdown文档按钮的打算吗
- 全屏显示页面不会随光标移动
- 已对当前最新版本进行docker打包 HOT 3
- 希望以后大佬们能支持组件化接入方案
- TypeError: prettier.resolveConfig.sync is not a function HOT 1
- 请问要怎么修改这个首页指向的链接,我尝试改了好几个文件都没有效果 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markdown-online-editor.