Skip to content
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

Drop autofp #1300

Merged
merged 23 commits into from
Oct 5, 2020
Merged

Drop autofp #1300

merged 23 commits into from
Oct 5, 2020

Conversation

janowagner
Copy link
Member

@janowagner janowagner commented Sep 16, 2020

What:

Remove the functionality "autofp" (Auto False Positives).
This is a filter functionality for scan results using CVEs of confirmed
applied vendor fixes to eliminate same CVE alerts from less reliable tests (like
remote banner tests).
Associated with this the "auto_type" is removed, which is the new
severity type "False Positive" in case autofp applies to the result.

Why:

The QoD is capable to filter our less reliable results where wanted.
This method shows a much better performance as well, and actually
is applied by default already with a vlaue of 70%.

How:

The handling of the filter element "autofp" is removed as well as
the corresponding SQL query extensions and the returned result
extensions.
Checklist:

The columns array for index 0 was reserved for autofp.
So, for removing autofp the index 1 need to become 0
and 2 become 1.
In the result iterator for severity type, the autofp
was preferred if exists. Now only the overriden alone is applied.
This makes the iterator element number 5 unneeded.
Autofp was number 5 in the iterator count, so decrease
any iterator element beyond 5 by 1.
Apparently there was no direct reference into the column
numbers, so this patch is short and there is no need
to adjust index numbers.
Document the removal of "autofp" and "auto_type".
This remains from merging with master. The auto_type
does not exist anymore, so testing it for NULL is not
necessary anymore. This case is always true now.
src/manage_sql.c Outdated Show resolved Hide resolved
src/manage_sql.c Outdated Show resolved Hide resolved
src/manage_sql.c Outdated
" OR %s = 1)",
new_severity_sql,
auto_type_sql);
" )",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also would be nicer as ")))", on line 21261.

src/manage_sql.c Outdated Show resolved Hide resolved
The iterator does not have a int type as first element
anymore. If it is not "done", then it is a double type at
position 0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants