CVE-2021-0291 - Exposure of Sensitive Information to an Unauthorized Actor

Severity

65%

Complexity

39%

Confidentiality

41%

An Exposure of System Data vulnerability in Juniper Networks Junos OS and Junos OS Evolved, where a sensitive system-level resource is not being sufficiently protected, allows a network-based unauthenticated attacker to send specific traffic which partially reaches this resource. A high rate of specific traffic may lead to a partial Denial of Service (DoS) as the CPU utilization of the RE is significantly increased. The SNMP Agent Extensibility (agentx) process should only be listening to TCP port 705 on the internal routing instance. External connections destined to port 705 should not be allowed. This issue affects: Juniper Networks Junos OS: 15.1 versions prior to 15.1R7-S9; 17.3 versions prior to 17.3R3-S12; 17.4 versions prior to 17.4R2-S13, 17.4R3-S5; 18.3 versions prior to 18.3R3-S5; 18.4 versions prior to 18.4R2-S8; 19.1 versions prior to 19.1R3-S5; 19.2 versions prior to 19.2R3-S2; 19.3 versions prior to 19.3R2-S6, 19.3R3-S2; 19.4 versions prior to 19.4R1-S4, 19.4R2-S4, 19.4R3; 20.1 versions prior to 20.1R2; 20.2 versions prior to 20.2R2; 20.3 versions prior to 20.3R2. Juniper Networks Junos OS Evolved versions prior to 20.3R2-EVO. This issue does not affect Juniper Networks Junos OS versions prior to 13.2R1.

CVSS 3.1 Base Score 6.5. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L).

CVSS 2.0 Base Score 6.4. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (AV:N/AC:L/Au:N/C:P/I:N/A:P).

Demo Examples

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

The following code checks validity of the supplied username and password and notifies the user of a successful or failed login.


               
}
}
print "Login Successful";
print "Login Failed - incorrect password";
print "Login Failed - unknown username";

In the above code, there are different messages for when an incorrect username is supplied, versus when the username is correct but the password is wrong. This difference enables a potential attacker to understand the state of the login function, and could allow an attacker to discover a valid username by trying different values until the incorrect password message is returned. In essence, this makes it easier for an attacker to obtain half of the necessary authentication credentials.

While this type of information may be helpful to a user, it is also useful to a potential attacker. In the above example, the message for both failed cases should be the same, such as:


               
"Login Failed - incorrect username or password"

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

This code tries to open a database connection, and prints any exceptions that occur.


               
}
openDbConnection();
//print exception message that includes exception message and configuration file location
echo 'Check credentials in config file at: ', $Mysql_config_location, '\n';

If an exception occurs, the printed message exposes the location of the configuration file the script is using. An attacker can use this information to target the configuration file (perhaps exploiting a Path Traversal weakness). If the file can be read, the attacker could gain credentials for accessing the database. The attacker may also be able to replace the file with a malicious one, causing the application to use an arbitrary database.

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

In the example below, the method getUserBankAccount retrieves a bank account object from a database using the supplied username and account number to query the database. If an SQLException is raised when querying the database, an error message is created and output to a log file.


               
}
return userAccount;
}
userAccount = (BankAccount)queryResult.getObject(accountNumber);
Logger.getLogger(BankManager.class.getName()).log(Level.SEVERE, logMessage, ex);

The error message that is created includes information about the database query that may contain sensitive information about the database or query logic. In this case, the error message will expose the table name and column names used in the database. This data could be used to simplify other attacks, such as SQL injection (CWE-89) to directly access the database.

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

This code stores location information about the current user:


               
}...
Log.e("ExampleActivity", "Caught exception: " + e + " While on User:" + User.toString());

When the application encounters an exception it will write the user object to the log. Because the user object contains location information, the user's location is also written to the log.

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

The following is an actual MySQL error statement:


               
Warning: mysql_pconnect(): Access denied for user: 'root@localhost' (Using password: N1nj4) in /usr/local/www/wi-data/includes/database.inc on line 4

The error clearly exposes the database credentials.

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

This code displays some information on a web page.


               
Social Security Number: <%= ssn %></br>Credit Card Number: <%= ccn %>

The code displays a user's credit card and social security numbers, even though they aren't absolutely necessary.

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

The following program changes its behavior based on a debug flag.


               
} %>

The code writes sensitive debug information to the client browser if the "debugEnabled" flag is set to true .

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

This code uses location to determine the user's current US State location.

First the application must declare that it requires the ACCESS_FINE_LOCATION permission in the application's manifest.xml:


               
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

During execution, a call to getLastLocation() will return a location based on the application's location permissions. In this case the application has permission for the most accurate location possible:


               
deriveStateFromCoords(userCurrLocation);

While the application needs this information, it does not need to use the ACCESS_FINE_LOCATION permission, as the ACCESS_COARSE_LOCATION permission will be sufficient to identify which US state the user is in.

Overview

Type

Juniper

First reported 2 years ago

2021-07-15 20:15:00

Last updated 2 years ago

2021-10-25 15:20:00

Affected Software

Juniper Junos OS 15.1

15.1

Juniper Junos 15.1 A1

15.1

Juniper JUNOS 15.1 F

15.1

Juniper JunOS 15.1 F1

15.1

Juniper JunOS 15.1 F2

15.1

Juniper JunOS 15.1 F2-s1

15.1

Juniper Junos 15.1 F2-S2

15.1

Juniper Junos 15.1 F2-S3

15.1

Juniper Junos 15.1 F2-S4

15.1

Juniper Junos 15.1 F3

15.1

Juniper Junos 15.1 F4

15.1

Juniper Junos 15.1 F6-S4

15.1

Juniper JunOS 15.1 F7

15.1

Juniper Junos 15.1 R3

15.1

Juniper JunOS 15.1 R4

15.1

Juniper Junos 15.1 F5-S7

15.1

Juniper Junos 15.1 F6-S7

15.1

Juniper JUNOS 15.1 F6

15.1

Juniper JunOS 15.1 R2

15.1

Juniper Junos 15.1 R4-S7

15.1

Juniper Junos 15.1 R4-S8

15.1

Juniper Junos 15.1 R1

15.1

Juniper Junos 15.1 F5

15.1

Juniper JUNOS 15.1 F6-S3

15.1

Juniper JUNOS 15.1 F6-s2

15.1

Juniper JUNOS 15.1 F6-s1

15.1

Juniper Junos OS 15.1 F6-s12

15.1

Juniper Junos OS 15.1 R7

15.1

Juniper JunOS 15.1 R6

15.1

Juniper Junos 15.1 R5-S5

15.1

Juniper Junos 15.1 R6-S1

15.1

Juniper JunOS 15.1 R5

15.1

Juniper Junos 15.1 R5-S1

15.1

Juniper JUNOS 15.1 R5-S6

15.1

Juniper JUNOS 15.1 R6-S2

15.1

Juniper Junos 15.1 R4-S9

15.1

Juniper Junos 15.1 R6-S6

15.1

Juniper Junos 17.3 R2

17.3

Juniper JUNOS 17.3R2-S2

17.3

Juniper JUNOS 15.1 R7-S1

15.1

Juniper JUNOS 15.1 R7-S2

15.1

Juniper JUNOS 15.1 R7-S3

15.1

Juniper JUNOS 17.3 R3-S1

17.3

Juniper JUNOS 17.3 R3-S2

17.3

Juniper JUNOS 17.3 R2-S1

17.3

Juniper JUNOS 17.3

17.3

Juniper JunOS 17.3 R3

17.3

Juniper JUNOS 17.3 R3-S3

17.3

Juniper JUNOS 17.3R3-S4

17.3

Juniper Junos OS 17.3 R2-S3

17.3

Juniper Junos OS 15.1 R7-s4

15.1

Juniper JUNOS 17.3 R1-S1

17.3

Juniper Junos OS 15.1 R7-s5

15.1

Juniper JUNOS 17.3 R2-S4

17.3

Juniper JUNOS 17.3 R3-S7

17.3

Juniper Junos 17.4 R1

17.4

Juniper Junos 17.4 R2

17.4

Juniper Junos 17.4 R2-S2

17.4

Juniper JUNOS 17.4 R1-S1

17.4

Juniper JUNOS 18.3 R1-S1

18.3

Juniper JUNOS 17.4 R1-S2

17.4

Juniper JUNOS 18.3 R2

18.3

Juniper JUNOS 18.3 R1

18.3

Juniper JUNOS 17.4 R3

17.4

Juniper JUNOS 17.4 R2-S1

17.4

Juniper JunOS 18.4 R1

18.4

Juniper JUNOS 17.4

17.4

Juniper JUNOS 18.3 R1-S2

18.3

Juniper JUNOS 18.3

18.3

Juniper JUNOS 18.4

18.4

Juniper JunOS 17.4 R1-s5

17.4

Juniper JUNOS 17.4R1-S7

17.4

Juniper JUNOS 17.4R1-S4

17.4

Juniper Junos OS 18.4 R1-S1

18.4

Juniper JUNOS 17.4 R2-S3

17.4

Juniper JUNOS 17.4R2-S4

17.4

Juniper JUNOS 17.4 R1-S6

17.4

Juniper JUNOS 18.3R1-S3

18.3

Juniper JUNOS 18.4R1-S2

18.4

Juniper Junos OS 19.1 R1

19.1

Juniper Junos OS 19.1

19.1

Juniper JUNOS 17.4 R2-S5

17.4

Juniper JUNOS 17.4 R2-S6

17.4

Juniper JUNOS 17.4 R2-S7

17.4

Juniper JUNOS 18.4R2

18.4

Juniper Junos OS 19.1 R1-s1

19.1

Juniper JUNOS 19.1 R1-S3

19.1

Juniper JUNOS 19.1 R1-S2

19.1

Juniper JUNOS 18.4 R1-S5

18.4

Juniper JUNOS 18.3 R1-S5

18.3

Juniper JUNOS 18.3 R2-S1

18.3

Juniper JUNOS 18.3 R2-S2

18.3

Juniper JUNOS 17.4 R2-S8

17.4

Juniper JUNOS 18.4 R2-S1

18.4

Juniper Junos OS 19.2

19.2

Juniper JUNOS 18.4 R2-S2

18.4

Juniper JUNOS 18.3 R1-S6

18.3

Juniper JUNOS 18.3 R3

18.3

Juniper Junos OS 19.1 R2

19.1

Juniper JUNOS 18.4 R3

18.4

Juniper JUNOS 18.4 R2-S3

18.4

Juniper JUNOS 18.3 R3-S1

18.3

Juniper JUNOS 19.1 R1-S4

19.1

Juniper JUNOS 18.4 R1-S6

18.4

Juniper JUNOS 18.3 R2-S3

18.3

Juniper JUNOS 17.4 R3-S1

17.4

Juniper JUNOS 17.4 R2-S9

17.4

Juniper JUNOS 17.4 R2-S10

17.4

Juniper Junos OS 19.2 R1

19.2

Juniper JUNOS 19.2 R1-S1

19.2

Juniper JUNOS 19.2 R1-S2

19.2

Juniper JUNOS 19.3

19.3

Juniper JUNOS 19.3 R1

19.3

Juniper JUNOS 19.2 R1-S3

19.2

Juniper JUNOS 19.4 R1

19.4

Juniper JUNOS 19.3 R2

19.3

Juniper JUNOS 19.3 R2-S1

19.3

Juniper JUNOS 19.3 R1-S1

19.3

Juniper JUNOS Evolved 19.4 R1

19.4

Juniper JUNOS Evolved 19.3 R2

19.3

Juniper JUNOS Evolved 19.2 R1

19.2

Juniper JUNOS 20.1 R1

20.1

Juniper JUNOS 19.4 R1-S1

19.4

Juniper JUNOS 19.3 R2-S2

19.3

Juniper JUNOS Evolved 19.4 R2

19.4

Juniper JUNOS OS Evolved 19.2 R1

19.2

Juniper JUNOS OS Evolved 19.2 R2

19.2

Juniper JUNOS OS Evolved 19.3 R1

19.3

Juniper JUNOS OS Evolved 19.3 R2

19.3

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.