Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/xn2/cve-2023-46474
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration Testing
GitHubxn2/cve-2023-46474

CVE-2023-46474

Technical write-up and proof-of-concept for CVE-2023-46474, a remote code execution vulnerability in PMB <=7.5.3 via unrestricted file upload, including reproduction steps and remediation guidance.

View Repository
2 years agoNot yet reviewed
Website

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

PMB <=7.5.3 - Remote Code Execution via Unrestricted File Upload

CVE-2023-46474

CVSS v3.1 VectorCVSS v3.1 Score
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H9.1

Discovered during a penetration test by Marcus Reynaud of Devensys Cybersecurity

Description

The script pmb/admin/convert/start_import.php is vulnerable to an flaw, which allows arbitrary code execution on the server.

Unrestricted File Upload

Vulnerable feature

The attacker must first obtain administrative access to the platform to use this feature.

The PHP script does not check the extension of the file uploaded by the user, and stores it in a directory accessible by the web server while keeping its extension. Thus, it is possible to upload a PHP script, then execute it by visiting the location where it was uploaded.

Reproduction

This behavior can be reproduced as follows:

We send a .php file containing the code we want to execute on the system. Here, we will execute the system command id.

Upload of a .php

By observing the response, we can retrieve the file name as it was just written on the server.

The file name is returned

To execute our code, simply visit /pmb/temp/[file_name].php with a browser.

Result

The result of the command is returned by the server.

Cause

The cause of this vulnerability is the lack of control over the file before writing it to disk:

Alt text

Remediation

To remediate this vulnerability, an extension check must be implemented on files uploaded by users.

We recommend using a whitelist system that only allows certain file extensions.

You can also write the file to disk without the extension (knowing that this is temporary storage).

It is also possible to write the file to a directory outside the scope of the web server, which would make the file inaccessible on the Internet, and the code could not be executed.

Versions 7.5.4 and above are not vulnerable; the script has been completely rewritten.

Download Tool