Skip to content

XSS vulnerability found in the lepture/editor markdown preview page #115

@jackfromeast

Description

@jackfromeast

Hi, lepture/editor developer!

Currently, the markdown rendering page does not sanitize user input for scripts, which can lead to Cross-site Scripting (XSS) in the markdown preview page.

Payload

<img src=1 onerror="javascript:alert(document.domain)">

tmp2

Impact

Users of lepture/editor who open untrusted markdown files on the platform (i.e., http://lab.lepture.com/editor/) are vulnerable to XSS attacks.

Note that, since the project doesn't set the security policy, I directly report the vulnerability here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions