Problem/Motivation

Seems that adding captions for remote videos don't filter the caption as the formatter for images does (with an Xss::filter).

Steps to reproduce

Add a caption to a video with something susceptible of having HTML on it, like a token, the caption will have HTML tags on it.

Proposed resolution

Add a Xss::filter to the caption.

MR incoming

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pcambra created an issue. See original summary.

pcambra’s picture

Status: Active » Needs review

  • pcambra committed 879de33d on 1.0.x
    Issue #3491410: Filter caption for videos
levmyshkin’s picture

Hi pcambra, thank you for your MR! It looks like big vulnerability, I will release a new tag for glightbox_media_video.

I copied code from this Colorbox Media Video module and it looks like there is also the same problem, I will raise a ticket for them.
https://www.drupal.org/project/colorbox_media_video

levmyshkin’s picture

Status: Needs review » Fixed
levmyshkin’s picture

Status: Fixed » Closed (fixed)