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.
Linux,Windows
java
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