-
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
OpenVAS parser should trim/strip hostname #11904
Comments
Do you have a (redacted) openvas report that reproduces this? Is the extra space present in the report, or does it look like DD is adding it? |
Well, space is not an officially valid character in host (in any standard contention that I know), so it should be fixed by the producer of the report (OpenVAS in this case), and it should be addressed in their project, in my opinion. @yerayvillamarin, can you try to approach them? Btw, it is also the reason why you have a red flag next to the endpoint. |
Hello, Thank you for your feedback. I completely agree that the basic problem is OpenVAS. I have also created a ticket for you to evaluate this problem. Thanks for your time, I look forward to hearing from you! |
@kiblik How can these invalid hosts end up in Defect Dojo? When I try to create such an endpoint from a parser I am getting a ValidationError from the clean method. |
I added a strip() in #11955 as I was working on OpenVAS anyway. |
Hello! Thank you for this patch. Appreciate the great work you do with the tool. I will update as soon as it is available. |
Will be in release 2.44.2 |
Bug description
We have a script that downloads the reports from OpenVAS and uploads them to DefectDojo automatically via the API. When we upload one of these reports the hosts are duplicated assigning some vulnerabilities to one and others to another.
After review we see that the reason for the duplication is that the host name adds spaces in front making them different. One of the hosts, for example, is “10.69.7.21” and the other is “ 10.69.7.21”. I attach some explanatory images.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
We are looking for these hosts to be the same, so that this space can be eliminated in some way such as a trim or some solution that is correct to avoid this.
Deployment method (select with an
X
)Environment information
Screenshots

The text was updated successfully, but these errors were encountered: