Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group popup menu items #653

Merged
merged 6 commits into from
Jun 28, 2022
Merged

Group popup menu items #653

merged 6 commits into from
Jun 28, 2022

Conversation

barmac
Copy link
Member

@barmac barmac commented Jun 27, 2022

Required for bpmn-io/bpmn-js#1682

@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Jun 27, 2022
@barmac barmac requested review from a team, Skaiir, marstamm, philippfromme, pinussilvestrus and smbea and removed request for a team, marstamm, Skaiir and pinussilvestrus June 27, 2022 15:09
groupContainer = domQuery('[data-group=' + grouping + ']', entriesContainer);

if (!groupContainer) {
groupContainer = domify('<div class="group" data-group="' + grouping + '"></div>');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should escape grouping to not allow XSS.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid point. We will need to fix it in the context pad as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now fixed, but there are also a couple of other places where we allow DOM injection. I will fix them.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woops woops :).

@bpmn-io-tasks bpmn-io-tasks bot added in progress Currently worked on and removed needs review Review pending labels Jun 27, 2022
@barmac barmac requested a review from nikku June 28, 2022 07:56
@barmac
Copy link
Member Author

barmac commented Jun 28, 2022

I fixed the existing XSS vulnerabilities via domify. Please have a look again.

Copy link
Member

@nikku nikku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great.

@fake-join fake-join bot merged commit afa4e0a into develop Jun 28, 2022
@fake-join fake-join bot deleted the group-popup-menu-items branch June 28, 2022 09:51
@bpmn-io-tasks bpmn-io-tasks bot removed the in progress Currently worked on label Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants