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

XSS possible in data-target property of scrollspy #26627

Closed
1Jesper1 opened this issue May 29, 2018 · 3 comments
Closed

XSS possible in data-target property of scrollspy #26627

1Jesper1 opened this issue May 29, 2018 · 3 comments

Comments

@1Jesper1
Copy link

1Jesper1 commented May 29, 2018

XSS possible in scrollspy data-target attribute
data-target="<img src=1 onerror=alert(123) />"
Bootstrap 4.1.1 in combination with JQuery 3.3.1

@Johann-S
Copy link
Member

Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via CodePen or JS Bin and report back with your link, Bootstrap version, and specific browser and OS details.

@1Jesper1
Copy link
Author

https://jsbin.com/toxogipewo/edit?html,output

Browser: Chrome Version 66.0.3359.181 64x
OS: Windows 10 64x

@anarcat
Copy link

anarcat commented Aug 27, 2018

during some tests in the Debian LTS security team, it was determined that Bootstrap 2.0.2, 3.2.0 and 3.3.7 are not affected by this issue.

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

No branches or pull requests

4 participants
@anarcat @Johann-S @1Jesper1 and others