Gym Management System Project v1.0 - Insecure File Upload

9.1

Critical

Discovered by 

Andres Roldan

Offensive Team, Fluid Attacks

Summary

Full name

Gym Management System Project v1.0 - Insecure File Upload

Code name

State

Public

Release date

Sep 28, 2023

Affected product

Gym Management System Project

Affected version(s)

Version 1.0

Vulnerability name

Insecure File Upload

Vulnerability type

Remotely exploitable

Yes

CVSS v3.1 vector string

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

CVSS v3.1 base score

9.1

Exploit available

Yes

CVE ID(s)

Description

Gym Management System Project v1.0 is vulnerable to an Insecure File Upload vulnerability on the 'file' parameter of profile/i.php page, allowing an authenticated attacker to obtain Remote Code Execution on the server hosting the application.

Vulnerability

The 'file' parameter of the profile/i.php page resource does not validate the contents, extension and type of the file uploaded as a book image, leading to an arbitrary file upload which can be abused to obtain Remote Code Execution. The vulnerable code is located at profile/i.php page:

 <div class="col-md-4" style="width:100px;">
 <?php if($row['pic'] == 0) { ?>
 <img src="../img/thumb.png" width="100px" height="100px"><br><br>
 <form method="POST" action="../upload.php?id=<?php echo $row['id']; ?>" enctype="multipart/form-data">
 <input type="file" name="file" style="color: transparent;" accept="image/x-png, image/gif, image/jpeg"><br>
 <input type="submit" value="upload" name="pupload">
 </form>
 <?php } else if($row['pic'] == 1){ ?>
 <img src="../upload/<?php echo $row['picName']; ?>" width="100px" height="100px">
 <?php } ?>
 </div>

Evidence of exploitation

Our security policy

We have reserved the ID CVE-2023-5185 to refer to this issue from now on. Disclosure policy

System Information

  • Version: Gym Management System Project v1.0

  • Operating System: Any

Mitigation

There is currently no patch available for this vulnerability.

References

Timeline

Vulnerability discovered

Sep 25, 2023

Vendor contacted

Sep 25, 2023

Public disclosure

Sep 28, 2023

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.