Skip to content

XSS Vulnerability in Javascript: string #709

Open

Description

@pzyc0k

Test Environment
Google Chrome - Version 75.0.3770.142 (Official Build) (64-bit)

Description
A malicious actor may insert and finally execute malicious Javascript code.

Steps to reproduce

  1. Go to https://pandao.github.io/editor.md/en.html or any open editor.md apps
  2. In the edit mode, input the following malicious code snippet:
[xss poc](Javascript:alert("pzyc0 poc xss with cookie: " + document.cookie))

Impact
If an attacker can control a script that is executed in the victim's browser, then they can typically fully compromise that user.

Expected Results
No malicious Javascript code should be executed

Remediation
In general, it is highly recommended to implement input validation, output sanitization and escaping.

Proof-of-Concept
poc_xss

Activity

  1. changed the title [-]XSS Vulnerability in <href> label[/-] [+]XSS Vulnerability in Javas&#99;ript: string[/+] on Aug 2, 2019
  2. Xh4H commented on Dec 2, 2019

    @Xh4H

    Why are you using &#99; if a plain Javascript:alert works?

  3. alromh87 commented on Sep 9, 2020

    @alromh87

    Can you try against this version please, also be sure the have the iframe filter enabled:
    https://github.com/418sec/editor.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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