terrylinooo / githuber-md

Markdown editor plugin for WordPress.
GNU General Public License v3.0
610 stars 89 forks source link

There is a stored XSS vulnerability #316

Closed Sugobet closed 10 months ago

Sugobet commented 1 year ago

When I used this plugin to write MD articles, I encountered a stored XSS vulnerability

Steps to reproduce the behavior:

  1. Enable WP Githuber MD v1.16.2 plugin

  2. Write new articles (via MD editor of this plugin)

  3. Insert the following JS code:(Note that I added Tab spaces!!!)

  4. Publish articles

image

image

Additional context

(Note that I added Tab spaces!!!),,,As an article, it should not take the content of the article as js code and let the client browser execute it, which is very dangerous and may lead to phishing

Server environment

github-actions[bot] commented 10 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 2 days.

github-actions[bot] commented 10 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.