Skip to content
SSRF Advisory Intermediate CVE-2022-38398

Apache Batik DefaultExternalResourceSecurity Server-Side Request Forgery Information Disclosure Vulnerability

The DefaultExternalResourceSecurity class in Apache Batik fails to properly validate a URI before accessing resources, allowing an attacker to disclose sensitive information. Exploitation requires interaction with the library, and attack vectors vary by implementation.

Piotr Bazydło 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 Apache Batik. Interaction with this library is required to exploit this vulnerability but attack vectors may vary depending on the implementation.

Piotr Bazydlo (@chudypb) of Trend Micro Zero Day Initiative, 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

Likely, the DefaultExternalResourceSecurity class does not validate the URI before accessing external resources, allowing arbitrary resource access.

Impact

An attacker could disclose sensitive information in the context of the current process, but interaction with the library is required and attack vectors may vary.

What the attacker needed

Interaction with the library

The fix

Apache has issued an update to correct this vulnerability.

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.

Apache Batik is a library for handling SVG images. A part of it that loads external resources did not check where those resources came from, so an attacker could make it fetch and reveal sensitive data from the server. This is called server-side request forgery (SSRF).

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More by Piotr Bazydło

View all

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

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.