Skip to content
XXE Disclosed report Intermediate CVE-2022-0219

Improper Restriction of XML External Entity Reference in skylot/jadx

jadx before version 1.3.2 does not properly restrict XML external entities when exporting a malicious APK to Gradle. An attacker could trick a user into exporting a crafted APK, potentially leading to local file disclosure.

skylot/jadx

Originally disclosed on huntr

skylot/jadx prior to 1.3.2 is vulnerable to Improper Restriction of XML External Entities when a user is tricked into exporting a malicious APK file (via the -e option) containing a crafted AndroidManifest.xml / strings.xml to gradle, leading to possible local file disclosure.

From the GitHub Advisory Database (GHSA-r8j4-96mx-rjcc, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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

Likely the XML parser used during Gradle export does not disable external entity resolution.

Impact

A user who exports a malicious APK could have local files disclosed to the attacker.

What the attacker needed

User exports a malicious APK; jadx version before 1.3.2

The fix

The issue was fixed in version 1.3.2.

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 external entity (XXE) is a flaw where a program that reads XML also follows special instructions inside the XML to fetch other files. Here, the jadx tool reads XML files from an Android app package (APK) and, if those files are malicious, it may read local files on the user's computer. The user must be tricked into exporting a malicious APK for this to happen.

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.