CVE-2023-1561

6.3 MEDIUM

📋 TL;DR

This critical vulnerability in Simple Online Hotel Reservation System 1.0 allows attackers to upload arbitrary files without restrictions via the add_room.php file. This can lead to remote code execution, potentially giving attackers full control over affected systems. Any organization using this hotel reservation software is at risk.

💻 Affected Systems

Products:
  • Simple Online Hotel Reservation System
Versions: 1.0
Operating Systems: Any OS running PHP web server
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the add_room.php file specifically; requires PHP environment with file upload functionality enabled.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system compromise via remote code execution, allowing attackers to steal data, install malware, pivot to other systems, or disrupt hotel operations.

🟠

Likely Case

Webshell deployment leading to data theft, defacement, or use as a foothold for further attacks within the network.

🟢

If Mitigated

Limited impact with proper file upload restrictions, web application firewalls, and network segmentation in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Proof of concept available in GitHub repository; exploitation requires only web access to vulnerable endpoint.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Not available

Restart Required: No

Instructions:

No official patch available. Consider replacing with alternative software or implementing strict workarounds.

🔧 Temporary Workarounds

Restrict File Uploads

all

Implement strict file type validation and size limits on upload functionality

Disable add_room.php

linux

Temporarily disable or rename the vulnerable file

mv add_room.php add_room.php.disabled
chmod 000 add_room.php

🧯 If You Can't Patch

  • Implement web application firewall with file upload restrictions
  • Isolate the system in a DMZ with strict network access controls

🔍 How to Verify

Check if Vulnerable:

Check if add_room.php exists and accepts file uploads without proper validation

Check Version:

Check software version in admin panel or configuration files

Verify Fix Applied:

Test file upload functionality with malicious file types; verify they are rejected

📡 Detection & Monitoring

Log Indicators:

  • Unusual file uploads to add_room.php
  • Execution of unexpected PHP files
  • Large or suspicious file uploads

Network Indicators:

  • HTTP POST requests to add_room.php with file uploads
  • Unusual outbound connections from web server

SIEM Query:

source="web_logs" AND uri="/add_room.php" AND method="POST" AND size>1000000

🔗 References

📤 Share & Export