CWE
79
Advisory Published
Advisory Published
Updated

CVE-2024-45803: Cross site scripting (XSS) Vulnerability on route /wireui/button?label=Content in wireui

First published: Tue Sep 17 2024(Updated: )

### Summary A potential Cross-Site Scripting (XSS) vulnerability has been identified in the `/wireui/button` endpoint, specifically through the `label` query parameter. Malicious actors could exploit this vulnerability by injecting JavaScript into the `label` parameter, leading to the execution of arbitrary code in the victim's browser. ### Details The `/wireui/button` endpoint dynamically renders button labels based on user-provided input via the `label` query parameter. Due to insufficient sanitization or escaping of this input, an attacker can inject malicious JavaScript. The following URL demonstrates the vulnerability: ``` https://wireui.dev/wireui/button?label=Cancel&1%25%7ds8dk0%3E%3Cscript%3Ealert(1)%3C/script%3Ez1qt3=1 ``` By crafting such a request, an attacker can inject arbitrary code that will be executed by the browser when the endpoint is accessed. ### Proof of Concept (PoC) To demonstrate the vulnerability, visit the following URL: ``` /wireui/button?label=<script>alert(1)</script> ``` Upon loading the page, the injected JavaScript will execute, displaying an alert with the message "1." This confirms the vulnerability and highlights that user input is not being properly escaped or sanitized. ### Impact If exploited, this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the affected website. This could lead to: - **Session Hijacking**: Stealing session cookies, tokens, or other sensitive information. - **User Impersonation**: Performing unauthorized actions on behalf of authenticated users. - **Phishing**: Redirecting users to malicious websites. - **Content Manipulation**: Altering the appearance or behavior of the affected page to mislead users or execute further attacks. The severity of this vulnerability depends on the context of where the affected component is used, but in all cases, it poses a significant risk to user security.

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
composer/wireui/wireui>=2.0.0<2.1.3
2.1.3
composer/wireui/wireui<1.19.3
1.19.3
Wire<1.19.3
Wire>=2.0.0<2.1.3

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-45803?

    CVE-2024-45803 is classified as a medium-severity vulnerability due to its potential for Cross-Site Scripting (XSS) exploitation.

  • What systems are affected by CVE-2024-45803?

    CVE-2024-45803 affects versions of the WireUI package between 2.0.0 and 2.1.3, as well as all versions prior to 1.19.3.

  • How do I fix CVE-2024-45803?

    To remediate CVE-2024-45803, update the WireUI package to version 2.1.3 or above or to a version newer than 1.19.3.

  • What type of attack can exploit CVE-2024-45803?

    CVE-2024-45803 can be exploited through Cross-Site Scripting (XSS) by injecting malicious JavaScript into the label query parameter.

  • Is there a workaround for CVE-2024-45803?

    A temporary workaround for CVE-2024-45803 includes sanitizing input to the label query parameter to prevent script injection.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203