-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Always populating description
, adding title
for webhook payloads
#11159
Conversation
DryRun Security SummaryThe pull request primarily focuses on improving the documentation and handling of notification webhooks in the DefectDojo application, including updates to example JSON payloads, the addition of new fields, and modifications to the handling of various webhook events, while also considering potential security implications such as sensitive information exposure, input validation, webhook security, secure communication, and access control and auditing. Expand for full summarySummary: The changes in this pull request are primarily focused on improving the documentation and handling of notification webhooks in the DefectDojo application. The changes include updates to the example JSON payloads, the addition of new fields, and modifications to the handling of various webhook events, such as "product_type_added", "engagement_added", and "scan_added". From an application security perspective, the changes do not appear to introduce any obvious security vulnerabilities. However, there are a few areas that should be reviewed and considered to maintain a secure application:
Overall, the changes in this pull request appear to be focused on improving the functionality and documentation of the notification webhooks in DefectDojo. While there are no obvious security concerns, it's important to maintain a vigilant approach to application security and review the implementation in the broader context of the application. Files Changed:
Code AnalysisWe ran Riskiness🟢 Risk threshold not exceeded. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
Description
To give the user more information about the events that triggered a webhook, I've slightly modified the logic to ensure that
description
is always populated with something, andtitle
is included as well in the webhook JSON body. Unfortunately, we aren't always consistent with how we callcreate_notification
:title
is populated with something that isn't really a "title" at all but more of a description, like the number of findings added in a scantitle
is populated with a formatted string with e.g. product + engagement nametitle
is populated with the exact name of e.g. a product or product typetitle
is populated with a simple string explaining what happened, like "Deletion of [endpoint name]"In the future, we should make these a bit more consistent, but that will be a more involved effort. In the meantime, including the
title
and ensuring that adescription
is always populated will at least give the user a better experience.Relevant fields from some example webhook payloads
Documentation
The documentation has been updated to reflect these changes.
[sc-8182]