PT-2020-16405 · Hedgedoc+1 · Hedgedoc+2

Alemmi

·

Published

2020-12-28

·

Updated

2020-12-30

·

CVE-2020-26287

CVSS v3.1

8.7

High

VectorAV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions HedgeDoc versions prior to 1.7.1
Description The issue allows an attacker to inject arbitrary script tags in HedgeDoc notes using mermaid diagrams. Although the content security policy prevents loading scripts from most locations, www.google-analytics.com is allowed, which can be exploited using Google Tag Manager to inject arbitrary JavaScript and execute it on page load. Depending on the instance configuration, the attacker may not need authentication to create or edit notes.
Recommendations For HedgeDoc versions prior to 1.7.1, update to version 1.7.1 to resolve the issue. As a temporary workaround, consider disallowing www.google-analytics.com in the Content-Security-Policy header to minimize the risk of exploitation.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2020-26287
GHSA-G6W6-7XF9-M95P

Affected Products

Google Analytics
Google Tag Manager
Hedgedoc