Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finding Open/Close/Review: Enforce more status standardization #10606

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

Maffooch
Copy link
Contributor

  • Allow for closing a finding when clearing a review
  • Enforces the under_review flag is set to False when reopening or closing a finding

[sc-3366]

Copy link

DryRun Security Summary

The pull request focuses on improving the functionality of the Defect Dojo application, specifically related to the handling of finding review and closure, without introducing any obvious security concerns, and aims to enhance the application's workflow and data integrity.

Expand for full summary

Summary:

The code changes in this pull request are focused on improving the functionality of the Defect Dojo application, specifically related to the handling of finding review and closure. The changes do not introduce any obvious security concerns and instead aim to enhance the application's workflow and data integrity.

The first change adds a new field called "is_mitigated" to the ClearFindingReviewForm, allowing users to update the mitigation status of a finding when clearing its review status. This is a minor update that does not raise any significant security red flags.

The second set of changes is related to the close_finding function in the dojo/finding/views.py file. These changes ensure that the finding's review status, last reviewed information, risk acceptance, and JIRA integration are properly handled when a finding is closed. This helps maintain the integrity and traceability of the findings within the application, which is crucial for effective vulnerability management and security posture.

Files Changed:

  1. dojo/forms.py: This file has been updated to add a new field called "is_mitigated" to the ClearFindingReviewForm. This change allows users to update the mitigation status of a finding when clearing its review status.

  2. dojo/finding/views.py: The changes in this file are focused on the close_finding function, ensuring that the finding's review status, last reviewed information, risk acceptance, and JIRA integration are properly handled when a finding is closed. These changes help maintain the integrity and traceability of the findings within the application.

Code Analysis

We ran 9 analyzers against 2 files and 1 analyzer had findings. 8 analyzers had no findings.

Analyzer Findings
Authn/Authz Analyzer 2 findings

Riskiness

🟢 Risk threshold not exceeded.

View PR in the DryRun Dashboard.

Copy link

Copy link
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@Maffooch Maffooch merged commit a13d50e into DefectDojo:bugfix Jul 24, 2024
125 checks passed
@Maffooch Maffooch deleted the status branch August 6, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants