[ 
https://issues.jenkins-ci.org/browse/JENKINS-11098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160480#comment-160480
 ] 

Martin Heinrich commented on JENKINS-11098:
-------------------------------------------

Here comes another example without security impact (this is part of the Console 
Output source - this part comes in the <pre>-tag):

[Tue Mar 20 14:41:00 CET 2012] [tc] [<span style="color: yellow;">warn</span>] 
'<span style="color: yellow;">   line 41 column 1 - Warning: trimming empty 
<dd></span>'

<span style="display: none;">[Tue Mar 20 14:41:00 CET 2012] [tc] 
[warn] ' line 41 column 1 - Warning: trimming empty 
&amp;lt;dd>'
</span>

The &amp;gt; right before the escape character is not escaped. Should be 
&amp;lt;dd&amp;gt;.
                
> Ansicolor Plugin makes console output view vulnerable to XSS attacks
> --------------------------------------------------------------------
>
>                 Key: JENKINS-11098
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-11098
>             Project: Jenkins
>          Issue Type: Bug
>          Components: plugin
>            Reporter: Karsten Elfenbein
>
> The plugin has a problem with XSS code.
> Just create a buildjob that executes the following shell command and have 
> ansicolor enabled.
> echo -e "\e[1;94m test<script>var xss = function()  { alert('not good');}; 
> xss();</script>"
> It needs the special char which seems to get filtered in Jira.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to