github / github/codeql

False negatives of `py/flask-debug`

Offen
#21,616 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
CodeQL
Sterne
10.1k
Forks
2.1k
Ø Merge
2 T. 15 Std.
Gemergte PRs (30 T.)
141

Beschreibung

`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)
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
flask, python
Bereich
security
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
58/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.