Allow data image encoded src in formattedtext

Description

It would be useful to allow the Data URI scheme for encoded images. We're working on a feature to embed images in the content to make them easier to share and it's blocking them because such a pattern isn't defined.

https://en.wikipedia.org/wiki/Data_URI_scheme

data: src has some security issues with certain tags, but no known issues for img tags, and with a regex limited to "data:image" I can't find any security issues at all.

http://stackoverflow.com/questions/11228771/are-data-uris-on-imgs-xss-exploitable

Attachments

1

Activity

Show:

Sam Ottenhoff April 23, 2014 at 4:10 PM

1.3.x r308546

Hudson CI Server August 27, 2013 at 4:14 PM

Integrated in kernel-trunk #694 (See http://builds.sakaiproject.org:8080/job/kernel-trunk/694/)
replace inadvertent tab with spaces (Revision 129117)
allow data image encoded src in AntiSamy policy (Revision 129116)

Result = SUCCESS

Sam Ottenhoff August 27, 2013 at 3:58 PM

Replaced tab with spaces in r129117

Sam Ottenhoff August 27, 2013 at 3:55 PM

Trunk commit r129116

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Created August 2, 2013 at 6:48 PM
Updated March 23, 2022 at 3:03 PM
Resolved August 27, 2013 at 3:55 PM