Skip to content

Commit

Permalink
去掉 iframe 的白名单,防止xss
Browse files Browse the repository at this point in the history
源码模式下:`<iframe src="javascript::alert(1)"></iframe>`
  • Loading branch information
Phinome committed Sep 18, 2017
1 parent 43a1c94 commit 66711ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umeditor.config.js
Expand Up @@ -295,7 +295,7 @@ etpl.config({
header: ['style', 'class', 'id'],
hr: ['style', 'class', 'id'],
i: ['style', 'class', 'id'],
iframe: ['style', 'class', 'id', 'src', 'frameborder', 'data-latex'],
// iframe: ['style', 'class', 'id', 'src', 'frameborder', 'data-latex'],
img: ['src', 'alt', 'title', 'width', 'height', 'style', 'class', 'id', '_url'],
ins: ['datetime', 'style', 'class', 'id'],
li: ['style', 'class', 'id'],
Expand Down

0 comments on commit 66711ec

Please sign in to comment.