Skip to content

RANGER-5477:XML External Entity Injection Security issue in Ranger#852

Open
bhaveshamre wants to merge 1 commit intoapache:ranger-2.8from
bhaveshamre:BH-RANGER-5477
Open

RANGER-5477:XML External Entity Injection Security issue in Ranger#852
bhaveshamre wants to merge 1 commit intoapache:ranger-2.8from
bhaveshamre:BH-RANGER-5477

Conversation

@bhaveshamre
Copy link
Contributor

What changes were proposed in this pull request?

This pull request fixes a critical XML External Entity (XXE) injection vulnerability reported by Fortify.
Configures the TransformerFactory using the supported JAXP mechanism (setAttribute() with ACCESS_EXTERNAL_DTD and ACCESS_EXTERNAL_STYLESHEET) to restrict external entity access during XML transformation.
This maintains the intended XXE protection while ensuring compatibility across JDK versions and different TransformerFactory implementations.

How was this patch tested?

Confirmed no TransformerConfigurationException is thrown during plugin setup.
Confirmed plugin properties are added while preserving existing configuration.
Verified successful using: mvn clean compile package install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant