Executive brief
Bootstrap, a popular web framework used for designing responsive websites, is vulnerable to a security flaw in its tooltip component. An attacker could potentially execute malicious scripts in a user's browser if the website uses the 'data-container' property of tooltips to display untrusted content. This could lead to unauthorized actions being performed on behalf of the user or the theft of sensitive session information.
Technical details
A cross-site scripting (XSS) vulnerability exists in Bootstrap's tooltip component due to improper neutralization of input in the 'data-container' property. An attacker can exploit this by injecting malicious scripts into the property, which are then executed in the context of the victim's browser when the tooltip is rendered. This is a network-reachable attack that requires user interaction (typically viewing a page with the malicious tooltip). The vulnerability affects Bootstrap versions 2.3.0 through 3.3.7 and 4.0.0 through 4.1.1. It has been patched in versions 3.4.0 and 4.1.2.
Affected products
- Bootstrap bootstrap >= 2.3.0, < 3.4.0
- Bootstrap bootstrap >= 4.0.0, < 4.1.2
- Bootstrap bootstrap-sass >= 2.0.4, < 3.4.0
- Bootstrap bootstrap.sass >= 4.0.0, < 4.1.2
Timeline
- 2018-07-12: patched: Bootstrap 4.1.2 released
- 2018-07-13: disclosed: NVD publication date
- 2018-09-13: advisory: GitHub Advisory published