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

attempt XXE prevention using custom external entity loader #93

Merged
merged 5 commits into from
Apr 6, 2017
Merged

attempt XXE prevention using custom external entity loader #93

merged 5 commits into from
Apr 6, 2017

Conversation

d-hat
Copy link
Contributor

@d-hat d-hat commented Mar 16, 2017

From #43

@d-hat d-hat mentioned this pull request Mar 16, 2017
Copy link
Owner

@lsh123 lsh123 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, a couple small comments.

src/xmlsec.c Outdated

/*
* Wrapper for xmlSetExternalEntityLoader: provide NULL to restore
* libxml's default handler
Copy link
Owner

Choose a reason for hiding this comment

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

Please add documentation for parameters. Also I would suggest to change the name f -> entityLoader

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks - also added properly-formatted comment for xmlSecNoXxeExternalEntityLoader

src/xmlsec.c Outdated
@@ -53,6 +91,10 @@ xmlSecInit(void) {
return(-1);
}

/* initialise safe external entity loader */
if (!xmlSecDefaultExternalEntityLoader)
Copy link
Owner

Choose a reason for hiding this comment

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

Please add { } for if()

@lsh123 lsh123 merged commit bc5b3bc into lsh123:master Apr 6, 2017
@d-hat d-hat deleted the noxxe-workaround branch April 7, 2017 02:48
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.

2 participants