GHSA-qp29-wcc2-vmpc
JSON

4.3medium

Silverstripe HtmlEditor embed url sanitisation

Severity
4.3medium CVSS:3.1 by GitHub
Published
Last changed

Description

"Add from URL" doesn't clearly sanitise URL server side

HtmlEditorField_Toolbar has an action HtmlEditorField_Toolbar#viewfile, which gets called by the CMS when adding a media "from a URL" (i.e. via oembed).

This action gets the URL to add in the GET parameter FileURL. However it doesn't do any URL sanitising server side. The current logic will pass this through to Oembed, which will probably reject most dangerous URLs, but it's possible future changes would break this.

Affected

Product or packageVersionsReported by
silverstripe/framework (Packagist)from 3.0.0 before 3.2.1GitHub Advisory Database

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-qp29-wcc2-vmpc changed 2024-11-28CC-BY-4.0