CVE-2023-47164
Medium · 6.1CVSS
6.1
EPSS
0.7%
Published
Nov 10, 2023
CISA due date
—
Cloudanix analysis
Attackers can trick hotel staff into running harmful code in their browsers simply by getting them to click a bad link while logged into the booking system, potentially exposing guest information.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Other
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability permits injection of arbitrary JavaScript into responses served to authenticated users, executing in the victim's browser context with the privileges of the logged-in session.
Why it matters to the business
Attackers can steal session tokens, perform actions on behalf of hotel staff, or exfiltrate guest and booking data, leading to privacy breaches, fraudulent reservations, and loss of customer trust in hospitality operations.
How an attack unfolds
An unauthenticated attacker crafts a malicious link or form input containing script payloads. When a user authenticates and the page renders the input, the script executes in the browser, enabling theft of cookies or unauthorized actions without further user interaction.
How to fix it
Upgrade to the latest version of HotelDruid that addresses input sanitization and output encoding. Until a patch is available, implement web application firewall rules to block common XSS patterns and enforce strict content security policy headers on all pages.
How to confirm the fix worked
Review application source and templates for proper escaping of all user-supplied data in HTML contexts; test login flows and administrative pages with known XSS test vectors to confirm scripts no longer execute.
Typical attack path
- Attacker identifies input fields or URL parameters that reflect user data without sanitization.
- Attacker crafts a URL or payload embedding malicious JavaScript targeting the login or dashboard views.
- Victim receives the link via email or other channel and authenticates to the application.
- Script executes in the victim's browser, exfiltrating session data or performing actions.
- Attacker uses stolen credentials or tokens for further unauthorized access.
How to detect it
Examine web server access logs for requests containing script tags, event handlers, or encoded JavaScript targeting login or dashboard endpoints; inspect browser console errors or network requests for unexpected outbound connections during authenticated sessions.
What your security team should do
- Prioritize upgrade or migration away from the affected HotelDruid release.
- Deploy compensating controls such as CSP headers and input validation at the web server or WAF layer.
- Monitor authentication and administrative page access logs for anomalous referrers or encoded script patterns.
- Educate staff on recognizing suspicious links that could trigger reflected XSS attacks.
The record
Cross-site scripting vulnerability in HOTELDRUID 3.0.5 and earlier allows a remote unauthenticated attacker to execute an arbitrary script on the web browser of the user who is logging in to the product.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | hoteldruid | 0 | No fix |
| Debian:12 | hoteldruid | 0 | No fix |
| Debian:13 | hoteldruid | 0 | 3.0.6-1 |
| Ubuntu:16.04:LTS | hoteldruid | 0 | No fix |
| Ubuntu:18.04:LTS | hoteldruid | 0 | No fix |
| Ubuntu:20.04:LTS | hoteldruid | 0 | No fix |
| Ubuntu:22.04:LTS | hoteldruid | 0 | No fix |
| Ubuntu:24.04:LTS | hoteldruid | 0 | No fix |
| Ubuntu:24.10 | hoteldruid | 0 | No fix |
| Ubuntu:25.04 | hoteldruid | 0 | No fix |
| Ubuntu:25.10 | hoteldruid | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | hoteldruid | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | hoteldruid | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | hoteldruid | 0 | No fix |
Related vulnerabilities
- CVE-2023-43373 Hoteldruid v3.0.5 was discovered to contain a SQL injection vulnerability via the… Also affects hoteldruid
- CVE-2023-43375 Hoteldruid v3.0.5 was discovered to contain multiple SQL injection vulnerabilities at… Also affects hoteldruid
- CVE-2023-43376 A cross-site scripting (XSS) vulnerability in /hoteldruid/clienti.php of Hoteldruid… Also affects hoteldruid
- CVE-2023-43374 Hoteldruid v3.0.5 was discovered to contain a SQL injection vulnerability via the… Also affects hoteldruid
- CVE-2023-43377 A cross-site scripting (XSS) vulnerability in /hoteldruid/visualizza_contratto.php of… Also affects hoteldruid
- CVE-2023-43371 Hoteldruid v3.0.5 was discovered to contain a SQL injection vulnerability via the… Also affects hoteldruid
- CVE-2023-33817 hoteldruid v3.0.5 was discovered to contain a SQL injection vulnerability. Also affects hoteldruid
- CVE-2023-34537 A Reflected XSS was discovered in HotelDruid version 3.0.5, an attacker can issue… Also affects hoteldruid