PT-2022-13430 · Hakimel · Reveal.Js

R0Hansh

·

Published

2022-03-01

·

Updated

2022-03-09

·

CVE-2022-0776

CVSS v3.1

5.3

Medium

VectorAV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions hakimel/reveal.js versions prior to 4.3.0
Description The issue is related to Cross-site Scripting (XSS) - DOM. Specifically, the onmessage event listener in /plugin/notes/speaker-view.html does not check the origin of postMessage before adding the content to the webpage. This allows any origin to postMessage on the browser window and feed attacker's input to parts, which can execute arbitrary javascript code on the victim's browser window hosting reveal.js.
Recommendations For versions prior to 4.3.0, update to version 4.3.0 or later to resolve the issue. As a temporary workaround, consider disabling the onmessage event listener in /plugin/notes/speaker-view.html until a patch is available. Restrict access to the /plugin/notes/speaker-view.html module 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-2022-0776
GHSA-HHQJ-CFJX-VJ25

Affected Products

Reveal.Js