Description
Certain WSO2 products allow unrestricted file upload with resultant remote code execution. The attacker must use a /fileupload endpoint with a Content-Disposition directory traversal sequence to reach a directory under the web root, such as a ../../../../repository/deployment/server/webapps directory. This affects WSO2 API Manager 2.2.0 up to 4.0.0, WSO2 Identity Server 5.2.0 up to 5.11.0, WSO2 Identity Server Analytics 5.4.0, 5.4.1, 5.5.0 and 5.6.0, WSO2 Identity Server as Key Manager 5.3.0 up to 5.11.0, WSO2 Enterprise Integrator 6.2.0 up to 6.6.0, WSO2 Open Banking AM 1.4.0 up to 2.0.0 and WSO2 Open Banking KM 1.4.0, up to 2.0.0.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
WSO2 Arbitrary File Upload to RCE
exploit/multi/http/wso2_file_upload_rce
GitHub 29 repositories · most starred shown
-
hakivvi/CVE-2022-29464 ★ 379 · Apr 20, 2022
WSO2 RCE (CVE-2022-29464) exploit and writeup.
-
dsssssssm/WSOB ★ 27 · Apr 24, 2022
😭 WSOB is a python tool created to exploit the new vulnerability on WSO2 assigned as CVE-2022-29464.
-
Ap0dexMe0/CVE-2022-29464 ★ 10 · Apr 25, 2023
Perform With Mass Exploits In WSO Management.
-
sh4den/CVE-2022-29464 ★ 10 · May 15, 2022
A bots loader for CVE-2022-29464 with multithreading
-
gbrsh/CVE-2022-29464 ★ 7 · Nov 14, 2022
RCE exploit for WSO2
-
jimidk/Better-CVE-2022-29464 ★ 6 · Jun 4, 2022
CVE-2022-29464 PoC for WSO2 products
-
Chocapikk/CVE-2022-29464 ★ 5 · May 26, 2022
Python script to exploit CVE-2022-29464 (mass mode)
-
hev0x/CVE-2022-29464 ★ 5 · Apr 22, 2022
WSO2 RCE (CVE-2022-29464)
-
Lidong-io/cve-2022-29464 ★ 5 · Apr 22, 2022
cve-2022-29464 批量脚本
-
r4x0r1337/-CVE-2022-29464 ★ 4 · Aug 1, 2022
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- WSO2 Management - Arbitrary File Upload & Remote Code Execution http/cves/2022/CVE-2022-29464.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
References
- [oss-security] 20220422 CVE-2022-29464 :: WSO2 Unrestricted arbitrary file upload, and remote code to execution vulnerability. mailing-list
- https://github.com/hakivvi/CVE-2022-29464
- http://packetstormsecurity.com/files/166921/WSO-Arbitrary-File-Upload-Remote-Code-Execution.html
- https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2022/WSO2-2021-1738/