jquery-editable-select
jquery-editable-select copied to clipboard
Vulnerable for XSS even data is HTML entity encoded (?)
I noticed that jquery-editable-select executes JS from select box option value even the data is HTML entity encoded. Am I doing something wrong here or is this an issue with jquery-editable-select?
I've uploaded one sample script here: https://wapsi.kapsi.fi/test.php
Example:
<select style="width:500px;" class="dropdownselectwithinput">
<option selected value="Test XSS %B2 <script>alert('BUSTED!');</script>">Test XSS %B2 <script>alert('BUSTED!');</script></option>
</select>
<script>$('.dropdownselectwithinput').editableSelect({ filter: false, duration: 100 });</script>
I made a pull request which fixes this issue: #49