ID CVE-2019-10666
Summary An issue was discovered in LibreNMS through 1.47. Several of the scripts perform dynamic script inclusion via the include() function on user supplied input without sanitizing the values by calling basename() or a similar function. An attacker can leverage this to execute PHP code from the included file. Exploitation of these scripts is made difficult by additional text being appended (typically .inc.php), which means an attacker would need to be able to control both a filename and its content on the server. However, exploitation can be achieved as demonstrated by the csv.php?report=../ substring.
References
Vulnerable Configurations
  • cpe:2.3:a:librenms:librenms:0.1:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.19:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.19:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.20:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.20:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.20.1:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.20.1:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.21:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.21:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.22:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.22:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.22.01:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.22.01:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.23:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.23:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.24:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.24:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.25:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.25:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.26:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.26:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.27:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.27:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.28:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.28:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.29:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.29:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.30:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.30:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.30.01:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.30.01:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.31:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.31:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.31.01:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.31.01:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.31.02:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.31.02:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.31.03:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.31.03:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.32:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.32:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.32.01:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.32.01:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.33:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.33:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.33.01:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.33.01:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.34:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.34:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.35:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.35:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.36:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.36:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.36.01:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.36.01:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.37:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.37:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.38:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.38:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.39:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.39:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.40:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.40:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.41:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.41:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.42:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.42:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.42.01:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.42.01:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.43:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.43:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.44:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.44:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.45:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.45:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.46:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.46:*:*:*:*:*:*:*
  • cpe:2.3:a:librenms:librenms:1.47:*:*:*:*:*:*:*
    cpe:2.3:a:librenms:librenms:1.47:*:*:*:*:*:*:*
CVSS
Base: 6.8 (as of 21-07-2021 - 11:39)
Impact:
Exploitability:
CWE CWE-94
CAPEC
  • Code Injection
    An adversary exploits a weakness in input validation on the target to inject new code into that which is currently executing. This differs from code inclusion in that code inclusion involves the addition or replacement of a reference to a code file, which is subsequently loaded by the target and used as part of the code of some application.
  • 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.
  • 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.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:N/AC:M/Au:N/C:P/I:P/A:P
refmap via4
misc https://www.darkmatter.ae/xen1thlabs/librenms-limited-local-file-inclusion-via-directory-traversal-vulnerability-xl-19-020/
Last major update 21-07-2021 - 11:39
Published 09-09-2019 - 13:15
Last modified 21-07-2021 - 11:39
Back to Top