Skip to content

Improve NagiosXI authenticated exploit modules to increase resilience and for use with Autocheck disabled #17606

@k0pak4

Description

@k0pak4

Summary

During the course of #17494 there were several concerns with how the NagiosXI login mixin was being used in the check method, which prevents the module from working when Autocheck is disabled. Additionally, other improvements were made including cleaner regexes in version detection, nil checks on objects that were assumed to be not nil, and other improvements. After examining the other NagiosXI modules the following modules should be modified to also take advantage of these improvements:

  • modules\exploits\linux\http\nagios_xi_autodiscovery_webshell.rb
  • modules\exploits\linux\http\nagios_xi_mibs_authenticated_rce.rb
  • modules\exploits\linux\http\nagios_xi_plugins_check_plugin_authenticated_rce.rb
  • modules\exploits\linux\http\nagios_xi_plugins_filename_authenticated_rce.rb

Improvements

Generally, these modules can also be cleaned up and shortened similarly to how the config wizards RCE module was through PR.

Motivation

Currently, these modules will fail with AutoCheck disabled, so we want to improve that first and foremost. Additionally, the version checking and error codes will provide more support when running the modules against old versions of NagiosXI.

Vulnerable Software

In general, older versions of NagiosXI can be found:

documentation\modules\exploit\linux\http\nagios_xi_configwizards_authenticated_rce.md has detailed installation instructions if help is needed on install

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions