CVE-2021-42949
Critical · 9.8CVSS
9.8
EPSS
7.3%
Published
Sep 16, 2022
CISA due date
—
Cloudanix analysis
A flaw in this hotel software lets attackers guess login session tokens and take over user accounts without passwords.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Authentication Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The controlla_login function produces session tokens using a predictable generation algorithm, enabling enumeration and brute-force guessing of valid tokens to hijack authenticated sessions without credentials.
Why it matters to the business
Attackers can obtain full administrative access to the hotel management system, allowing unauthorized viewing or alteration of reservations, guest data, billing, and operational records with potential regulatory and financial consequences.
How an attack unfolds
An attacker locates an exposed HotelDruid instance, observes the format and sequence of session tokens returned during login attempts, then systematically brute-forces likely token values until a valid authenticated session is obtained.
How to fix it
Upgrade to a version that implements cryptographically secure, unpredictable session token generation; if no update is available, replace the application or apply custom session management controls that enforce strong randomness and expiration.
How to confirm the fix worked
Review source or runtime behavior of controlla_login to confirm tokens are now generated with a secure random number generator; perform black-box testing by collecting multiple tokens and verifying absence of sequential or low-entropy patterns.
Typical attack path
- Scan for publicly reachable HotelDruid installations
- Trigger login flows to collect sample session tokens
- Analyze token pattern for predictability
- Execute automated brute-force against the session token space
- Reuse discovered valid token to access protected functionality
How to detect it
Examine web server and application logs for unusually high numbers of requests to login or session endpoints, repeated token submissions, or sequences of tokens that differ by small increments; correlate with successful access to protected resources from unexpected source IPs.
- multiple rapid requests to /controlla_login or equivalent login handler
- session tokens differing by small numeric increments in logs
- successful authenticated requests immediately following failed token guesses
What your security team should do
- Immediately restrict external access to the application until tokens are remediated
- Monitor authentication endpoints for high volumes of failed or sequential token attempts
- Plan migration or upgrade to a maintained version with proper session handling
- Add web application firewall rules to throttle rapid authentication requests
The record
The component controlla_login function in HotelDruid Hotel Management Software v3.0.3 generates a predictable session token, allowing attackers to bypass authentication via bruteforce attacks.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | hoteldruid | 0 | No fix |
| Debian:12 | hoteldruid | 0 | 3.0.4-1 |
| Debian:13 | hoteldruid | 0 | 3.0.4-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: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-47164 Cross-site scripting vulnerability in HOTELDRUID 3.0.5 and earlier allows a remote… Also affects hoteldruid
- 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