Skip to content

Eaton: Hardcoded SSH root password in XC-303 firmware

Critical
rcorrea35 published GHSA-xf7j-4x67-6h93 Sep 13, 2024

Package

XC-303 Firmware (Eaton)

Affected versions

< 3.5.16 && 3.5.17 Build 712

Patched versions

>= 3.5.17 Build 715

Description

Summary

An attacker with network access to a XC-303 PLC running firmware below 3.5.17 Bugfix 1 can login as root over SSH. The root password is hardcoded in the firmware.

Severity

Critical - Hardcoded password allows malicious actors to login as root over SSH.

Proof of Concept

When on the same network as a XC-303 device running a vulnerable version, you can log in as root over SSH with the following credentials:

root:Etn602

Further Analysis

The root password can be found in the XSOFT-CODESYS software: it is stored in clear text in the firmware updater tool.

Versions 3.5.16 and below use the insecure crypt algorithm to store the root password hash in /etc/shadow: the password hash "qFGk7N4OWLwR2" can be easily brute-forced.

If this vulnerability is exploited, it allows an attacker to persist on the device across reboots and updates (the device has no secure boot).

Timeline

Date reported: 08/09/2024
Date fixed: 10/02/2023 (Eaton discovered this vulnerability as part of an internal regular cybersecurity assessment)
Date disclosed: 09/13/2024

Severity

Critical

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

CVE ID

No known CVE

Weaknesses

No CWEs

Credits