Skip to content

OpenVas re-import does not recognize same result #12378

@LinoSino

Description

@LinoSino

Bug Description

When importing or re-importing the same OpenVAS scan (or scans containing the same vulnerability), some findings are not recognized as already existing in the same test.

When I import the attached openvas.csv file for the first time, it correctly creates a finding. However, when I re-import the same file, it creates a duplicate finding instead of recognizing that it already exists.

The re-import was tested both manually via the GUI and through an API call.

Steps to reproduce

  1. Create a new test and import the attached CSV file.
  2. Re-import the same CSV file into the same test.
  3. A second, duplicate finding is created.

Expected behaviour
The re-import should recognize existing findings based on the generated hash. This works for most findings, but not for all. An example of a finding that fails to be recognized is included in the attached CSV file.

Deployment method (select with an X)

  • Docker Compose
  • Kubernetes
  • GoDojo

Environment information

  • Operating System: [Ubuntu 24.04.2]
  • Docker Compose version v2.35.1
  • DefectDojo Community v. 2.45.3

Sample scan files
openvas.csv

Screenshots
Uploaded scan twice
Image

Additional context
These are the hash_codes it generated:
second import:
Hash_code changed from "None" to "b1dccf748cfd23192d684069f99a237f0ed9201cfda912c29c9ddb89d5678eab"
first import:
Hash_code changed from "None" to "b1dccf748cfd23192d684069f99a237f0ed9201cfda912c29c9ddb89d5678eab"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions