Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926069 (CVE-2024-27285) - <dev-ruby/yard-0.9.36: XSS vulnerability
Summary: <dev-ruby/yard-0.9.36: XSS vulnerability
Status: IN_PROGRESS
Alias: CVE-2024-27285
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Security
URL: https://github.com/advisories/GHSA-8m...
Whiteboard: B4 [glsa?]
Keywords:
Depends on: 932759
Blocks:
  Show dependency tree
 
Reported: 2024-03-03 08:07 UTC by Hans de Graaff
Modified: 2024-05-26 06:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(-)