CVE Vulnerabilities

CVE-2024-21619

Generation of Error Message Containing Sensitive Information

Published: Jan 25, 2024 | Modified: Jan 31, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu

A Missing Authentication for Critical Function vulnerability combined with a Generation of Error Message Containing Sensitive Information vulnerability in J-Web of Juniper Networks Junos OS on SRX Series and EX Series allows an unauthenticated, network-based attacker to access sensitive system information.

When a user logs in, a temporary file which contains the configuration of the device (as visible to that user) is created in the /cache folder. An unauthenticated attacker can then attempt to access such a file by sending a specific request to the device trying to guess the name of such a file. Successful exploitation will reveal configuration information.

This issue affects Juniper Networks Junos OS on SRX Series and EX Series:

  • All versions earlier than 20.4R3-S9;
  • 21.2 versions earlier than 21.2R3-S7;
  • 21.3 versions earlier than 21.3R3-S5;
  • 21.4 versions earlier than 21.4R3-S6;
  • 22.1 versions earlier than 22.1R3-S5;
  • 22.2 versions earlier than 22.2R3-S3;
  • 22.3 versions earlier than 22.3R3-S2;
  • 22.4 versions earlier than 22.4R3;
  • 23.2 versions earlier than 23.2R1-S2, 23.2R2.

Weakness

The product generates an error message that includes sensitive information about its environment, users, or associated data.

Affected Software

Name Vendor Start Version End Version
Junos Juniper * 20.4 (excluding)
Junos Juniper 20.4 (including) 20.4 (including)
Junos Juniper 20.4-r1 (including) 20.4-r1 (including)
Junos Juniper 20.4-r1-s1 (including) 20.4-r1-s1 (including)
Junos Juniper 20.4-r2 (including) 20.4-r2 (including)
Junos Juniper 20.4-r2-s1 (including) 20.4-r2-s1 (including)
Junos Juniper 20.4-r2-s2 (including) 20.4-r2-s2 (including)
Junos Juniper 20.4-r3 (including) 20.4-r3 (including)
Junos Juniper 20.4-r3-s1 (including) 20.4-r3-s1 (including)
Junos Juniper 20.4-r3-s2 (including) 20.4-r3-s2 (including)
Junos Juniper 20.4-r3-s3 (including) 20.4-r3-s3 (including)
Junos Juniper 20.4-r3-s4 (including) 20.4-r3-s4 (including)
Junos Juniper 20.4-r3-s5 (including) 20.4-r3-s5 (including)
Junos Juniper 20.4-r3-s6 (including) 20.4-r3-s6 (including)
Junos Juniper 20.4-r3-s7 (including) 20.4-r3-s7 (including)
Junos Juniper 20.4-r3-s8 (including) 20.4-r3-s8 (including)
Junos Juniper 21.2 (including) 21.2 (including)
Junos Juniper 21.2-r1 (including) 21.2-r1 (including)
Junos Juniper 21.2-r1-s1 (including) 21.2-r1-s1 (including)
Junos Juniper 21.2-r1-s2 (including) 21.2-r1-s2 (including)
Junos Juniper 21.2-r2 (including) 21.2-r2 (including)
Junos Juniper 21.2-r2-s1 (including) 21.2-r2-s1 (including)
Junos Juniper 21.2-r2-s2 (including) 21.2-r2-s2 (including)
Junos Juniper 21.2-r3 (including) 21.2-r3 (including)
Junos Juniper 21.2-r3-s1 (including) 21.2-r3-s1 (including)
Junos Juniper 21.2-r3-s2 (including) 21.2-r3-s2 (including)
Junos Juniper 21.2-r3-s3 (including) 21.2-r3-s3 (including)
Junos Juniper 21.2-r3-s4 (including) 21.2-r3-s4 (including)
Junos Juniper 21.2-r3-s5 (including) 21.2-r3-s5 (including)
Junos Juniper 21.2-r3-s6 (including) 21.2-r3-s6 (including)
Junos Juniper 21.3 (including) 21.3 (including)
Junos Juniper 21.3-r1 (including) 21.3-r1 (including)
Junos Juniper 21.3-r1-s1 (including) 21.3-r1-s1 (including)
Junos Juniper 21.3-r1-s2 (including) 21.3-r1-s2 (including)
Junos Juniper 21.3-r2 (including) 21.3-r2 (including)
Junos Juniper 21.3-r2-s1 (including) 21.3-r2-s1 (including)
Junos Juniper 21.3-r2-s2 (including) 21.3-r2-s2 (including)
Junos Juniper 21.3-r3 (including) 21.3-r3 (including)
Junos Juniper 21.3-r3-s1 (including) 21.3-r3-s1 (including)
Junos Juniper 21.3-r3-s2 (including) 21.3-r3-s2 (including)
Junos Juniper 21.3-r3-s3 (including) 21.3-r3-s3 (including)
Junos Juniper 21.3-r3-s4 (including) 21.3-r3-s4 (including)
Junos Juniper 21.4 (including) 21.4 (including)
Junos Juniper 21.4-r1 (including) 21.4-r1 (including)
Junos Juniper 21.4-r1-s1 (including) 21.4-r1-s1 (including)
Junos Juniper 21.4-r1-s2 (including) 21.4-r1-s2 (including)
Junos Juniper 21.4-r2 (including) 21.4-r2 (including)
Junos Juniper 21.4-r2-s1 (including) 21.4-r2-s1 (including)
Junos Juniper 21.4-r2-s2 (including) 21.4-r2-s2 (including)
Junos Juniper 21.4-r3 (including) 21.4-r3 (including)
Junos Juniper 21.4-r3-s1 (including) 21.4-r3-s1 (including)
Junos Juniper 21.4-r3-s2 (including) 21.4-r3-s2 (including)
Junos Juniper 21.4-r3-s3 (including) 21.4-r3-s3 (including)
Junos Juniper 21.4-r3-s4 (including) 21.4-r3-s4 (including)
Junos Juniper 21.4-r3-s5 (including) 21.4-r3-s5 (including)
Junos Juniper 22.1 (including) 22.1 (including)
Junos Juniper 22.1-r1 (including) 22.1-r1 (including)
Junos Juniper 22.1-r1-s1 (including) 22.1-r1-s1 (including)
Junos Juniper 22.1-r1-s2 (including) 22.1-r1-s2 (including)
Junos Juniper 22.1-r2 (including) 22.1-r2 (including)
Junos Juniper 22.1-r2-s1 (including) 22.1-r2-s1 (including)
Junos Juniper 22.1-r2-s2 (including) 22.1-r2-s2 (including)
Junos Juniper 22.1-r3 (including) 22.1-r3 (including)
Junos Juniper 22.1-r3-s1 (including) 22.1-r3-s1 (including)
Junos Juniper 22.1-r3-s2 (including) 22.1-r3-s2 (including)
Junos Juniper 22.1-r3-s3 (including) 22.1-r3-s3 (including)
Junos Juniper 22.1-r3-s4 (including) 22.1-r3-s4 (including)
Junos Juniper 22.2 (including) 22.2 (including)
Junos Juniper 22.2-r1 (including) 22.2-r1 (including)
Junos Juniper 22.2-r1-s1 (including) 22.2-r1-s1 (including)
Junos Juniper 22.2-r1-s2 (including) 22.2-r1-s2 (including)
Junos Juniper 22.2-r2 (including) 22.2-r2 (including)
Junos Juniper 22.2-r2-s1 (including) 22.2-r2-s1 (including)
Junos Juniper 22.2-r2-s2 (including) 22.2-r2-s2 (including)
Junos Juniper 22.2-r3 (including) 22.2-r3 (including)
Junos Juniper 22.2-r3-s1 (including) 22.2-r3-s1 (including)
Junos Juniper 22.2-r3-s2 (including) 22.2-r3-s2 (including)
Junos Juniper 22.3 (including) 22.3 (including)
Junos Juniper 22.3-r1 (including) 22.3-r1 (including)
Junos Juniper 22.3-r1-s1 (including) 22.3-r1-s1 (including)
Junos Juniper 22.3-r1-s2 (including) 22.3-r1-s2 (including)
Junos Juniper 22.3-r2 (including) 22.3-r2 (including)
Junos Juniper 22.3-r2-s1 (including) 22.3-r2-s1 (including)
Junos Juniper 22.3-r2-s2 (including) 22.3-r2-s2 (including)
Junos Juniper 22.3-r3 (including) 22.3-r3 (including)
Junos Juniper 22.3-r3-s1 (including) 22.3-r3-s1 (including)
Junos Juniper 22.4 (including) 22.4 (including)
Junos Juniper 22.4-r1 (including) 22.4-r1 (including)
Junos Juniper 22.4-r1-s1 (including) 22.4-r1-s1 (including)
Junos Juniper 22.4-r1-s2 (including) 22.4-r1-s2 (including)
Junos Juniper 22.4-r2 (including) 22.4-r2 (including)
Junos Juniper 22.4-r2-s1 (including) 22.4-r2-s1 (including)
Junos Juniper 22.4-r2-s2 (including) 22.4-r2-s2 (including)
Junos Juniper 23.2 (including) 23.2 (including)
Junos Juniper 23.2-r1 (including) 23.2-r1 (including)
Junos Juniper 23.2-r1-s1 (including) 23.2-r1-s1 (including)

Extended Description

The sensitive information may be valuable information on its own (such as a password), or it may be useful for launching other, more serious attacks. The error message may be created in different ways:

An attacker may use the contents of error messages to help launch another, more focused attack. For example, an attempt to exploit a path traversal weakness (CWE-22) might yield the full pathname of the installed application. In turn, this could be used to select the proper number of “..” sequences to navigate to the targeted file. An attack using SQL injection (CWE-89) might not initially succeed, but an error message could reveal the malformed query, which would expose query logic and possibly even passwords or other sensitive information used within the query.

Potential Mitigations

  • Ensure that error messages only contain minimal details that are useful to the intended audience and no one else. The messages need to strike the balance between being too cryptic (which can confuse users) or being too detailed (which may reveal more than intended). The messages should not reveal the methods that were used to determine the error. Attackers can use detailed information to refine or optimize their original attack, thereby increasing their chances of success.
  • If errors must be captured in some detail, record them in log messages, but consider what could occur if the log messages can be viewed by attackers. Highly sensitive information such as passwords should never be saved to log files.
  • Avoid inconsistent messaging that might accidentally tip off an attacker about internal state, such as whether a user account exists or not.

References