Skip to content
XXE Write-up Intermediate

Critical LinkedIn vulnerability proactively resolved by Wallarm (XXE in application server)

The LinkedIn Marketing Solutions web server parsed XML in HTTPS requests before passing control to the application, allowing an attacker to exploit an XXE vulnerability. This could let an attacker read local files on the server and exfiltrate them via an out-of-band channel.

Wallarm Follow

Published on lab.wallarm.com

With all the time and resources we allocate to finding application vulnerabilities it’s easy to forget that 3rd party libraries and software can introduce vulnerabilities into our applications as well. Hackers know this and they try to exploit them.

Wallarm (@Wallarm), on lab.wallarm.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

Likely the application server's XML parser was configured to allow external entities and was processing XML before the application code could apply safeguards.

Impact

An attacker could read local files on the server and exfiltrate them, and potentially run queries into internal networks or execute code remotely.

What the attacker needed

No authentication required; Ability to send HTTPS requests to the server

The fix

The vulnerability was fixed by LinkedIn within 24 hours of being reported.

How it was found

  1. Send an HTTPS request with an XML body to any URL on the LinkedIn Marketing Solutions server.
  2. Include an XML document that defines external entities referencing a local file and an external DTD.
  3. The server processes the XML and resolves the entities, reading the local file.
  4. The file content is exfiltrated to an attacker-controlled FTP server via the external DTD.

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.

XML is a data format that can include special instructions called entities. If a server processes these instructions without restrictions, an attacker can make it read local files or contact internal systems. This 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.

More from LinkedIn

View all

The newest disclosed reports for this program.

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.