Skip to content

Finding Template applied only partially for new findings #11925

@valentijnscholten

Description

@valentijnscholten

Is your feature request related to a problem? Please describe
Based on a Slack discussion that found out that tags from tempalte are not applied to new findings:
https://owasp.slack.com/archives/C2P5BA8MN/p1739915838994189

When a finding template gets matched on creation of a new finding, only part of the template fields are applied.

The code only applies:

  • impact
  • mitigation
  • references
    if template:
    finding.mitigation = template.mitigation
    finding.impact = template.impact
    finding.references = template.references
    template.last_used = timezone.now()
    template.save()
    return finding

But the template contains more fields like:

  • tags
  • description
  • cwe
  • vulnerability ids
  • CVSS
  • severity

Describe the solution you'd like
It would be easy to add the tags from the template to the finding, but a more broader question is what to do with the other fields and if we still want to support this type of template matching.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions