mirror of https://github.com/status-im/codimd.git
Don't accept sandbox attribute
Because sandbox is whitelist attribute, attacker will be able to create iframe that has more permission than default. Signed-off-by: RyotaK <49341894+ry0tak@users.noreply.github.com>
This commit is contained in:
parent
85fc41c350
commit
f26a73213a
|
@ -20,7 +20,7 @@ whiteList['style'] = []
|
|||
// allow kbd tag
|
||||
whiteList['kbd'] = []
|
||||
// allow ifram tag with some safe attributes
|
||||
whiteList['iframe'] = ['allowfullscreen', 'name', 'referrerpolicy', 'sandbox', 'src', 'width', 'height']
|
||||
whiteList['iframe'] = ['allowfullscreen', 'name', 'referrerpolicy', 'src', 'width', 'height']
|
||||
// allow summary tag
|
||||
whiteList['summary'] = []
|
||||
// allow ruby tag
|
||||
|
|
Loading…
Reference in New Issue