There is a script injection here, but codeql can't detect it
- 主要语言
- CodeQL
- 星标
- 10.1k
- 派生
- 2.1k
- 平均合并
- 2 天 15 小时
- 30 天内合并 PR
- 141
描述
**There is a script injection here, but codeql can't detect it, it may be a source problemDescription of the false positive**
**Code samples or links to source code**
For closed source code: (redacted) code samples that illustrate the problem, for example:
```
public AccessResult addHtmlTemplate(@RequestBody TemplateBean template) {
params = template.getParams();
map = (Map)this.objectMapper.readValue(params.getExtensionParam(), Map.class);
String newExpression = ((String)map.get("expression"))
ScriptEngineManager engineManager = new ScriptEngineManager();
ScriptEngine engine = engineManager.getEngineByName("javascript");
try {
Object eval = engine.eval(newExpression);
if (eval != null) {
return true;
}
} catch (Exception var5) {
var5.printStackTrace();
}
}
```
贡献指南
评估
这个 Issue 还没有评估数据。