-
Notifications
You must be signed in to change notification settings - Fork 101
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
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add { } for if()
From #43