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

Fix XSS vulnerability by validating user input stream URL. #6538

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

yemaw
Copy link
Contributor

@yemaw yemaw commented Jul 3, 2024

This PR will...

Fix a XSS vulnerability by validating user input stream URL.

Why is this Pull Request needed?

XSS Proof: https://hlsjs-dev.video-dev.org/demo/?src=%3Cimg%20src%3D%22x%22%20onerror%3D%22alert(%27XSS%27)%22%3E&demoConfig=eyJlbmFibGVTdHJlYW1pbmciOnRydWUsImF1dG9SZWNvdmVyRXJyb3IiOnRydWUsInN0b3BPblN0YWxsIjpmYWxzZSwiZHVtcGZNUDQiOmZhbHNlLCJsZXZlbENhcHBpbmciOi0xLCJsaW1pdE1ldHJpY3MiOi0xfQ==

image

Are there any points in the code the reviewer needs to double check?

No.

Resolves issues:

XSS vulnerability (Snoatype Nexus IQ sonatype-2018-0455)

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants