aboutsummaryrefslogtreecommitdiff
path: root/js/tests/visual/collapse.html
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2018-05-30 09:46:50 +0200
committerJohann-S <[email protected]>2018-06-01 09:10:25 +0200
commit149096016f70fd815540d62c0989fd99cdc809e0 (patch)
treef835dfb3032829e98592542e4da58d882911e59f /js/tests/visual/collapse.html
parent2d90d369bbc2bd2647620246c55cec8c4705e3d0 (diff)
downloadbootstrap-149096016f70fd815540d62c0989fd99cdc809e0.tar.xz
bootstrap-149096016f70fd815540d62c0989fd99cdc809e0.zip
fix(collapse): xss in parent option
Diffstat (limited to 'js/tests/visual/collapse.html')
-rw-r--r--js/tests/visual/collapse.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/tests/visual/collapse.html b/js/tests/visual/collapse.html
index 300592095..24698d764 100644
--- a/js/tests/visual/collapse.html
+++ b/js/tests/visual/collapse.html
@@ -54,6 +54,20 @@
</div>
</div>
</div>
+ <div class="card">
+ <div class="card-header" role="tab" id="headingFour">
+ <h5 class="mb-0">
+ <a class="collapsed" data-toggle="collapse" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
+ Collapsible Group Item with XSS in data-parent
+ </a>
+ </h5>
+ </div>
+ <div id="collapseFour" class="collapse" data-parent="<img src=1 onerror=alert(123) />" role="tabpanel" aria-labelledby="headingFour">
+ <div class="card-body">
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
+ </div>
+ </div>
+ </div>
</div>
</div>