Skip to content

Conversation

etpinard
Copy link
Contributor

resolves #642

See d58d3be and f6a5c67

etpinard added 3 commits July 11, 2016 16:19
- check for white list of anchor attributes
- check for correct 'xlink:show' value
- fixes #642
- strip only the leading '='
- replace & with '&' to make DOMParser happy
- wrap resulting href in ""
@etpinard etpinard added bug something broken status: reviewable labels Jul 11, 2016
assertAnchorLink(node, 'mailto:[email protected]');
});

it('wrap XSS attacks in href', function() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@scjody

The previous commit d58d3be also appears to have fix the XSS issue discovered in https://github.com/plotly/streambed/issues/7056 - would you mind reviewing this?

Copy link

Choose a reason for hiding this comment

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

Looks good to me! Let me know when it's on prod and I'll play with it a bit to be extra sure.

@etpinard etpinard merged commit 12bed39 into master Jul 12, 2016
@etpinard etpinard deleted the convert-to-svg branch July 12, 2016 14:38
rreusser added a commit that referenced this pull request Jul 27, 2016
rreusser added a commit that referenced this pull request Jul 27, 2016
rreusser added a commit that referenced this pull request Jul 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug something broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Link text with query params does not work

2 participants