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

XML外部实体注入漏洞(XML External Entity Injection,简称 XXE) #158

Closed
amaoamao opened this issue Jul 4, 2018 · 1 comment
Closed

Comments

@amaoamao
Copy link

amaoamao commented Jul 4, 2018

XMLParse类在解析XML的时候没有禁用对外部实体的引用
fix:

DocumentBuilderFactory dbf =DocumentBuilderFactory.newInstance();
dbf.setExpandEntityReferences(false);

尊敬的微信支付商户:

您的系统在接受微信支付XML格式的商户回调通知(支付成功通知、退款成功通知、委托代扣签约/解约/扣款通知、车主解约通知)时,如未正确地进行安全设置或编码,将会引入有较大安全隐患的XML外部实体注入漏洞(XML External Entity Injection,简称 XXE)。

请贵司研发人员务必参考微信支付安全实践指引:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=23_5 ,进行安全隐患确认和排除。

微信支付团队
2018年7月4号

@liyiorg
Copy link
Owner

liyiorg commented Jul 4, 2018

@amaoamao 周六前会发布一个更新版本

liyiorg pushed a commit that referenced this issue Jul 6, 2018
@amaoamao amaoamao closed this as completed Jul 9, 2018
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

No branches or pull requests

2 participants