Source
Downloaded from Western Digital's public My Cloud OS 5 firmware update server (no login or account required): https://updates.mycloud.com/os5/prod/5.33.103/WDMyCloudPR4100_5.33.103_prod.bin. This is the firmware WD's devices themselves pull for the auto/manual update, served directly over HTTPS to anyone. Version 5.33.103.1112.2026 is the latest OS 5 build WD publishes for the My Cloud PR4100 (released as the fix for the PHP2Shell advisory, WDC-26001).
Format and unpacking
- Container: Western Digital My Cloud .bin firmware image — a WD-proprietary multi-section container. A 128-byte binary header holds, as little-endian
uint32fields, the[offset, length]of four payload sections followed by a per-section checksum each, device/model IDs, the codename and version string, and a header checksum. The four sections are: a U-BootuImagekernel, a U-BootuImageramdisk,image.cfs(the SquashFS root filesystem), anddefault.tar.gz(default config). No section is plain-text at the container level — it must be parsed from the header to be reached. - Tool/method: a small pure-Python parser (stdlib
struct/zlibonly), run from/dev/shm, that reads the 128-byte header, walks the section table, and checks every integrity field (below). The WD section checksum is an XOR of the section's 32-bit little-endian words (a trailing partial word is zero-padded); reconstructed empirically and confirmed against all four stored values and the header self-check. - Uploaded artifact: the authentic WD
.bincontainer exactly as WD serves it (verified below); the dump preserves the exact vendor image.
Verification
- Container self-consistency: the four section
[offset,length]pairs chain exactly end-to-end starting at byte 128, and the header's total-size field (0x0cfce9e1= 217901537 bytes) matches the end of the last section. - WD section checksums: the XOR-32 of each section's data matches the value stored in the header for all four sections (kernel
0xfca9838a, ramdisk0xa950ce8e, image.cfs0x0c758000, default.tar.gz0x8e65a1ed). - Header self-check: the XOR-32 of all 32 header words is
0x00000000(the header checksum0x5f6b0d88is chosen so the whole header XORs to zero) — confirming the header is intact. - Standard U-Boot CRCs: independently, both uImages pass their own U-Boot integrity fields — kernel header-CRC
0xa61d6cc5+ data-CRC320xffffffff, ramdisk header-CRC0xc0c62bd7+ data-CRC320x06618c0a(all recomputed, all match). - Valid structure:
image.cfsbegins with the SquashFS magichsqs, confirming a correct root filesystem image.
Contents
- Full device firmware: U-Boot kernel
uImage(4854544 bytes), ramdiskuImage(4007531 bytes), theimage.cfsSquashFS root filesystem (the My Cloud OS 5 Linux userland), anddefault.tar.gz(factory default configuration). - Device: WD My Cloud PR4100 (My Cloud Pro Series) — a 4-bay network-attached storage (NAS) appliance on an Intel x86 (Pentium N3710) CPU, running My Cloud OS 5.
- Uploaded the vendor
.bincontainer (XOR + CRC verified).
Credit
WD My Cloud .bin container layout documented from the WD community "readbin" analysis of the 128-byte header; section checksum (XOR-32) and U-Boot uImage CRC verification reconstructed here. Method reference: afflicted.sh / tpbreak.