Skip to content
XXE Advisory Intermediate CVE-2023-40503

(0Day) LG Simple Editor saveXmlFile XML External Entity Processing Information Disclosure Vulnerability

The saveXmlFile method in LG Simple Editor processes XML input without restricting external entity references, allowing an attacker to make the parser fetch a URI and embed its contents into the XML document. This lets an unauthenticated remote attacker disclose sensitive information in the context of the SYSTEM account.

rgod Follow

Originally disclosed on Zero Day Initiative

High 7.5 View original

This vulnerability allows remote attackers to disclose sensitive information on affected installations of LG Simple Editor. Authentication is not required to exploit this vulnerability.

rgod, 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 by the saveXmlFile method does not disable external entity resolution, allowing attacker-controlled XML to reference arbitrary URIs.

Impact

An unauthenticated remote attacker could disclose sensitive information in the context of the SYSTEM account; the vendor stated they do not plan to fix it, and the only mitigation is to restrict interaction with the application.

What the attacker needed

No authentication required; ability to supply crafted XML to saveXmlFile

The fix

The vendor stated they do not have plans to fix the vulnerability; the advisory suggests restricting interaction with the application as the only 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.

XML documents can include special instructions called external entities that tell the parser to fetch data from a web address or local file. If the parser is not configured to block these, an attacker can supply a malicious XML file that makes the program read sensitive files and include their contents in the output. Here, the saveXmlFile method in LG Simple Editor did not block such entities, so an attacker could read files on the server without logging in.

What is XXE?

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

More by rgod

View all

696 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.