Veracode扫描说,这个日志记录有Improper Output Neutralization for Logs,并建议使用ESAPI记录器。有没有办法在不将记录器更改为ESAPI的情况下修复此漏洞?这是我在代码中遇到这个问题的唯一地方,我试图找出如何用最小的更改来修复它。也许ESAPI有一些我没注意到的方法?当前的记录器是Log4j over slf4j
UPD:最后我使用了ESAPI记录器。我以为它不会使用我
和Validation.properties上传到与主类和验证器类相同的源文件夹中。\ESAPIProofOfConcept\ESAPI.properties.esapi\ESAPI.properties
Found in 'user.home' directory: C:\Users\1730176\esapi\ESAPI.properti
为此,我将验证属性设置为But ESAPI.validator().getValidInput(context;java.lang.IllegalArgumentException: The selected type [SqBrackText] was not set via the ESAPIvalidation configuration
at org.owasp.esapi.reference.
我无法使用ESAPI类下存在的of方法 type - The regular expression name that maps to the actual regular expression from "ESAPI.properties如何从ESAPI.properties文件中传递参数类型?有没有我可以参考的使用
我正在尝试使用ESAPI.jar为我的web application.Basically提供安全性,我刚刚开始使用ESAPI.jar。但问题是我甚至不能使用ESAPI运行一个简单的程序。at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:129)
at org.owasp.esapi.ESAPI.securityConfiguration(ESAPI.java:184