CVE-2021-42948
Low · 3.7CVSS
3.7
EPSS
0.8%
Published
Sep 16, 2022
CISA due date
—
Cloudanix analysis
A flaw in older hotel management software can let someone who sees certain web links steal a user's login session and access booking information.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Data Exposure
- Component
- Application
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Session identifiers are transmitted in cleartext within URL query parameters, exposing them to interception via browser history, server logs, referer headers, and network captures.
Why it matters to the business
Attackers may obtain valid sessions to view or manipulate hotel booking and guest data, potentially leading to privacy incidents or operational disruption even though the flaw is difficult to exploit at scale.
How an attack unfolds
An attacker observes URLs generated by the application that embed session tokens, extracts the token values from logs or intercepted traffic, and replays the tokens in subsequent requests to impersonate legitimate users.
How to fix it
Upgrade to the latest version of HotelDruid that removes session tokens from GET parameters; until then, configure the application to transmit sessions only via secure cookies and ensure all sensitive links use POST requests.
How to confirm the fix worked
Review application source and generated URLs to confirm session identifiers no longer appear in query strings; inspect server logs and browser developer tools for absence of tokens in GET requests after upgrade.
Typical attack path
- Identify application-generated links containing session identifiers in query strings
- Capture tokens from browser history, web server access logs, or network traffic
- Reuse captured tokens in authenticated requests to access protected resources
- Maintain session access until the token expires or is invalidated
How to detect it
Search web server access logs, proxy logs, and browser histories for requests containing session tokens embedded in query strings; look for repeated use of the same token from unexpected IP addresses or user agents.
- session= in GET query strings
- phpsessid= in URLs
- sid= in request parameters
What your security team should do
- Prioritize patching or migrating away from the affected HotelDruid version given the long exposure window
- Audit web server and proxy logs for historical presence of session tokens in URLs
- Enforce HTTPS everywhere and disable any features that log full request URLs
- Monitor EPSS trend and re-evaluate risk if exploit code appears
The record
HotelDruid Hotel Management Software v3.0.3 and below was discovered to have exposed session tokens in multiple links via GET parameters, allowing attackers to access user session id's.
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