A cross-site scripting (XSS) flaw was found in the way Darkfish Rdoc HTML generator / template of RDoc, HTML and command-line documentation producing tool for Ruby, performed sanitization of certain values when creating Rdoc documentation. When Ruby on Rails application exposed its documentation via network, a remote attacker could provide a specially-crafted URL that, when opened would lead to arbitrary web script or HTML code execution in the context of (particular Ruby on Rails application) user's session. This issue affects RDoc versions 2.3.0 to 3.12.
This issue affects the versions of the rubygem-rdoc package, as shipped with Red Hat OpenShift Enterprise, Red Hat Subscription Asset Manager, Red Hat CloudForms System Engine, and Red Hat CloudForms Cloud Engine. -- This issue affects the versions of the rubygem-rdoc package, as shipped with Fedora release of 16, 17, and 18.
Acknowledgements: Red Hat would like to thank Eric Hodel of RDoc upstream for reporting this issue. Upstream acknowledges Evgeny Ermakov as the original issue reporter.
External References: http://www.ruby-lang.org/en/news/2013/02/06/rdoc-xss-cve-2013-0256/
Created rubygem-rdoc tracking bugs for this issue Affects: fedora-all [bug 908358]
Relevant upstream patch: https://github.com/rdoc/rdoc/commit/ffa87887ee0517793df7541629a470e331f9fe60
RDoc 3.9.5, 3.12.1, and 4.0.0.rc.2 announcement: http://blog.segment7.net/2013/02/06/rdoc-xss-vulnerability-cve-2013-0256-releases-3-9-5-3-12-1-4-0-0-rc-2
This issue has been addressed in following products: CloudForms for RHEL 6 Via RHSA-2013:0548 https://rhn.redhat.com/errata/RHSA-2013-0548.html
This issue has been addressed in following products: Red Hat Subscription Asset Manager 1.2 Via RHSA-2013:0686 https://rhn.redhat.com/errata/RHSA-2013-0686.html
This issue has been addressed in following products: RHEL 6 Version of OpenShift Enterprise Via RHSA-2013:0701 https://rhn.redhat.com/errata/RHSA-2013-0701.html
This issue has been addressed in following products: RHEL 6 Version of OpenShift Enterprise Via RHSA-2013:0728 https://rhn.redhat.com/errata/RHSA-2013-0728.html
rubygem-rdoc-3.12-5.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
rubygem-rdoc-3.12-6.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
The Red Hat Security Response Team has rated this issue as having moderate security impact in CloudForms 1.1. This issue is not currently planned to be addressed in future updates.