-
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
Greenbone XML Import broken #11695
Comments
Could you point us to the exact report to reproduce this with? Could you reproduce it the demo instance? I tried the report from #8761 (comment) in the demo instance and imports as expected with all 44 findings as active: https://demo.defectdojo.org/engagement/27 |
I think any report should be sufficient for this, but I have generated data in my lab environment for verification. It was scanned 2x Metasploitable, once with active (test 1) and once with deactivated Apache (test 2). The results were exported to XML and CSV. I think this shows the differences: Differences XML/CSV:
Versions: DefectDojo gvm_test_data_metasploitable.tar.gz I hope this information helps! |
Ah, your running multiple imports sequentially. Mitigated findings django-DefectDojo/dojo/settings/settings.dist.py Line 1194 in e0de953
OpenVAS doesn't have a configuration, so Defect Dojo will fallback to the default fields ['title', 'cwe', 'line', 'file_path', 'description'] .
You may try to configure the hashcode configuration via If you have a good suggestion for what the config should be, you could raise a PR so we can merge the config into Defect Dojo default config ( Endpoints |
Thank you very much. With Greenbone/OpenVAS it is normal to have multiple hosts or destinations in one report, even whole subnets are possible. In the XML import, for example, “Java RMI Server Insecure Default Configuration RCE Vulnerability - Active Check” is incorrectly marked as resolved because the “Destination port” in the description is different. Presumably it only makes sense with OpenVAS as “HASHCODE_FIELDS_PER_SCANNER”:
“endpoints” is missing, currently there is probably a workaround that it is generated in the title. @valentijnscholten I set this variable in |
The name is |
@valentijnscholten : With XML ( There is no
The XML parser generates it from CVSS.
|
@valentijnscholten Perhaps someone knows a solution to this problem? |
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:
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
Environment information
The text was updated successfully, but these errors were encountered: