Repository navigation
Security
- Store media modal uploads under the extension of their detected content. Previously, a file accepted by its content (for example a PNG or SVG) but named
page.htmlorscript.jswas stored as.html/.json the public disk and served from the app's own origin. Thanks to @iefken for the responsible report. A security advisory will follow. - Only allow
http(s)and scheme-less iframe sources in YouTube and Vimeo embeds. Previously, ajavascript:URL entered as a video URL was stored and executed for visitors of the rendered page and for panel users opening the record. Thanks to @iefken for the responsible report. A security advisory will follow. - Document in the README that SVG uploads can contain script; remove
image/svg+xmlfromaccepted_file_typesif editors are not fully trusted.
Behaviour changes:
- An upload whose name does not match its content is stored with its content's extension (e.g. a JPEG named
scan.pngbecomes.jpg); a file without an extension gets one. Uploads with matching names are unchanged. - A YouTube or Vimeo embed URL that is not
http(s)is dropped and the iframe renders without asrc; an embed without asrcno longer throws. Normal embed URLs are unchanged.
Full Changelog: v3.5.17...v3.5.18