mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
Fix XSS in Alert, Carousel, Collapse, Dropdown and Modal
This commit is contained in:
@@ -66,7 +66,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn" data-toggle="collapse" data-target="<img src=x onerror=alert(0)>">
|
||||
Collapse with an XSS
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- JavaScript Includes -->
|
||||
|
||||
@@ -162,6 +162,9 @@
|
||||
Tall body content to force the page to have a scrollbar.
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="<div class="modal fade the-bad" tabindex="-1" role="dialog"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button><h4 class="modal-title">The Bad Modal</h4></div><div class="modal-body">This modal's HTTML source code is declared inline, inside the data-target attribute of it's show-button</div></div></div></div>">
|
||||
Launch XSS modal
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- JavaScript Includes -->
|
||||
|
||||
Reference in New Issue
Block a user