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

ignore script_bugtraq_id() and warn in linter #724

Merged
merged 2 commits into from
May 3, 2021

Conversation

Kraemii
Copy link
Member

@Kraemii Kraemii commented Apr 29, 2021

What:
The nasl-function script_bugtraq_id() is now getting ignored. The linter warns if it is used.

Why:
As securityfocus.com has lost it's value / importance these days it doesn't make much sense to have a dedicated script tag just for this page which isn't a clickable link anyway. In addition users probably don't know what the "BID" in the reference is as well.

How:
Changed the pointer to the script_bugtraq_id() function to a dummy function which does nothing, so it skips it. Added a warning for the linter in case the function appears. Tested it with a custom script which contains the function. For openvas-nasl nothing happened and for openvas-nasl-linter a warning was shown on the command line.

Checklist:

@Kraemii Kraemii requested a review from a team as a code owner April 29, 2021 13:17
@jjnicola jjnicola merged commit ef46f94 into greenbone:master May 3, 2021
@Kraemii Kraemii deleted the ignore-bugtraq_id branch June 18, 2021 09:24
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