Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable access to external entities when parsing XML #4021

Merged
merged 1 commit into from Jun 10, 2022

Conversation

ckelleyRH
Copy link
Contributor

This reduces the vulnerability of XML parsers to XXE (XML external
entity) injection.

The best way to prevent XXE is to stop using XML altogether, which we do
plan to do. Until that happens I consider it worthwhile to tighten the
security here though.

This reduces the vulnerability of XML parsers to XXE (XML external
entity) injection.

The best way to prevent XXE is to stop using XML altogether, which we do
plan to do. Until that happens I consider it worthwhile to tighten the
security here though.
@ckelleyRH
Copy link
Contributor Author

I considered making a class similar to JSONSerializer but it felt like too much work for deprecated code, that is actively marked for removal. Therefore I just added in the necessary updates per-instantiation.

@ckelleyRH
Copy link
Contributor Author

It's a shame that Sonar doesn't work on PRs (yet) because then we could have checked that I caught them all.

Copy link
Contributor

@edewata edewata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ckelleyRH ckelleyRH merged commit 4e89324 into dogtagpki:master Jun 10, 2022
@ckelleyRH ckelleyRH deleted the XXE branch June 10, 2022 22:36
@ckelleyRH
Copy link
Contributor Author

Thanks @edewata !

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.

None yet

2 participants