-
Bug
-
Resolution: Fixed
-
Highest
-
None
The ChartBoardAction.doSetCurveColor method is vulnerable to persistent XSS when saving an unsanitized color parameter in user preferences. The set method isn’t protected from XSRF, allowing exploitation from remote attackers.
File: greenhopper\src\main\java\com\pyxis\greenhopper\jira\Actions\ChartBoardAction.java
ChartBoardAction.java
package com.pyxis.greenhopper.jira.actions; import java.io.IOException; import java.util.Set; ... @SuppressWarnings("serial") public class ChartBoardAction extends VersionBoardAction { ... protected String color; ... public String doSetCurveColor() { Set<CurveSettings> settings = getChartContext().getSettings(); for(CurveSettings curveSetting : settings) { if(curveSetting.getId().equals(curveId)) { curveSetting.setColor(color); break; } } getPreferences().setSettings(getChartContext().getSettingsId(), settings); getPreferences().save(); return SUCCESS; } ... public void setColor(String color) { this.color = color; }
[JSWCLOUD-9069] ChartBoardAction.doSetCurveColor Persistent XSS
Workflow | Original: JSWCLOUD Bug Workflow [ 3192799 ] | New: JAC Bug Workflow v3 [ 3474122 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JIRA Bug Workflow w Kanban v6 - Restricted [ 1886731 ] | New: JSWCLOUD Bug Workflow [ 3192799 ] |
Project Import | New: Sun Apr 02 01:01:23 UTC 2017 [ 1491094883663 ] |
Workflow | Original: JIRA Bug Workflow w Kanban v6 [ 908803 ] | New: JIRA Bug Workflow w Kanban v6 - Restricted [ 1551254 ] |
Labels | Original: fixme security security_codereview | New: cvss-high fixme security security_codereview |
Workflow | Original: GreenHopper Kanban Workflow 20141014 [ 747025 ] | New: JIRA Bug Workflow w Kanban v6 [ 908803 ] |
Remote Link | Original: This issue links to "Page (Extranet)" [ 53548 ] | New: This issue links to "Page (Extranet)" [ 53548 ] |
Remote Link | Original: This issue links to "Page (Extranet)" [ 53548 ] | New: This issue links to "Page (Extranet)" [ 53548 ] |
Remote Link | Original: This issue links to "Page (Extranet)" [ 53548 ] | New: This issue links to "Page (Extranet)" [ 53548 ] |
Remote Link | Original: This issue links to "Page (Extranet)" [ 53548 ] | New: This issue links to "Page (Extranet)" [ 53548 ] |