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 Free Exam Hall Seating Management System In PHP with Source Code 1.0 /pages/save_user.php Unrestricted Upload #3

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

Comments

@Charlotte008
Copy link
Owner

Charlotte008 commented Nov 3, 2024

Codezips Free Exam Hall Seating Management System In PHP with Source Code 1.0 update-image1.php Unrestricted Upload

NAME OF AFFECTED PRODUCT(S)

  • Free Exam Hall Seating Management System In PHP with Source Code

Vendor Homepage

AFFECTED AND/OR FIXED VERSION(S)

submitter

  • Tiki

Vulnerable File

  • /pages/save_user.php

VERSION(S)

  • V1.0

Software Link

PROBLEM TYPE

Vulnerability Type

  • File upload

Root cause

+In line 19 of the '/pages/save_user.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-3

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

  • 'Tiki' found that the file upload operation was received by the variable '$_FILES' in the '/pages/save_user.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
  • image-1
  • image-2

I successfully executed the PHP script on the terminal

  • image-4
@Charlotte008 Charlotte008 changed the title Codezips Free Exam Hall Seating Management System In PHP with Source Code 1.0 update-image1.php Unrestricted Upload Codezips Free Exam Hall Seating Management System In PHP with Source Code 1.0 /pages/save_user.php Unrestricted Upload Nov 3, 2024
# 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