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

nsc.list_vuln_exceptions does not return site_id as documented #250

Closed
tnewcomb-r7 opened this issue Oct 5, 2016 · 3 comments
Closed

nsc.list_vuln_exceptions does not return site_id as documented #250

tnewcomb-r7 opened this issue Oct 5, 2016 · 3 comments
Assignees

Comments

@tnewcomb-r7
Copy link
Contributor

I am expecting to be able to get a site_id on an exception via GEM

Currently the site_id is just nil

assumptions:
asset linking turned off on nexpose
create an exception for a vulnerability on a site

Ruby code:
vuln_except_list = nsc.list_vuln_exceptions(status = 'Approved')
vuln_except_list.each_entry do |vulnEx|
puts vulnEx.site_id
end

Context

Trying to export vulnerability exceptions on a site

Your Environment

ruby 2.3.1
gem 5.1.0
nexpose 6.4.1
Darwin and Ubuntu 14

@gschneider-r7
Copy link
Contributor

Todo: Investigate if this is due to the API response from Nexpose lacking the site ID, or if it was just overlooked in the ruby code.

@gschneider-r7 gschneider-r7 self-assigned this Oct 10, 2016
@gschneider-r7
Copy link
Contributor

It looks like the Nexpose API itself does not provide the site ID, nor is it defined in the XML API 1.2 schema. We'll need another API endpoint for this.

@sgreen-r7
Copy link
Contributor

This was fixed back in v6.0.0 of the gem.

#266

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants