Hotel Management v1.0 - Reflected XSS

5,4

Medium

5,4

Medium

Discovered by

Andres Roldan

Offensive Team, Fluid Attacks

Summary

Full name

Hotel Management v1.0 - Multiple Reflected Cross-Site Scripting (XSS)

Code name

State

Public

Release date

6 dic 2023

Affected product

Hotel Management

Vendor

Kashipara Group

Affected version(s)

Version 1.0

Vulnerability name

Reflected Cross-Site Scripting (XSS)

Remotely exploitable

Yes

CVSS v3.0 vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

CVSS v3.0 base score

5.4

Exploit available

Yes

Description

Hotel Management v1.0 is vulnerable to multiple authenticated Reflected Cross-Site Scripting vulnerabilities.

Vulnerabilities

CVE-2023-49269

The 'adults' parameter of the reservation.php resource is copied into the HTML document as plain text between tags. Any input is echoed unmodified in the application's response. The vulnerable code is:

if (isset($_GET["check_in_date"])) {
 $check_in_date = $_GET["check_in_date"];
 $check_out_date = $_GET["check_out_date"];
 $no_children = $_GET["children"];
 $no_adults = $_GET["adults"];
}
...
<div class="form-group">
 <label for="no_adults">Adults</label>
 <input type="number" class="form-control" name="no_adults" id="no_adults" value="<?php if (isset($no_adults)) {
 echo $no_adults;
} ?>">
</div>

CVE-2023-49270

The 'check_in_date' parameter of the reservation.php resource is copied into the HTML document as plain text between tags. Any input is echoed unmodified in the application's response. The vulnerable code is:

if (isset($_GET["check_in_date"])) {
 $check_in_date = $_GET["check_in_date"];
 $check_out_date = $_GET["check_out_date"];
 $no_children = $_GET["children"];
 $no_adults = $_GET["adults"];
}
...
<div class="form-group">
 <span class="form-label">Check In</span>
 <input class="form-control" name="check_in_date" id="check_in_date" type="text" required value="<?php if (isset($check_in_date)) {
echo $check_in_date;
} ?>"/>
</div>

CVE-2023-49271

The 'check_out_date' parameter of the reservation.php resource is copied into the HTML document as plain text between tags. Any input is echoed unmodified in the application's response. The vulnerable code is:

if (isset($_GET["check_in_date"])) {
 $check_in_date = $_GET["check_in_date"];
 $check_out_date = $_GET["check_out_date"];
 $no_children = $_GET["children"];
 $no_adults = $_GET["adults"];
}
...
<div class="form-group">
 <span class="form-label">Check out</span>
 <input class="form-control" name="check_out_date" id="check_out_date" type="text" required value="<?php if (isset($check_out_date)) {
echo $check_out_date;
} ?>"/>
</div>

CVE-2023-49272

The 'children' parameter of the reservation.php resource is copied into the HTML document as plain text between tags. Any input is echoed unmodified in the application's response. The vulnerable code is:

if (isset($_GET["check_in_date"])) {
 $check_in_date = $_GET["check_in_date"];
 $check_out_date = $_GET["check_out_date"];
 $no_children = $_GET["children"];
 $no_adults = $_GET["adults"];
}
...
<div class="form-group">
 <label for="no_children">Children</label>
 <input type="number" class="form-control" name="no_children" id="no_children" value="<?php if (isset($no_children)) {
 echo $no_children;
} ?>">
</div>

Our security policy

We have reserved the IDs CVE-2023-49269, CVE-2023-49270, CVE-2023-49271 and CVE-2023-49272 to refer to these issues from now on.

Disclosure policy

System Information

  • Version: Hotel Management v1.0

  • Operating System: Any

Mitigation

There is currently no patch available for this vulnerability.

References

Timeline

23 nov 2023

Vulnerability discovered

23 nov 2023

Vendor contacted

6 dic 2023

Public disclosure

Does your application use this vulnerable software?

During our free trial, our tools assess your application, identify vulnerabilities, and provide recommendations for their remediation.

Las soluciones de Fluid Attacks permiten a las organizaciones identificar, priorizar y remediar vulnerabilidades en su software a lo largo del SDLC. Con el apoyo de la IA, herramientas automatizadas y pentesters, Fluid Attacks acelera la mitigación de la exposición al riesgo de las empresas y fortalece su postura de ciberseguridad.

SOC 2 Type II

SOC 3

Suscríbete a nuestro boletín

Mantente al día sobre nuestros próximos eventos y los últimos blog posts, advisories y otros recursos interesantes.

Las soluciones de Fluid Attacks permiten a las organizaciones identificar, priorizar y remediar vulnerabilidades en su software a lo largo del SDLC. Con el apoyo de la IA, herramientas automatizadas y pentesters, Fluid Attacks acelera la mitigación de la exposición al riesgo de las empresas y fortalece su postura de ciberseguridad.

SOC 2 Type II

SOC 3

Suscríbete a nuestro boletín

Mantente al día sobre nuestros próximos eventos y los últimos blog posts, advisories y otros recursos interesantes.

Las soluciones de Fluid Attacks permiten a las organizaciones identificar, priorizar y remediar vulnerabilidades en su software a lo largo del SDLC. Con el apoyo de la IA, herramientas automatizadas y pentesters, Fluid Attacks acelera la mitigación de la exposición al riesgo de las empresas y fortalece su postura de ciberseguridad.

SOC 2 Type II

SOC 3

Suscríbete a nuestro boletín

Mantente al día sobre nuestros próximos eventos y los últimos blog posts, advisories y otros recursos interesantes.