Rapid7

module

WSO2 API Manager Documentation File Upload Remote Code Execution

Disclosed
May 31, 2024
Created
Dec 16, 2024

Description

A vulnerability in the 'Add API Documentation' feature allows malicious users with specific permissions
(`/permission/admin/login` and `/permission/admin/manage/api/publish`) to upload arbitrary files to a user-controlled
server location. This flaw could be exploited to execute remote code, enabling an attacker to gain control over the server.

Authors

Siebene@ @Siebene7
Heyder Andrade @HeyderAndrade
Redway Security redwaysecurity.com

Platform

Linux,Windows

Architectures

java

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/multi/http/wso2_api_manager_file_upload_rce
msf exploit(wso2_api_manager_file_upload_rce) > show targets
...targets...
msf exploit(wso2_api_manager_file_upload_rce) > set TARGET < target-id >
msf exploit(wso2_api_manager_file_upload_rce) > show options
...show and set options...
msf exploit(wso2_api_manager_file_upload_rce) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.