Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 926069 (CVE-2024-27285)

Summary: <dev-ruby/yard-0.9.36: XSS vulnerability
Product: Gentoo Security Reporter: Hans de Graaff <graaff>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: IN_PROGRESS ---    
Severity: normal CC: ruby
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/advisories/GHSA-8mq4-9jjh-9xrc
Whiteboard: B4 [glsa?]
Package list:
Runtime testing required: ---
Bug Depends on: 932759    
Bug Blocks:    

Description Hans de Graaff gentoo-dev Security 2024-03-03 08:07:49 UTC
Summary

The "frames.html" file within the Yard Doc's generated documentation is vulnerable to Cross-Site Scripting (XSS) attacks due to inadequate sanitization of user input within the JavaScript segment of the "frames.erb" template file.

Details

The vulnerability stems from mishandling user-controlled data retrieved from the URL hash in the embedded JavaScript code within the "frames.erb" template file. Specifically, the script lacks proper sanitization of the hash data before utilizing it to establish the top-level window's location. This oversight permits an attacker to inject malicious JavaScript payloads through carefully crafted URLs.
Comment 1 Larry the Git Cow gentoo-dev 2024-05-26 06:57:32 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a0fc49dd9e7cadbc5f24f4958ba0bb17a2b727b

commit 1a0fc49dd9e7cadbc5f24f4958ba0bb17a2b727b
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2024-05-26 06:56:29 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2024-05-26 06:56:45 +0000

    dev-ruby/yard: drop 0.9.34, 0.9.34-r2
    
    Bug: https://bugs.gentoo.org/926069
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/yard/Manifest              |  3 --
 dev-ruby/yard/yard-0.9.34-r2.ebuild | 76 -------------------------------------
 dev-ruby/yard/yard-0.9.34.ebuild    | 68 ---------------------------------
 3 files changed, 147 deletions(-)