Rapid7 Vulnerability & Exploit Database

Apache OFBiz forgotPassword/ProgramExport RCE

Back to Search

Apache OFBiz forgotPassword/ProgramExport RCE

Disclosed
05/30/2024
Created
06/17/2024

Description

Apache OFBiz versions prior to 18.12.13 are vulnerable to a path traversal vulnerability (CVE-2024-32113). The vulnerable endpoint /webtools/control/forgotPassword allows an attacker to access the ProgramExport endpoint which in turn allows for remote code execution in the context of the user running the application. This was patched in 18.12.14. It was then discovered that the use of the path traversal vulnerability is not required in order to access the vulnerable endpoint ProgramExport. CVE-2024-38856 was given for this Incorrect Authorization vulnerability and was patched in 18.12.15. This module was originally written the exploit CVE-2024-32113, but upon the discovery of CVE-2024-38856 the module updated to not exploit the path traversal vulnerability allowing for exploitation on 18.12.14 as well.

Author(s)

  • Mr-xn
  • jheysel-r7

Platform

Linux,Windows

Architectures

cmd

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/apache_ofbiz_forgot_password_directory_traversal
msf exploit(apache_ofbiz_forgot_password_directory_traversal) > show targets
    ...targets...
msf exploit(apache_ofbiz_forgot_password_directory_traversal) > set TARGET < target-id >
msf exploit(apache_ofbiz_forgot_password_directory_traversal) > show options
    ...show and set options...
msf exploit(apache_ofbiz_forgot_password_directory_traversal) > 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

;