Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Codezips Online Institute Management System In PHP MYSQL Secure Login Algorithm 1.0 profile.php Unrestricted Upload #1

Open
hbuzs opened this issue Nov 3, 2024 · 0 comments

Comments

@hbuzs
Copy link
Owner

hbuzs commented Nov 3, 2024

Codezips Online Institute Management System In PHP MYSQL Secure Login Algorithm 1.0 profile.php Unrestricted Upload

NAME OF AFFECTED PRODUCT(S)

  • Online Institute Management System In PHP MYSQL Secure Login Algorithm

Vendor Homepage

AFFECTED AND/OR FIXED VERSION(S)

submitter

  • Lime

Vulnerable File

  • profile.php

VERSION(S)

  • V1.0

Software Link

PROBLEM TYPE

Vulnerability Type

  • File upload

Root cause

+In line 14 of the 'profile.php' file, the input obtained through '$_FILES' is directly used to determine the storage location of the file without verification or cleaning. The specific code snippet is as follows:

  • image

Impact

  • Attackers can exploit this vulnerability for unrestricted uploads, which may result in file overwrite, file injection, directory traversal attacks, and denial of service attacks. Remote attacks may also lead to RCE

Description

  • 'Lime' found that the file upload operation was received by the variable '$_FILES' in the 'profile.php' file. Due to the lack of proper input validation and cleaning, remote attackers can pass malicious payloads through this file upload function, resulting in unrestricted file uploads, which may further lead to remote code execution (RCE).

Vulnerability details and POC

Payload

POC screenshot

  • image-1
  • image-2
  • image-3

I successfully executed the PHP script on the terminal

  • image-4
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant