Travel Website v1.0 - Multiple SQLi

Summary

NameTravel Website v1.0 - Multiple Unauthenticated SQL Injections (SQLi)
Code nameEvans
ProductTravel Website
VendorKashipara Group
Affected versionsVersion 1.0
StatePublic
Release date2024-01-03

Vulnerabilities

KindUnauthenticated SQL Injections (SQLi)
Rule146. SQL Injection
RemoteYes
CVSSv3 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSSv3 Base Score9.8
Exploit availableYes
CVE ID(s)CVE-2023-50862, CVE-2023-50863, CVE-2023-50864, CVE-2023-50865, CVE-2023-50866, CVE-2023-50867

Description

Travel Website v1.0 is vulnerable to multiple Unauthenticated SQL Injection vulnerabilities.

Vulnerabilities

CVE-2023-50862

The 'hotelIDHidden' parameter of the booking.php resource does not validate the characters received and they are sent unfiltered to the database. The vulnerable code is:

<?php elseif($mode=="hotel"): ?> <div class="col-sm-12 bookingHotel"> <?php $hotelID = $_POST["hotelIDHidden"]; $hotelSQL = "SELECT * FROM `hotels` WHERE hotelID='$hotelID'"; $hotelQuery = $conn->query($hotelSQL);

CVE-2023-50863

The 'hotelIDHidden' parameter of the generateReceipt.php resource does not validate the characters received and they are sent unfiltered to the database. The vulnerable code is:

$hotelID=$_POST["hotelIDHidden"]; ... $sql = "SELECT * FROM hotels WHERE hotelID='$hotelID'"; $result = $conn->query($sql);

CVE-2023-50864

The 'hotelId' parameter of the hotelDetails.php resource does not validate the characters received and they are sent unfiltered to the database. The vulnerable code is:

$hotelID=$_GET["hotelId"]; ... $sql = "SELECT * FROM hotels WHERE hotelID='$hotelID'"; $result = $conn->query($sql);

CVE-2023-50865

The 'city' parameter of the hotelSearch.php resource does not validate the characters received and they are sent unfiltered to the database. The vulnerable code is:

$city=$_GET["city"];
...
$sql = "SELECT * FROM hotels WHERE city='$city'";
$rowcount = mysqli_num_rows(mysqli_query($conn,$sql));

CVE-2023-50866

The 'username' parameter of the loginAction.php resource does not validate the characters received and they are sent unfiltered to the database. The vulnerable code is:

$username=$_POST["username"]; ... $getUserDataSQL = "SELECT * FROM `users` WHERE Username='$username'"; $getUserDataQuery = $conn->query($getUserDataSQL);

CVE-2023-50867

The 'username' parameter of the signupAction.php resource does not validate the characters received and they are sent unfiltered to the database. The vulnerable code is:

$username=$_POST["username"]; ... $checkUserExistSQL = "SELECT * FROM `users` WHERE Username='$username'"; $checkUserExistQuery = $conn->query($checkUserExistSQL);

Our security policy

We have reserved the IDs CVE-2023-50862, CVE-2023-50863, CVE-2023-50864, CVE-2023-50865, CVE-2023-50866 and CVE-2023-50867 to refer to these issues from now on.

System Information

  • Version: Travel Website v1.0
  • Operating System: Any

Mitigation

There is currently no patch available for this vulnerability.

Credits

The vulnerability was discovered by Andres Roldan from Fluid Attacks' Offensive Team.

References

Vendor page https://www.kashipara.com/

Timeline

Time-lapse-logo

2024-01-03

Vulnerability discovered.

Time-lapse-logo

2024-01-03

Vendor contacted.

Time-lapse-logo

2024-01-03

Public Disclosure.

Fluid Logo Footer

Hacking software for over 20 years

Fluid Attacks tests applications and other systems, covering all software development stages. Our team assists clients in quickly identifying and managing vulnerabilities to reduce the risk of incidents and deploy secure technology.

Copyright © 0 Fluid Attacks. We hack your software. All rights reserved.