Multiple cross-site scripting (XSS) flaws were found in the way Red Hat Satellite and Spacewalk services used to sanitize content of various query string (QS) variables when performing search for various entities: * when performing search for software channels value of 'whereCriteria' QS variable was incorrectly sanitized, * when performing search for scap audit results the values of the following QS variables were incorrectly sanitized: 'end_year', 'start_hour', 'end_am_pm', 'end_day', 'end_hour', 'end_minute', 'end_month', 'end_year', 'optionScanDateSearch', 'result_filter', 'search_string', 'show_as', 'start_am_pm', 'start_day', 'start_hour', 'start_minute', 'start_month', 'start_year', and 'whereToSearch', * when performing search for errata the values of the following QS variables were incorrectly sanitized: 'end_minute', 'end_month', 'end_year', 'errata_type_bug', 'errata_type_enhancement', 'errata_type_security', 'fineGrained', 'list_1892635924_sortdir', 'optionIssueDateSearch', 'start_am_pm', 'start_day', 'start_hour', 'start_minute', 'start_month', 'start_year', and 'view_mode', * when performing search for systems the value of the 'fineGrained' QS variable was incorrectly sanitized. Remote attacker could provide a specially-crafted web page that, when visited by authenticated Red Hat Satellite or Spacewalk user would lead to arbitrary HTML or web script execution in the context of Red Hat Satellite's / Spacewalk's user's session.
Acknowledgements: Red Hat would like to thank Adam Willard and Jose Carlos de Arriba of Foreground Security for reporting this issue.
The root cause of this issue is within PAGE_SIZE_LABEL_SELECTED.
commits: fca790234a2d15e7e09875dab5ab5890aba6c593 (majority of the changes) bb9b185143cae97537f0f946bcbfae0252aaf301 (LABEL_SELECTED fix) cafa97d07dd5c0cf6ffda8daa28bcba8e53d6451 (make checkstyle happy) 0d5abafa7732aa74206389c1463888f11282fcf6 (fix satellite-branding)
This issue has been addressed in following products: Red Hat Satellite Server v 5.6 Via RHSA-2014:0148 https://rhn.redhat.com/errata/RHSA-2014-0148.html