[Security] SonarQube faux positif: CORS flagué comme CSRF désactivé (python:S4502) #55
Labels
No labels
P0-critical
P1-high
P2-medium
P3-low
UX
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
performance
question
security
tech-debt
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SlopVibe-org/nutri-food#55
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problème
SonarQube rapporte 1 vulnérabilité CRITICAL:
backend/app.py:34Analyse
Faux positif. SonarQube voit le CORS et déduit que CSRF est désactivé. En réalité:
nf_csrf_tokensetté au loginbefore_app_requestvalideX-CSRF-Tokensur toutes les requêtes mutativesSolution recommandée
Option A: Marquer faux positif dans SonarQube (recommandé)
Option B: Ajouter
# nosecou réorganiserPriorité
P3-low