MODULE

WSO2 API Manager Documentation File Upload Remote Code Execution

Try Surface Command Get a continuous 360° view of your attack surface
Back to Search

WSO2 API Manager Documentation File Upload Remote Code Execution

Disclosed
05/31/2024
Created
12/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.

Author(s)

  • Siebene@ <@Siebene7>
  • Heyder Andrade <@HeyderAndrade>
  • Redway Security <redwaysecurity.com>

Platform

Linux,Windows

Architectures

java

Development

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

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;