Skip to content

ng2-tree rename is prone to XSS #241

Open
@sfilipi

Description

@sfilipi

Enable the right menu on ng2-tree.
Right click on a node -> Rename and enter the following as the new nodes name:

<img onerror="alert('hi')" src="/">

Notice the page runs the script.

The user input to the node name should be sanitized before use.
ng2treexss

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions