Node-config Configuration File Detected

medium Web App Scanning Plugin ID 114143

Synopsis

Node-config Configuration File Detected

Description

Node-config is a Node.js module providing hierarchical configurations to help with web applications deployments. By defining one or more configuration files in their application project 'config' directory or in a custom location, developers can define various configuration variables to be used in the different application environments.

By accessing an exposed configuration file, an attacker could leverage the vulnerability to gain unauthorized access to sensitive information.

Solution

Ensure that the file(s) found are not deployed with the application or, at least, is not exposed in a web server directory by setting proper permissions on it. If sensitive information like credentials are leaked in the exposed file, they should be revoked and reset on the affected assets.

See Also

https://github.com/node-config/node-config

https://github.com/node-config/node-config/wiki/Configuration-Files

Plugin Details

Severity: Medium

ID: 114143

Type: remote

Published: 1/3/2024

Updated: 1/3/2024

Scan Template: api, basic, full, pci, scan

Risk Information

VPR

Risk Factor: Low

Score: 1.4

CVSS v2

Risk Factor: Medium

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS Score Source: Tenable

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

CVSS Score Source: Tenable

Reference Information