【问题标题】:False positive Spring LDAP from findbugs-sec-plugin来自 findbugs-sec-plugin 的误报 Spring LDAP
【发布时间】:2020-08-30 19:22:38
【问题描述】:

它似乎没有考虑到Filter.toString/encode 实际上可以正确编码 LDAP 过滤器。所以如果我有类似的标志

Filter filter = blahblah;
ldapTemplate.search("", filter.toString());

它会在不应该的地方标记此代码易受 LDAP 注入攻击。

如何让 findsec-bugs-plugin 不将这种用法标记为问题?

【问题讨论】:

  • 请分享 Spotbugs 报告。

标签: java spotbugs find-sec-bugs


【解决方案1】:

这一切都取决于 Filter 类的实现。 Find-Security-Bugs 还不知道该类。如果它正确地转义了潜在的输入,我们可以轻松地将Filter.toString() 标记为安全。是the class from UnboundID吗。

open a ticket on the issue tracker on Find-Security-Bugs

【讨论】:

    猜你喜欢
    • 2018-01-30
    • 2014-11-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-29
    • 1970-01-01
    相关资源
    最近更新 更多