CVE-2024-39311: Publify Vulnerable To Cross-Site Scripting (XSS) Via Redirects Requiring User Interaction
Summary A publisher on a publify application is able to perform a cross-site scripting attack on an administrator using the redirect functionality.
Details A publisher on a publify application is able to perform a cross-site scripting attack on an administrator using the redirect functionality. The exploitation of this XSS vulnerability requires the administrator to click a malicious link.
We can create a redirect to a javascript:alert() URL. Whilst the redirect itself doesn't work, on the administrative panel, an a tag is created with the payload as the URI. Upon clicking this link, the XSS is triggered.
An attack could attempt to hide their payload by using HTML, or other encodings, as to not make it obvious to an administrator that this is a malicious link.
PoC A publisher can create a new redirect as shown below. The payload used is javascript:alert(). !image
An administrator will now see this redirect in their overview of the page. !image
If they click the link on the right, it triggers the XSS. !image
Impact A publisher may attempt to use this vulnerability to escalate their privileges and become an administrator.
Other sources
Publify is a self hosted Web publishing platform on Rails. Prior to version 10.0.1 of Publify, corresponding to versions prior to 10.0.2 of the publifycore rubygem, publisher on a publify application is able to perform a cross-site scripting (XSS) attack on an administrator using the redirect functionality. The exploitation of this XSS vulnerability requires the administrator to click a malicious link. An attack could attempt to hide their payload by using HTML, or other encodings, as to not make it obvious to an administrator that this is a malicious link. A publisher may attempt to use this vulnerability to escalate their privileges and become an administrator. Version 10.0.1 of Publify and version 10.0.2 of the publifycore rubygem fix the issue.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-39311?
CVE-2024-39311 has a severity rating of medium due to the potential for cross-site scripting (XSS) attacks.
How do I fix CVE-2024-39311?
To fix CVE-2024-39311, upgrade to Publify version 10.0.1 or later, or to the publify_core gem version 10.0.2 or later.
Who is affected by CVE-2024-39311?
CVE-2024-39311 affects all users of Publify versions prior to 10.0.1 and the publify_core gem versions prior to 10.0.2.
What type of vulnerability is CVE-2024-39311?
CVE-2024-39311 is categorized as a cross-site scripting (XSS) vulnerability.
Can CVE-2024-39311 impact administrators?
Yes, CVE-2024-39311 can allow attackers to perform XSS attacks specifically against administrators of a Publify application.