Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1320452 - (CVE-2016-3079) two XSS issues due to element creation in SSM (Perl stack) and displaying outside of it
(CVE-2016-3079) two XSS issues due to element creation in SSM (Perl stack) an...
Status: CLOSED ERRATA
Product: Red Hat Satellite 5
Classification: Red Hat
Component: WebUI (Show other bugs)
570
Unspecified Unspecified
unspecified Severity low
: ---
: ---
Assigned To: Grant Gainey
Red Hat Satellite QA List
: Security
Depends On:
Blocks: CVE-2016-3079
  Show dependency treegraph
 
Reported: 2016-03-23 05:19 EDT by Jan Hutař
Modified: 2016-04-04 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version: spacewalk-java-2.3.8-134-sat
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-04-04 11:37:25 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:0590 normal SHIPPED_LIVE Moderate: spacewalk-java security update 2016-04-04 15:35:36 EDT

  None (edit)
Description Jan Hutař 2016-03-23 05:19:23 EDT
Description of problem:
There are two XSS issues due to element creation in SSM (Perl stack) and displaying outside of it


Version-Release number of selected component (if applicable):
spacewalk-java-2.3.8-129.el6sat.noarch
spacewalk-html-2.3.2-34.el6sat.noarch


How reproducible:
always


Steps to Reproduce:
1/a. Systems -> select ~2 with Provisioning add-on entitlement
     -> [Manage] in upper right corner of the page
 /b. SSM -> Provisioninng -> Tag Systems -> enter '"><script>alert()</script>'
     -> Tag Current Snapshots
 /c. SSM -> Systems -> <one_of_the_systems> -> Provisioning -> Snapshot Tags
2/a. Systems -> Systems Set Manager
 /b. SSM -> in "Groups: Create and manage groups" click "Create"
 /c. Fill name: '"><script>alert(1)</script>' and random description
 /d. Systems -> <random_system> -> Groups -> Join
 /e. join that group
 /f. you are redirected to Groups -> List/Leave


Actual results:
In 1/c, 2/d and 2/f JavaScript alerts get executed


Expected results:
No alerts


Additional info:
I'm OK with merging this bug into different XSS related if that makes sense.
Comment 1 Grant Gainey 2016-03-28 14:58:45 EDT
spacewalk.github: 
7920542f
Comment 4 Jan Hutař 2016-03-30 05:50:23 EDT
I'm sorry, this was not part of initial reproducer, but realized and tested just now:

1/a. Systems -> select ~2 with Provisioning add-on entitlement
     -> [Manage] in upper right corner of the page
 /b. SSM -> Provisioninng -> Tag Systems -> enter '"><script>alert()</script>'
     -> Tag Current Snapshots
 /c. SSM -> Systems -> <one_of_the_systems> -> Provisioning -> Snapshot Tags

new part:

 /d. SSM -> Systems -> <one_of_the_systems> -> Provisioning -> Snapshots
     -> <snapshot_with_tag> -> Snapshot Tags

This page allows XSS as well.
Comment 5 Jan Hutař 2016-03-30 05:52:58 EDT
Also this one:

 /e. SSM -> Systems -> <one_of_the_systems> -> Provisioning -> Snapshot Tags
     -> select <xss_tag> using checkbox -> [Remove Tags]

Page "Confirm Snapshot Tag Removal" triggers it.
Comment 6 Jan Hutař 2016-03-30 05:59:48 EDT
And while on that confirm-*-removal-note, one new step for the second issue here:

2/a. Systems -> Systems Set Manager
 /b. SSM -> in "Groups: Create and manage groups" click "Create"
 /c. Fill name: '"><script>alert(1)</script>' and random description
 /d. Systems -> <random_system> -> Groups -> Join
 /e. join that group
 /f. you are redirected to Groups -> List/Leave

new part is:

 /g. Systems -> System Groups -> <xss_group> -> Delete Group

This "System Group Deletion Confirmation" shows XSS and:

 /h. ... -> Confirm

this page saying 'System group "">" deleted.' as well.
Comment 7 Jan Hutař 2016-03-30 06:07:40 EDT
Grr. Note that you can create system group with malicious name using API as well:

  print client.systemgroup.create(key, 'bz1181152create"><script>alert("created name")</script>', 'a"><script>alert("created desc")</script>')

and to extend issue 2 even more:

 /i. Users -> <user> -> System Groups
 /j. Admin -> Users -> <user> -> System Groups
Comment 8 Grant Gainey 2016-03-30 13:25:57 EDT
spacewalk-.github:
b6491eba
Comment 13 errata-xmlrpc 2016-04-04 11:37:25 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-0590.html

Note You need to log in before you can comment on or make changes to this bug.