First published: Fri Mar 28 2025(Updated: )
### 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()`.  An administrator will now see this redirect in their overview of the page.  If they click the link on the right, it triggers the XSS.  ### Impact A publisher may attempt to use this vulnerability to escalate their privileges and become an administrator.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
Publify | <10.0.1 | |
publify_core | <10.0.2 | |
rubygems/publify_core | <10.0.2 | 10.0.2 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-39311 has a severity rating of medium due to the potential for cross-site scripting (XSS) attacks.
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.
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.
CVE-2024-39311 is categorized as a cross-site scripting (XSS) vulnerability.
Yes, CVE-2024-39311 can allow attackers to perform XSS attacks specifically against administrators of a Publify application.