Bug 907820 (CVE-2013-0256)

Summary: CVE-2013-0256 rubygem-rdoc: Cross-site scripting in the documentation created by Darkfish Rdoc HTML generator / template
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bkabrda, bkearney, bleanhar, ccoleman, cpelland, dajohnso, dmcphers, esammons, iboverma, jeckersb, jialiu, jomara, katello-bugs, katello-internal, lmeyer, mcressma, mmccune, mmorsi, morazi, mrg-program-list, msuchy, mtasaka, sclewis, security-response-team, tagoh, tkramer, vanmeeuwen+fedora, vondruch
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RDoc 3.9.5, RDoc 3.12.1, RDoc 4.0.0.rc.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-03 05:19:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 907828, 907833, 907835, 908358, 908890, 909340, 913819, 915192, 928603, 928604, 928606, 928615, 995674    
Bug Blocks: 907842, 917158, 925830, 928635    

Description Jan Lieskovsky 2013-02-05 10:56:14 UTC
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.

Comment 2 Jan Lieskovsky 2013-02-05 11:01:24 UTC
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.

Comment 4 Jan Lieskovsky 2013-02-05 11:06:31 UTC
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.

Comment 12 Jan Lieskovsky 2013-02-06 14:07:07 UTC
External References:


http://www.ruby-lang.org/en/news/2013/02/06/rdoc-xss-cve-2013-0256/

Comment 13 Jan Lieskovsky 2013-02-06 14:08:59 UTC
Created rubygem-rdoc tracking bugs for this issue

Affects: fedora-all [bug 908358]

Comment 14 Jan Lieskovsky 2013-02-06 14:12:19 UTC
Relevant upstream patch:
  https://github.com/rdoc/rdoc/commit/ffa87887ee0517793df7541629a470e331f9fe60

Comment 15 Jan Lieskovsky 2013-02-07 10:33:22 UTC
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

Comment 18 errata-xmlrpc 2013-02-21 19:05:58 UTC
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

Comment 20 errata-xmlrpc 2013-03-26 19:17:32 UTC
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

Comment 22 errata-xmlrpc 2013-04-02 20:06:53 UTC
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

Comment 23 errata-xmlrpc 2013-04-09 18:13:50 UTC
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

Comment 24 Fedora Update System 2013-05-07 18:25:39 UTC
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.

Comment 25 Fedora Update System 2013-05-07 18:36:36 UTC
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.

Comment 26 Kurt Seifried 2013-07-26 06:16:28 UTC
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.