mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-26 08:42:44 +00:00
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
145285abf6
commit
8494f6a085
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue