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

Alerts Are Not Correctly Parsed or Saved #32

Closed
mdaines-r7 opened this issue Apr 19, 2013 · 1 comment
Closed

Alerts Are Not Correctly Parsed or Saved #32

mdaines-r7 opened this issue Apr 19, 2013 · 1 comment

Comments

@mdaines-r7
Copy link
Contributor

Alerts are not correctly parsed from site configurations when loading them from a Nexpose console. An attempt to save a site which contains an alert will fail to save with a 'name cannot be null' error.

The underlying XML is not correctly parsed or used.

Here is an example of the three kinds of alerts.

SMTP

<Alert name="Scan Completion e-mail" enabled="1" maxAlerts="1">
  <scanFilter scanStart="0" scanStop="1" scanFailed="0" scanResumed="0" scanPaused="0"/>
  <vulnFilter severityThreshold="1" confirmed="0" unconfirmed="0" potential="0"/>
  <smtpAlert sender="from@company.com" server="smtp.company.com" limitText="0">
    <recipient>to@company.com</recipient>
  </smtpAlert>
</Alert>

Syslog

<Alert name="syslog attempt" enabled="1" maxAlerts="1">
  <scanFilter scanStart="1" scanStop="0" scanFailed="0" scanResumed="0" scanPaused="0"/>
  <vulnFilter severityThreshold="1" confirmed="0" unconfirmed="1" potential="1"/>
  <syslogAlert server="syslog.company.com"/>
</Alert>      

SNMP

<Alert name="snmp" enabled="1" maxAlerts="2">
  <scanFilter scanStart="0" scanStop="0" scanFailed="0" scanResumed="0" scanPaused="1"/>
  <vulnFilter severityThreshold="8" confirmed="1" unconfirmed="0" potential="0"/>
  <snmpAlert community="communityname" server="managementserver"/>
</Alert>
@mdaines-r7
Copy link
Contributor Author

0.1.14 of the gem should fix this issue.

Right now, the configuration just works off 0 and 1 for the booleans, which could be cleaned up in the future.

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

No branches or pull requests

1 participant