Flask ImmutableMultiDict type cannot be accurately determined when calling to_dict
未關閉
question
- 主要語言
- CodeQL
- 星號
- 10.1k
- 分支
- 2.1k
- 平均合併
- 2 天 15 小時
- 30 天內合併 PR
- 141
描述
In Flask, the ImmutableMultiDict type cannot be accurately determined when calling to_dict()
```
from flask import Flask, render_template, request, redirect, url_for
def post(self):
f = request.form
param = f.to_dict()
vv = param["vv"]
pp = "/test/%s" % (vv)
os.system(pp)
```

貢獻指南
研究方向
從使用 request.form 和 to_dict() 的 Flask 範例開始,接著檢查 CodeQL 對 Flask 的 ImmutableMultiDict 及其 to_dict() 回傳型別的建模。確認所回報的型別解析行為,並找出相關的 CodeQL 測試;對此案例而言,能準確判定型別即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- flask, python
- 領域
- security
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100