Opened 22 months ago

Closed 22 months ago

Last modified 22 months ago

#15200 closed bug (notabug)

Checkboxradio widget, label attribute DOM based XSS

Reported by: psych0tr1a Owned by:
Priority: minor Milestone: none
Component: ui.checkbxoradio Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:


Proof of concept:

<link rel="stylesheet" href="//">
<script src="//"></script>
<script src="//"></script>

  <legend>Select a Location: </legend>
  <label for="radio-1">New York</label>
  <input type="radio" name="radio-1" id="radio-1">
  <label for="radio-2">Paris</label>
  <input type="radio" name="radio-1" id="radio-2">
  <label for="radio-3">London</label>
  <input type="radio" name="radio-1" id="radio-3">
$( "input[type='radio']" ).checkboxradio({
  label: "<svg/onload=alert(1)>"

Change History (4)

comment:1 Changed 22 months ago by Scott González

Resolution: notabug
Status: newclosed

That's not XSS. That's you explicitly inserting a script.

comment:2 Changed 22 months ago by psych0tr1a

Sorry but you are absolutely wrong. Functionality means that there will be inserted text ane html, if the developers will use this functionality and there will be a user input then this is XSS. Example of similar bug

comment:4 Changed 22 months ago by Scott González

Those are both text options, this is an HTML option.

Note: See TracTickets for help on using tickets.