Skip to content
XXE Write-up Intermediate

[Blog] CVE-2015-3269: Apache Flex BlazeDS XXE Vulnerabilty

Apache Flex BlazeDS versions before 4.7.1 parse XML in AMF messages without disabling external entities, allowing an attacker to send a crafted AMF message that triggers XML External Entity (XXE) processing. This could let an attacker read local files or perform server-side request forgery, though the text only states that exploitation is easy by sending an XXE vector.

code-white.com

Published on code-white.com

In a recent Product Security Review, Code White Researchers discovered a XXE vulnerability in Apache Flex BlazeDS/Adobe (see ASF Advisory). The vulnerable code can be found in the BlazeDS Remoting/AMF protocol implementation.

The author, on code-white.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The XML parser used to process AMF message bodies is created with default settings that allow external entities, and the code does not disable them.

What the attacker needed

BlazeDS before 4.7.1; ability to send AMF messages

The fix

The vulnerability was fixed in BlazeDS 4.7.1 by configuring the XML parser to disallow external entities.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This report describes a flaw in a Java library called BlazeDS that handles messages between a client and server. When the library reads a certain type of message that contains XML, it does not turn off a feature that lets XML refer to external files or URLs. An attacker can abuse this to make the server read files or make requests on their behalf, which is called an XML External Entity (XXE) attack.

What is XXE?

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.

Similar reports

View all

Same bug class and techniques, clearest first.

XML external entities (XXE)

The lesson behind this report.

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.