Skip to content

Duplicate trusted-type policy should invalidate the existing policy too #593

@kkmuffme

Description

@kkmuffme

Currently, when a trusted-type policy already exists, it won't allow creating another one*
However, this allows an attacker to front-run policy creation, and is therefore not secure.

Instead, when trying to create a duplicate policy, it should also set the existing one to disabled (= instead of calling its methods' just treat it like its' methods always return null?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions