This question is locked. New answers and comments are not allowed.
Hi,
I am using ComboBox and see that there is a possibility for persisted xss attack. It happens when clicking down in combobox to select a valule.
Here is an example demonstrating the issue.
Create a model with 2 properties:
public Llist<SelectListItem> GroupList;
public string SelectedGroup;
<%Model.GroupList.Add(
new SelectListItem {
Text = "Test<script>alert('i can haz your data');</script>",
Value = "Test<script>alert('i can haz your data');</script>" }
); %>
<%= Html.Telerik().ComboBoxFor(x => x.SelectedGroup).
.BindTo(Model.GroupList)
.AutoFill(true)
.HighlightFirstMatch(true)
%>
I am using ComboBox and see that there is a possibility for persisted xss attack. It happens when clicking down in combobox to select a valule.
Here is an example demonstrating the issue.
Create a model with 2 properties:
public Llist<SelectListItem> GroupList;
public string SelectedGroup;
<%Model.GroupList.Add(
new SelectListItem {
Text = "Test<script>alert('i can haz your data');</script>",
Value = "Test<script>alert('i can haz your data');</script>" }
); %>
<%= Html.Telerik().ComboBoxFor(x => x.SelectedGroup).
.BindTo(Model.GroupList)
.AutoFill(true)
.HighlightFirstMatch(true)
%>