github / github/codeql

False negatives of `py/flask-debug`

未关闭
#21,616 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
CodeQL
星标
10.1k
派生
2.1k
平均合并
2 天 15 小时
30 天内合并 PR
141

描述

`py/flask-debug` misses some common ways to enable debug mode in Flask.

For example:
```python
app = Flask(__name__)
app.config['DEBUG'] = True # Enables debug mode
app.run()

---
class Settings:
DEBUG = True

settings = Settings()
app.run(debug=settings.DEBUG)
```

贡献指南

打开贡献指南

调研方向

Start by locating the py/flask-debug query and reproducing the two examples in the issue. Compare the query's behavior with both configuration-based and argument-based debug activation; done means these common Flask patterns are detected without regressing existing cases.

由索引模型根据 Issue 内容生成。

评估

技术栈
flask, python
领域
security
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
58/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。