(Still in development) This platform is the result of human engineering. AI was used solely for security audits.

romdump.net
romdump.net › Dump index › D-Link DIR-3040 (rev A1, AC3000 router) 1.13B03 beta › Edit history

Edit history

Dump D-Link DIR-3040 (rev A1, AC3000 router) 1.13B03 beta, uploaded by admin, 2 versions.

Newest first: the vendor, product, version, license and notes of every version, and what changed since the version before it. Notes are rendered from their source as the site renders them today. A dump keeps its original metadata and up to 49 edits. The file itself never changes: its hashes are fixed at upload.

Edit 1

current by admin · 31m ago #1
VendorD-Link
ProductDIR-3040 (rev A1, AC3000 router)
Version1.13B03 beta
Licensevendor-proprietary, research use only

Source

Downloaded from D-Link's public download server: DIR-3040V1.13B03Beta_for_Vulnerable_20210512.bin (cert CN *.us.dlink.com, O=D-Link Systems Inc.).

Format and unpacking

  • Container: D-Link SHRS image (magic SHRS); payload entropy ~8.0 bits/byte, no filesystem magic before decryption (packed).
  • Encryption: AES-128-CBC, IV = the 16-byte salt from the header at offset 0xC.
  • Key: the legacy fixed D-Link vendor_key c05fbf1936c99429ce2a0781f08d6ad8, documented in OpenWrt firmware-utils dlink-sge-image.c and 0xricksanchez/dlink-decrypt.
  • Tool: a small python3-cryptography script reproducing the SHRS format (AES-128-CBC).

Verification

  • md_post = SHA-512 of the encrypted payload matched the header.
  • md_before = SHA-512 of the decrypted payload matched the header.
  • md_vendor = SHA-512 of (decrypted payload + vendor_key) matched the header — confirms the key.
  • Decrypted output begins with a valid uImage: magic 27051956, name "Linux Kernel Image", arch MIPS, compression LZMA; and carries the DIR-3040 device tag at offset 0x40.

Contents

  • uImage (MIPS kernel + LZMA-packed rootfs).
  • Device: DIR-3040 (AC3000 tri-band router), MediaTek MT7621 (MIPS).
  • Uploaded the decrypted image.

Credit

Method reference: afflicted.sh / tpbreak.

Changes from the previous version

Notes (source)

… 11 unchanged lines<li><code>md_post</code> = SHA-512 of the encrypted payload matched the header.</li><li><code>md_before</code> = SHA-512 of the decrypted payload matched the header.</li><li><code>md_vendor</code> = SHA-512 of (decrypted payload + <code>vendor_key</code>) matched the header — confirms the key.</li><li>Decrypted output begins with a valid uImage (magic <code>27051956</code>, ARM) and carries the <code>DIR-3040</code> device tag at offset <code>0x40</code>.</li><li>Decrypted output begins with a valid uImage: magic <code>27051956</code>, name "Linux Kernel Image", arch MIPS, compression LZMA; and carries the <code>DIR-3040</code> device tag at offset <code>0x40</code>.</li></ul><h2>Contents</h2><ul><li>uImage (kernel + packed rootfs), ARM.</li><li>Device: DIR-3040 (AC3000 tri-band router), Qualcomm IPQ807x-class.</li><li>uImage (MIPS kernel + LZMA-packed rootfs).</li><li>Device: DIR-3040 (AC3000 tri-band router), MediaTek MT7621 (MIPS).</li><li>Uploaded the <strong>decrypted</strong> image.</li></ul><h2>Credit</h2>… 1 unchanged line

Original

by admin · 32m ago #0
VendorD-Link
ProductDIR-3040 (rev A1, AC3000 router)
Version1.13B03 beta
Licensevendor-proprietary, research use only

Source

Downloaded from D-Link's public download server: DIR-3040V1.13B03Beta_for_Vulnerable_20210512.bin (cert CN *.us.dlink.com, O=D-Link Systems Inc.).

Format and unpacking

  • Container: D-Link SHRS image (magic SHRS); payload entropy ~8.0 bits/byte, no filesystem magic before decryption (packed).
  • Encryption: AES-128-CBC, IV = the 16-byte salt from the header at offset 0xC.
  • Key: the legacy fixed D-Link vendor_key c05fbf1936c99429ce2a0781f08d6ad8, documented in OpenWrt firmware-utils dlink-sge-image.c and 0xricksanchez/dlink-decrypt.
  • Tool: a small python3-cryptography script reproducing the SHRS format (AES-128-CBC).

Verification

  • md_post = SHA-512 of the encrypted payload matched the header.
  • md_before = SHA-512 of the decrypted payload matched the header.
  • md_vendor = SHA-512 of (decrypted payload + vendor_key) matched the header — confirms the key.
  • Decrypted output begins with a valid uImage (magic 27051956, ARM) and carries the DIR-3040 device tag at offset 0x40.

Contents

  • uImage (kernel + packed rootfs), ARM.
  • Device: DIR-3040 (AC3000 tri-band router), Qualcomm IPQ807x-class.
  • Uploaded the decrypted image.

Credit

Method reference: afflicted.sh / tpbreak.