Code Monkey home page Code Monkey logo

Comments (14)

fritx avatar fritx commented on May 16, 2024 3

@88250 发布了嘛?我引用的[email protected] 还是存在这个问题,可以弹出XSS

@nicejade 老哥,我最近做一个 https://coldemo.js.org/ 是一个demo gallery站点,今天把vditor和arya也加了进去,还望许可 😆

from markdown-online-editor.

88250 avatar 88250 commented on May 16, 2024 2

这个问题 Vditor 已经修复,可以考虑同步一波。

from markdown-online-editor.

Vanessa219 avatar Vanessa219 commented on May 16, 2024 2

@fritx

const vditor = new Vditor()
vditor.vditor.lute.SetSanitize

from markdown-online-editor.

Vanessa219 avatar Vanessa219 commented on May 16, 2024 1

@fritx Vanessa219/vditor#376

from markdown-online-editor.

nicejade avatar nicejade commented on May 16, 2024

@Leeport 嗯,好的,感谢提醒,这些安全性相关的,确实还没给予处理;会尽快修复类似漏洞。

from markdown-online-editor.

nicejade avatar nicejade commented on May 16, 2024

@88250 赞👍,将尽快同步。

from markdown-online-editor.

fritx avatar fritx commented on May 16, 2024

轩轩大

from markdown-online-editor.

88250 avatar 88250 commented on May 16, 2024

@fritx 麻烦给我一下 Markdown 原文,谢谢

from markdown-online-editor.

fritx avatar fritx commented on May 16, 2024

@88250 #7 (comment) 就把楼主的这段粘贴进我的这个页面
https://coldemo.js.org/#/playground/vditor-rich.md 的editor里 能弹出XSS

页面里加载的是[email protected] 调用的.preview()方法
PS:我把vditor和arya也加了进去,还望许可 😆

from markdown-online-editor.

fritx avatar fritx commented on May 16, 2024

调用的源码在这里 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.

88250 avatar 88250 commented on May 16, 2024

@fritx 分屏预览模式下默认没有开启过滤,可通过 vditor.lute.SetSanitize(true) 来开启。具体可参考 88250/lute#51

from markdown-online-editor.

fritx avatar fritx commented on May 16, 2024

赞,感谢,刚没仔细看到默认不开启,我试试

from markdown-online-editor.

fritx avatar fritx commented on May 16, 2024

@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.

fritx avatar fritx commented on May 16, 2024

image

@Vanessa219 我引的[email protected] 截图里 new 出来的示例上 也不存在 viditor或lute这两个属性
而且我的场景只调了Vditor.preview这个静态方法 😅

from markdown-online-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.