module

WSO2 API Manager Documentation File Upload Remote Code Execution

Disclosed
2024-05-31
Created
2024-12-16

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
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.