Skip to content
XXE Advisory Intermediate CVE-2020-12025

(0Day) (Pwn2Own) Rockwell Automation Studio 5000 AML File Parsing XML External Entity Processing Information Disclosure Vulnerability

The AML file parser in Rockwell Automation Studio 5000 did not restrict XML external entity references, so a crafted document could make the parser fetch a URI and embed its contents back into the document. An attacker could use this to disclose sensitive information in the context of the current process, without authentication.

Chris Anastasio Follow

Originally disclosed on Zero Day Initiative

This vulnerability allows remote attackers to disclose sensitive information on affected installations of Rockwell Automation Studio 5000. Authentication is not required to exploit this vulnerability.

Chris Anastasio (muffin) and Steven Seeley (mr_me) of Incite Team, on the Zero Day Initiative

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The XML parser used for AML files was left able to resolve external entity references, so a document could direct it to fetch an arbitrary URI and include the result.

Impact

An attacker could disclose sensitive information in the context of the current process; the text does not say whether any defence limited it, and no patch was available at disclosure.

What the attacker needed

Victim opens a crafted AML file; no authentication needed

The fix

The parser should be configured to disable external entity and DTD processing for AML files; the text states the issue was disclosed without a patch and only offers a user-side mitigation.

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 report has not been written yet. The Original tab links to the source.

Some files are built on XML, a text format that can point to other resources by address. A feature called external entities lets a document ask the parser to fetch something and paste it in. Here the program did not switch that feature off, so a malicious file could pull in data the attacker should not see.

What is XXE?

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

More by Chris Anastasio

View all

9 more disclosed reports, best first.

More from Zero Day Initiative

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.