🐛 fix close_old_findings through service field in several parsers #14640#14687
🐛 fix close_old_findings through service field in several parsers #14640#14687manuel-sommer wants to merge 11 commits intoDefectDojo:devfrom
Conversation
|
@valentijnscholten please take a look here |
|
This pull request includes a sensitive edit to the file dojo/db_migrations/0264_clear_service_for_affected_parsers.py that matches configured codepaths rules (see .dryrunsecurity.yaml) and is flagged as an error under the risk threshold; the finding is non-blocking but should be reviewed for allowed authors and path sensitivity.
🔴 Configured Codepaths Edit in
|
| Vulnerability | Configured Codepaths Edit |
|---|---|
| Description | Sensitive edits detected for this file. Sensitive file paths and allowed authors can be configured in .dryrunsecurity.yaml. |
We've notified @mtesauro.
Comment to provide feedback on these findings.
Report false positive: @dryrunsecurity fp [FINDING ID] [FEEDBACK]
Report low-impact: @dryrunsecurity nit [FINDING ID] [FEEDBACK]
Example: @dryrunsecurity fp drs_90eda195 This code is not user-facing
All finding details can be found in the DryRun Security Dashboard.
There was a problem hiding this comment.
If a service was supplied to these test types at import time, does that value override the value set by the parser? If so, could this migration potentially erase service fields that are from the user?
There was a problem hiding this comment.
That's a question beyond my knowledge. Maybe @valentijnscholten has an opinion on this.
There was a problem hiding this comment.
The importers overwrite any fields set by the parsers:
django-DefectDojo/dojo/importers/default_importer.py
Lines 216 to 217 in 9d661d7
django-DefectDojo/dojo/importers/default_reimporter.py
Lines 337 to 338 in 9d661d7
There was a problem hiding this comment.
So it seems like this migration would erase data intentionally set by users...
There was a problem hiding this comment.
Is there a possibility to distinguish between the two ways?
#14640