Enterprise Java Flaws Enable Pre-Auth RCE in Bonita BPM and Apache OFBiz

A newly disclosed 12 vulnerabilities affecting four enterprise Java platforms, including four pre-authentication flaws and a sandbox escape.

Presented at Black Hat 2026, the research shows how overlooked middleware components, including routers, servlet dispatchers, SSO handlers, deserializers, and template engines, can combine to form complete remote code execution (RCE) chains.

The most severe findings affect Bonita BPM 10.4.3 and Apache OFBiz 24.09.05. Although the products use different frameworks and bug classes, both exploitation paths follow the same pattern: an unauthenticated request reaches an internal component.

Enterprise Java Flaws

The Bonita BPM chain, dubbed BadBonita, begins with discrepancies in URL parsing and servlet dispatching.

Bonita separates its authenticated public /API/ endpoints from the internal /serverAPI/ interface, which supports raw XStream deserialization and is intended for HTTP API users.

According to Novee researchers Lidor Ben Shitrit and Assaf Levkovich, a crafted path can cause different components to interpret URL segments differently.

Dispatch in Action (Source: Novee)
Dispatch in Action (Source: Novee)

A security filter recognizes the path as belonging to the public API, while Tomcat’s processing ultimately forwards the request to the protected internal API. The attack is strengthened by partial-match regular expressions in Bonita’s authentication and CSRF filters.

Because the filters use Matcher.find() rather than whole-string matching, an attacker-controlled path can contain a permitted substring while ultimately resolving elsewhere.

A missing FORWARD dispatcher declaration in the /serverAPI/* security constraint creates the final routing gap. Once the request reaches the internal API, attacker-controlled XML can be deserialized by XStream.

When combined with a suitable gadget chain, this enables pre-authentication code execution within the application process. The Apache OFBiz issue, tracked as CVE-2026-31986, affects deployments with SSO enabled.

Novee named the chain SSOnOf(a)biz because it combines a default JWT signing key, forged authentication, a UI preference gate, and unsafe template expansion.

OFBiz reportedly ships with a hardcoded HMAC signing key used for both SSO tokens and widget callback tokens.

If administrators have not replaced the default key, an attacker can create a token that the server accepts as valid, including one that claims to belong to an administrative user.

Gadget chain (Source: Novee)
Gadget chain (Source: Novee)

Novee found that an authenticated attacker can set the javaScriptEnabled preference, a UI-oriented flag that also controls whether certain widget-rendering paths evaluate expressions.

A callback token’s areaTarget claim then reaches FlexibleStringExpander and ultimately Groovy evaluation without sufficient validation.

OFBiz includes a regex denylist intended to block dangerous expressions, but the researchers identified bypasses arising from case-sensitive matching and Groovy’s built-in imports. The result is an RCE path requiring no legitimate credentials on vulnerable, SSO-enabled instances.

The findings reinforce the idea that enterprise Java risk often lies in the seams between components rather than in a single obvious flaw.

Organizations should review servlet constraints for FORWARD, INCLUDE, and ERROR dispatch coverage; replace partial regex matching with strict path validation; rotate shipped signing keys; and separate cryptographic keys across trust domains.

Teams should also eliminate dangerous deserialization and server-side expression evaluation where possible. Where legacy functionality requires them, restrictive XStream type allowlists, JEP 290 serialization filters, and robust sandboxing are essential.

Most importantly, internal endpoints must be treated as attacker-reachable. A locked front door does not protect middleware when routing, authentication, and execution layers disagree about where a request is allowed to go.

Detect, investigate, and respond faster with in-browser data inspection from ANY.RUN. Gain complete phishing visibility to strengthen your SOC and reduce MTTR   

Tamilselvan
Tamilselvanhttps://cyberpress.org/
Tamilselvan is an Investigative cybersecurity journalist dedicated to breaking stories on ransomware cartels, data breaches, and state-sponsored espionage.

Trending News

Related Stories