github / github/codeql

There is a script injection here, but codeql can't detect it

オープン
#12,472 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
false-positive
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。