Vulnerabilities > CVE-2018-18249 - Code Injection vulnerability in Icinga web 2

047910
CVSS 7.5 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
low complexity
icinga
CWE-94
nessus

Summary

Icinga Web 2 before 2.6.2 allows injection of PHP ini-file directives via vectors involving environment variables as the channel to send information to the attacker, such as a name=${PATH}_${APACHE_RUN_DIR}_${APACHE_RUN_USER} parameter to /icingaweb2/navigation/add or /icingaweb2/dashboard/new-dashlet.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.

Nessus

NASL familySuSE Local Security Checks
NASL idOPENSUSE-2020-67.NASL
descriptionThis update for icingaweb2 to version 2.7.3 fixes the following issues : icingaweb2 update to 2.7.3 : - Fixed an issue where servicegroups for roles with filtered objects were not available icingaweb2 update to 2.7.2 : - Performance imrovements and bug fixes icingaweb2 update to 2.7.1 : - Highlight links in the notes of an object - Fixed an issue where sort rules were no longer working - Fixed an issue where statistics were shown with an anarchist way - Fixed an issue where wildcards could no show results icingaweb2 update to 2.7.0 : - New languages support - Now module developers got additional ways to customize Icinga Web 2 - UI enhancements icingaweb2 update to 2.6.3 : - Fixed various issues with LDAP - Fixed issues with timezone - UI enhancements - Stability fixes icingaweb2 update to 2.6.2 : You can find issues and features related to this release on our Roadmap. This bugfix release addresses the following topics : - Database connections to MySQL 8 no longer fail - LDAP connections now have a timeout configuration which defaults to 5 seconds - User groups are now correctly loaded for externally authenticated users - Filters are respected for all links in the host and service group overviews - Fixed permission problems where host and service actions provided by modules were missing - Fixed a SQL error in the contact list view when filtering for host groups - Fixed time zone (DST) detection - Fixed the contact details view if restrictions are active - Doc parser and documentation fixes Fix security issues : - CVE-2018-18246: fixed an CSRF in moduledisable (boo#1119784) - CVE-2018-18247: fixed an XSS via /icingaweb2/navigation/add (boo#1119785) - CVE-2018-18248: fixed an XSS attack is possible via query strings or a dir parameter (boo#1119801) - CVE-2018-18249: fixed an injection of PHP ini-file directives involves environment variables as channel to send out information (boo#1119799) - CVE-2018-18250: fixed parameters that can break navigation dashlets (boo#1119800) - Remove setuid from new upstream spec file for following dirs : /etc/icingaweb2, /etc/icingaweb/modules, /etc/icingaweb2/modules/setup, /etc/icingaweb2/modules/translation, /var/log/icingaweb2 icingaweb2 updated to 2.6.1 : - You can find issues and features related to this release on our [Roadmap](https://github.com/Icinga/icingaweb2/milestone /51?closed=1). - The command audit now logs a command
last seen2020-06-01
modified2020-06-02
plugin id133031
published2020-01-17
reporterThis script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/133031
titleopenSUSE Security Update : icingaweb2 (openSUSE-2020-67)