CVE-2017-6026
published 2017-06-30CVE-2017-6026: A Use of Insufficiently Random Values issue was discovered in Schneider Electric Modicon PLCs Modicon M241, firmware versions prior to Version 4.0.5.11, and…
PriorityP271critical9.1CVSS 3.1
AVNACLPRNUINSUCHIHAN
EXPLOIT
EPSS
31.82%
98.1th percentile
A Use of Insufficiently Random Values issue was discovered in Schneider Electric Modicon PLCs Modicon M241, firmware versions prior to Version 4.0.5.11, and Modicon M251, firmware versions prior to Version 4.0.5.11. The session numbers generated by the web application are lacking randomization and are shared between several users. This may allow a current session to be compromised.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| schneider-electric | modicon_m241_firmware | <= 4.0.3.20 | — |
| schneider-electric | modicon_m251_firmware | <= 4.0.3.20 | — |
Detection & IOCsextracted from sources · hover to see the quote
- →The session cookie 'M258_LOG' is set to a static value derived from the PLC's epoch boot time. Detect authentication attempts using this cookie where the value matches the pattern '<username>:<epoch_integer>' (e.g., 'Administrator:1521612584' or 'USER:1521612584'). The cookie value does not change between reboots. ↗
- →Monitor HTTP GET requests to /usr/Syslog/FwLog.txt on Modicon M241/M251 PLCs. This unauthenticated endpoint leaks boot timestamps used to calculate the predictable session cookie. ↗
- →Monitor HTTP POST requests to /plcExchange/getValues/ with a Cookie header containing 'M258_LOG=' followed by a username and numeric epoch value. This is the exploitation step after session cookie calculation. ↗
- →The session numbers are shared between several users and are not randomized. Any session observed with a predictable integer (epoch-based) value in the M258_LOG cookie should be treated as suspicious, especially if the same session value appears for multiple users. ↗
- →Look for HTTP requests to /index2.htm on Modicon PLCs accompanied by a crafted M258_LOG cookie — this is the final exploitation step to gain authenticated web access. ↗
- →Default credentials used in exploitation: username 'Administrator' with default password 'admin', or username 'USER' with default password 'USER'. Monitor for login attempts using these credentials. ↗
- ·The vulnerability only affects Modicon M241 and M251 firmware versions prior to 4.0.5.11. Devices running firmware 4.0.5.11 or later are not affected by CVE-2017-6026. ↗
- ·Exploitation requires that at least one user has logged in since the last PLC reboot, as the session cookie is only set after a login event. A fresh reboot with no logins will not expose an active session. ↗
- ·The exploit was tested specifically on the Schneider TM241 PLC with Firmware 4.0.2.11 & Boot 0.0.2.11. Behavior on other minor firmware versions in the affected range may vary. ↗
- ·The insufficiently protected credentials vulnerability (CVE-2017-6028, Base64-encoded login credentials) has no firmware fix as of the advisory date; only compensating controls were provided by Schneider Electric. ↗
CVSS provenance
nvdv3.19.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
nvdv2.06.4MEDIUMAV:N/AC:L/Au:N/C:P/I:P/A:N
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-c4x2-m5w5-m3rx: A Use of Insufficiently Random Values issue was discovered in Schneider Electric Modicon PLCs Modicon M241, firmware versions prior to Version 4
ghsa_unreviewed·2022-05-13
CVE-2017-6026 [CRITICAL] CWE-330 GHSA-c4x2-m5w5-m3rx: A Use of Insufficiently Random Values issue was discovered in Schneider Electric Modicon PLCs Modicon M241, firmware versions prior to Version 4
A Use of Insufficiently Random Values issue was discovered in Schneider Electric Modicon PLCs Modicon M241, firmware versions prior to Version 4.0.5.11, and Modicon M251, firmware versions prior to Version 4.0.5.11. The session numbers generated by the web application are lacking randomization and are shared between several users. This may allow a current session to be compromised.
CISA ICS
Schneider Electric Modicon PLCs
cisa_ics·2017-03-30
Schneider Electric Modicon PLCs
## Archived Content In an effort to keep CISA.gov current, the archive contains outdated information that may not reflect current policy or programs.
ICS Advisory
##
Schneider Electric Modicon PLCs
Last RevisedMarch 30, 2017
Alert CodeICSA-17-089-02
## CVSS v3 7.5
ATTENTION: Remotely exploitable/low skill level to exploit.
Vendor: Schneider Electric
Equipment: Modicon PLCs
Vulnerability: Predictable Value Range from Previous Values, Use of Insufficiently Random Values, Insufficiently Protected Credentials
## AFFECTED PRODUCTS
The following versions of the Modicon M221, M241, and M251 programmable logic controllers (PLCs) are affected by a predictable value range from previous values vulnerability:
- Modicon M221, firmware versions prio
No detection rules found.
2017-06-30
Published