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

发现您的项目中可能存在XXE漏洞(CVE-2021-3869、CVE-2021-3878) #80

Open
Crispy-fried-chicken opened this issue Jan 14, 2024 · 1 comment

Comments

@Crispy-fried-chicken
Copy link

我发现您的项目中cf-framework-parent/cf-framework-utils/src/main/java/com/cf/framework/utils/StringTools.java文件中的com.cf.framework.utils.StringTools.xmlToMap(String xml)函数在创建documentBuilderFactory 对象的时候没有限制外部实体的使用,可能会造成外部实体注入漏洞,进而导致关键信息泄露的问题,可以参考CVE-2021-3869CVE-2021-3878这两个CVE,他们的参考链接如下:

CVE-2021-3869:
NVD说明链接:
https://nvd.nist.gov/vuln/detail/CVE-2021-3869
commit修复链接:
stanfordnlp/CoreNLP@5d83f1e

CVE-2021-3878:
NVD说明链接:
https://nvd.nist.gov/vuln/detail/CVE-2021-3878
commit修复链接:
stanfordnlp/CoreNLP@e5bbe13

考虑到其可能存在的潜在风险,我愿意配合您以负责任的方式及时核实、解决和报告发现的漏洞。 如果您需要任何进一步的信息或帮助,请随时与我联系。如果需要,我也可以提交PR帮助您修复。 谢谢您,期待尽快收到您的回复!

@981011512
Copy link
Owner

历史版本可能存在这个问题,暂时解决方案:启动指令请带上 -Dlog4j2.formatMsgNoLookups=true ,可以避免此类漏洞带来的可能安全问题

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