vendor:
Availability Booking Calendar
by:
Andrey Stoykov
5.5
CVSS
MEDIUM
Cross-site scripting (XSS)
79
CWE
Product Name: Availability Booking Calendar
Affected Version From: 1
Affected Version To: 1
Patch Exists: NO
Related CWE:
CPE: a:availability_booking_calendar:availability_booking_calendar:1.0
Platforms Tested: Ubuntu 20.04
2023
Availability Booking Calendar v1.0 – Multiple Cross-site scripting (XSS)
This exploit allows an attacker to inject malicious JavaScript code into the web application, which is then executed by the victim's browser. The exploit is triggered when the user browses to the 'Bookings' page and selects 'All Bookings'. They can then edit a booking and enter a payload in the 'Promo Code' field. The payload in this case is 'TEST"><script>alert(`XSS`)</script>'. When the form is submitted, the payload is stored in the database and later displayed on the 'Bookings' page, resulting in the execution of the malicious script.
Mitigation:
To mitigate this vulnerability, input validation and output encoding should be implemented. All user-supplied input should be validated and sanitized to prevent the execution of malicious code. Additionally, output encoding should be applied when displaying user-supplied data to ensure that any injected code is treated as plain text and not executed by the browser.