Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#15199 closed bug (notabug)

input widget, content argument DOM based XSS

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


Proof of concept:

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

<input title="Input help">

$( document ).tooltip({
content: "<img src=s onerror=alert(1)>"

Change History (4)

comment:1 Changed 5 years ago by Scott González

Component: ui.widgetui.tooltip
Resolution: notabug
Status: newclosed

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

comment:2 Changed 5 years 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 5 years ago by Scott González

Those are both text options. This is an HTML option. If you allow user input, then it's your responsibility to clean it.

Note: See TracTickets for help on using tickets.