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

Fix DTD security issue #5940

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Fix DTD security issue #5940

merged 1 commit into from
Feb 23, 2024

Conversation

solth
Copy link
Member

@solth solth commented Feb 22, 2024

Fixes security issues CWE-611, CWE-776 and CWE-827 by disabling DTD parsing.

Copy link
Collaborator

@henning-gerhardt henning-gerhardt left a comment

Choose a reason for hiding this comment

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

Looks good.

Maybe add a .setXIncludeAlways(false) call of the documentBuilderFactory as mentioned in https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#java

@solth solth merged commit e5e6d13 into kitodo:master Feb 23, 2024
5 checks passed
@solth solth deleted the cwe-611-fix branch February 23, 2024 09:52
solth added a commit to effective-webwork/kitodo-production that referenced this pull request Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants