-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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 Vulnerability on closeText option of Dialog jQuery UI 1.11.4 #1622
Conversation
(cherry picked from commit b2a477f)
(cherry picked from commit 1fb0879)
(cherry picked from commit ae577ae)
Fixes #10684 (cherry picked from commit 809cc0f) Conflicts: ui/selectmenu.js
(cherry picked from commit fe75984)
(cherry picked from commit c217007)
(cherry picked from commit 0566e99)
(cherry picked from commit d3bb0f7)
(cherry picked from commit a3b43ee)
(cherry picked from commit 337e411)
Fixes #10590 (cherry picked from commit 9493839)
Fixes #10669 (cherry picked from commit d8077dc)
When sorting tbody elements of a table the placeholder needs to have a tr with td elements to be visible. The appended elements are created in the same way as for the placeholder of a tr element; the first row of the sorted tbody is used for that. Fixes #10682 Closes gh-1380 (cherry picked from commit 962e05d)
Thank you for your pull request. It looks like this may be your first contribution to a jQuery Foundation project, if so we need you to sign our Contributor License Agreement (CLA). 📝 Please visit http://contribute.jquery.org/CLA/ to sign. After you signed, the PR is checked again automatically after a minute. If there's still an issue, please reply here to let us know. If you've already signed our CLA, it's possible your git author information doesn't match your CLA signature (both your name and email have to match), for more information, check the status of your CLA check. |
I couldn't submit the bug to the website http://bugs.jqueryui.com/newticket.
VULNERABILITY DETAILS
A potential bug enables us to inject the XSS content into closeText option using component ui dialog. As original of jQuery UI(https://api.jqueryui.com/dialog/#option-closeText), we shall not accept any HTML string inside it.
VERSION
Any site using the latest version jQuery UI 1.11.4 .
REPRODUCTION CASE
IN CONCLUSION
We expect that the html string isn't allowed in the closeText option as well as the popup alert not shown. If it displays, any attacker can take advantage of injecting the malicious XSS content into website.
Please see details at here http://jsfiddle.net/0wjdtcc6/