Skip to content

Commit

Permalink
Merge pull request Netflix#1606 from atoulme/issue_1456
Browse files Browse the repository at this point in the history
Escape user entered input to avoid HTML injection. This fixes Netflix#1456
  • Loading branch information
mattrjacobs authored Jun 14, 2017
2 parents 027578a + a938284 commit 1460419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hystrix-dashboard/src/main/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

streams.push(s);
$('#streams').html('<table>' + _.reduce(streams, function(html, s) {
return html + '<tr><td>' + s.name + '</td><td>' + s.stream + '</td> <td><a href="#" onclick="removeStream(this);">Remove</a></td> </tr>';
return html + '<tr><td>' + _.escape(s.name) + '</td><td>' + _.escape(s.stream) + '</td> <td><a href="#" onclick="removeStream(this);">Remove</a></td> </tr>';
}, '') + '</table>');

$('#message').html("");
Expand Down

0 comments on commit 1460419

Please sign in to comment.