Posted by usa on 6 Feb 2013
RDoc documentation generated by rdoc bundled with ruby are vulnerable to an XSS exploit. All ruby users are recommended to update ruby to newer version which includes security-fixed RDoc. If you are publishing RDoc documentation generated by rdoc, you are recommended to apply a patch for the documentation or re-generate it with security-fixed RDoc.
RDoc documentation generated by rdoc 2.3.0 through rdoc 3.12 and prereleases up to rdoc 4.0.0.preview2.1 are vulnerable to an XSS exploit. This exploit may lead to cookie disclosure to third parties.
The exploit exists in darkfish.js which is copied from the RDoc install location to the generated documentation.
RDoc is a static documentation generation tool. Patching the library itself is insufficient to correct this exploit. Those hosting rdoc documentation will need to apply the following patch.
Please apply the following patch to rdoc documentation. If applied while ignoring whitespace, this patch will correct all affected versions:
And, if you are using ruby 1.9, please update ruby-1.9.3 patchlevel 385. If you are using ruby 2.0.0 rc1 or prior or ruby trunk, please update to ruby 2.0.0 rc2 or trunk revision 39102 or later. You can also update RDoc itself with rubygems to RDoc 3.12.1 or RDoc 4.0.0.rc.2.
- All ruby 1.9 versions prior to ruby 1.9.3 patchlevel 383
- All ruby 2.0 versions prior to ruby 2.0.0 rc2 or prior to trunk revision 39102
This exploit was discovered by Evgeny Ermakov <firstname.lastname@example.org>.
This vulnerability has been assigned the CVE identifier CVE-2013-0256.
- Originally published at 2013-02-06 13:30:00 (UTC)