Skip to content

Greenbone XML Import broken #11695

Description

@Whitehorse2

There are some problems with the Greenbone import.

Bug description
Problem 1:
When importing via the ‘OpenVAS Parser’ as XML, the scanner delivers a significant high number under Closed Findings than under Open Findings, which is impossible in my case.

Problem 2:
In addition, Hosts/Endpoints is completely empty.

Steps to reproduce
Import Options:

    Data = {
        engagement': engagement_id,
        scan_type': “OpenVAS Parser”,
        scan_date': scan_date,
        verified': ’true
        ‘minimum_severity’: ‘Low’,
        close_old_findings': ’true’
    }

    response = requests.post(f‘{DD_API_URL}import-scan/’, headers=headers, files=files, data=data)

I tested this with the xml files from the old issue. #8761

Expected behavior
Hosts and Endpoints from findings are available at the product page.
Only fixed vulnerabilities are closed/migrated.

Deployment method

  • Docker Compose
  • Kubernetes
  • GoDojo

Environment information

  • Operating System: Ubuntu 24.04
  • DefectDojo version 2.42.3

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions