🐛 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 13 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, which matches configured sensitive codepaths (see .dryrunsecurity.yaml) and has been flagged as an error by the configured-codepaths analyzer. The change is marked as high risk per the scanner and may require review or explicit authorization for the authors.
🔴 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?
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
any updates on this @valentijnscholten and @Maffooch ? I will resolve conflicts after the next review. |
#14640