-
Bug
-
Resolution: Fixed
-
Highest
-
None
The ConfigurationAction.doSetCardColor method is vulnerable to persistent XSS when saving an unsanitized cardColor parameter. The vulnerability is triggered in several velocity templates during rendering:
- All-layouts.vm
- Card-layout.vm
- Issue-create.vm
- Issue-gadget-cardview.vm
- Issue-print.vm
- Issue.vm
- List-compact-layout.vm
- List-layout.vm
- Main.vm
- Ranking-page.vm
- Summary-layout.vm
- Task-options.vm
File: greenhopper\src\main\java\com\pyxis\greenhopper\jira\Actions\ConfigurationAction.java
ConfigurationAction.java
package com.pyxis.greenhopper.jira.actions; import java.util.ArrayList; import java.util.Arrays; ... @SuppressWarnings("serial") public abstract class ConfigurationAction extends BoardAction { ... private String cardColor; ... @RequiresXsrfCheck public String doSetCardColor() { if(getCanEditConfig()) { getConfiguration().setCardColor(typeId, cardColor); getConfiguration().save(); } return doSuccess(); } ... public void setCardColor(String cardColor) { this.cardColor = cardColor; }
[JSWCLOUD-9068] ConfigurationAction.doSetCardColor Persistent XSS
Workflow | Original: JSWCLOUD Bug Workflow [ 3192236 ] | New: JAC Bug Workflow v3 [ 3473890 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JIRA Bug Workflow w Kanban v6 - Restricted [ 1879939 ] | New: JSWCLOUD Bug Workflow [ 3192236 ] |
Project Import | New: Sun Apr 02 01:01:23 UTC 2017 [ 1491094883663 ] |
Workflow | Original: JIRA Bug Workflow w Kanban v6 [ 908633 ] | New: JIRA Bug Workflow w Kanban v6 - Restricted [ 1551251 ] |
Labels | Original: fixme security security_codereview | New: cvss-high fixme security security_codereview |
Workflow | Original: GreenHopper Kanban Workflow 20141014 [ 747027 ] | New: JIRA Bug Workflow w Kanban v6 [ 908633 ] |
Remote Link | Original: This issue links to "Page (Extranet)" [ 53620 ] | New: This issue links to "Page (Extranet)" [ 53620 ] |
Remote Link | Original: This issue links to "Page (Extranet)" [ 53620 ] | New: This issue links to "Page (Extranet)" [ 53620 ] |
Remote Link | Original: This issue links to "Page (Extranet)" [ 53620 ] | New: This issue links to "Page (Extranet)" [ 53620 ] |
Remote Link | Original: This issue links to "Page (Extranet)" [ 53620 ] | New: This issue links to "Page (Extranet)" [ 53620 ] |