[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111326":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":14,"stars7d":15,"stars30d":16,"stars90d":12,"forks30d":12,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":12,"starSnapshotCount":12,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},111326,"ex3301-t0-root-ssh-research","stevejiang0509\u002Fex3301-t0-root-ssh-research","stevejiang0509","Sanitized EX3301-T0 7.2C0 root SSH privilege-escalation case study and offline demo",null,"JavaScript",511,0,58,1,205,452,8,76,"MIT License",false,"main",true,[],"2026-11-08 19:46:13","2026-11-23 08:18:27","# EX3301-T0: from stock Y1 access to a root SSH shell\n\nThis repository documents one owner-authorized Zyxel EX3301-T0 investigation. The device started on Hyperoptic `V5.50(ABVY.4.1)Y1`, was upgraded to official Zyxel `V5.50(ABVY.7.2)C0`, and was then used to verify an **authenticated LogServer-to-syslog-ng configuration injection**. A temporary root process was observed. A separate change to the runtime `admin` account made a fresh SSH session run as `uid=0`. Zyxel's advisory identifies the `LogServer` issue as **CVE-2026-6952** and lists a broader affected-product range.\n\nThe vulnerability is in log configuration generation, **not in the SSH protocol or Dropbear authentication**. The full root SSH result was verified for the current boot only. No reboot-persistent root access was demonstrated.\n\nThe repository contains sanitized notes and a local-only string demo. It contains no passwords, session tokens, certificate or host-key fingerprints, serial number, MAC address, personal network address, configuration backup, or firmware image. A separate [SSH OpenWrt migration record](docs\u002Fssh-openwrt-migration.md) describes what happened on this same device after the root SSH proof.\n\n## Tested scope\n\n| Item | Evidence-backed value |\n| --- | --- |\n| Hardware | One Zyxel EX3301-T0 |\n| Starting firmware | Hyperoptic `V5.50(ABVY.4.1)Y1` |\n| Firmware used for root verification | Official `V5.50(ABVY.7.2)C0` |\n| Starting web role | `medium` administrator |\n| SSH baseline | `admin` reached restricted `ZySH>` on Y1 and C0; a direct `root` login with the existing administrator credential failed on C0 |\n| Proven root behavior | `id` printed `uid=0(root) gid=0(root)`; after a runtime account change, a new SSH session independently returned `id -u = 0` |\n\nOur live root proof covers only the device and C0 image above. Zyxel's separate affected-product list is summarized below. Neither source establishes an unauthenticated path or WAN access in this case.\n\n## Zyxel's official affected-product list\n\nZyxel's [21 July 2026 advisory for CVE-2026-6952](https:\u002F\u002Fwww.zyxel.com\u002Fglobal\u002Fen\u002Fsupport\u002Fsecurity-advisories\u002Fzyxel-security-advisory-for-post-authentication-command-injection-vulnerability-in-certain-dsl-ethernet-cpe-fiber-onts-and-wireless-extenders-07-21-2026) describes an administrator-authenticated command injection in the syslog `LogServer` field. It lists **EX3301-T0 `5.50(ABVY.8)C0` and earlier** as affected and **`5.50(ABVY.8.1)C0`** as the available patch. Thus the `7.2C0` build tested here falls within Zyxel's published affected range. The advisory lists **42 affected models**: 29 DSL\u002FEthernet CPE models, 10 fiber ONTs, and 3 wireless extenders. The [companion model-scope repository](https:\u002F\u002Fgithub.com\u002Fstevejiang0509\u002Fzyxel-cve-2026-6952-model-scope) maintains the complete vendor table and cross-model evidence status; this repository records the EX3301-T0 case.\n\nZyxel explicitly excludes ISP-customized models from that table. The earlier Hyperoptic Y1 build in this device's history was **not** separately tested for the LogServer vulnerability. The vendor's patch listing is not a local validation that `8.1C0` is safe to install on an ISP-customized unit; Zyxel directs ISP customers to their provider for the appropriate firmware. The advisory confirms the `LogServer` entry point and OS-command effect; the syslog-ng configuration path and `uid=0` result below come from this project's own analysis and test.\n\n## The observed sequence\n\n1. **Find the router on a direct Ethernet link.** The originally guessed management address was wrong. The computer's network details identified the actual default gateway, which led to the Y1 web interface.\n2. **Reveal the firmware upgrade page.** The authenticated `medium` administrator's `login_privilege` `Page` list was updated to include `Firmware_Upgrade`; a fresh `MenuList` response showed the page. This changed web navigation, not Linux identity or firmware acceptance.\n3. **Keep SSH on the LAN.** The SSH management service was set to `LAN_ONLY`, read back, and used for the restricted `ZySH>` login.\n4. **Turn off two Y1 runtime image checks.** The exact `zycli` commands and observed readback are below. After this, one retry of the official 7.2C0 image booted successfully. The sequence does not establish which check caused the earlier upload failure, and the two switches are separate from RSA signature verification.\n5. **Prove root execution on C0.** Before the test, `admin` still entered restricted `ZySH>` and a direct `root` login with the existing credential failed. The authenticated `logset` API then accepted a `LogServer` value that broke out of a syslog-ng destination string and introduced a `program()` source and `log` route. An independent SSH PTY showed `uid=0(root) gid=0(root)`. The original logging object was restored through two ordered writes and full readback.\n6. **Verify root SSH separately.** The temporary root channel changed only the runtime `admin` UID\u002FGID and login shell. A fresh password-based SSH login and a separate `id -u` command both proved root identity. The password field and other accounts were unchanged. This was **not** verified across a reboot.\n\n### Exact Y1 `fwidcheck` and `modelcheck` commands\n\nAfter logging into the router's **LAN-only SSH** as `admin`, the prompt was `ZySH>`. Use your own router address in place of `\u003CROUTER_LAN_IP>`:\n\n```text\nssh admin@\u003CROUTER_LAN_IP>\nZySH> zycli modelcheck show\nThe modelcheck is enable now. ret:0\nZySH> zycli fwidcheck show\nThe fwidcheck is enable now. ret:0\nZySH> zycli modelcheck off\nZySH> zycli fwidcheck off\nZySH> zycli modelcheck show\nThe modelcheck is disable now. ret:-17\nZySH> zycli fwidcheck show\nThe fwidcheck is disable now. ret:-17\n```\n\nThe `off` response itself was not retained; the final `show` lines are the observed Y1 readback before uploading C0. The extracted **C0** command table labels these switches runtime checks and states `#Not support save to flash#`; this static help is not a Y1 reboot test. Their state after the C0 reboot was **not** established: later `show` calls returned to the prompt without status text. See [Firmware check commands](docs\u002Ffirmware-checks.md) for the exact evidence and limits. Do not treat these commands as a generic unsigned-image or RSA-signature bypass.\n\n## Mechanism at a glance\n\n```mermaid\nflowchart LR\n    A[Authenticated web administrator] --> B[PUT logset: LogServer]\n    B --> C[Unescaped syslog-ng config text]\n    C --> D[program source executed as root]\n    D --> E[Runtime admin UID\u002FGID and shell changed]\n    E --> F[Fresh SSH session has uid 0]\n```\n\nThe original `Enable=false` setting did not prevent the proof because the injected text supplied its own `source` and `log` statements. A normal destination-only route would depend on the firmware's category logging gate. See [Technical analysis](docs\u002Ftechnical-analysis.md) for the static call chain and the separate live observations.\n\n## Related research on the same device\n\nThe [SSH OpenWrt migration record](docs\u002Fssh-openwrt-migration.md) documents two later, distinct installations without opening the case: official 7.2C0 to Matrix v17, then Matrix v17 to a community UBI OpenWrt image. Both stages used root SSH, but the second needed a device- and image-specific slot0 installer and full flash readback. This does not establish a generic one-step C0-to-UBI upgrade or a universal SSH install method.\n\nThe [companion CVE-2026-6952 model-scope repository](https:\u002F\u002Fgithub.com\u002Fstevejiang0509\u002Fzyxel-cve-2026-6952-model-scope) covers Zyxel's wider advisory and keeps the other 41 models separate from this one-device live root proof.\n\n## Read the case study\n\n- [Chronology](docs\u002Fchronology.md) — initial access through the root SSH verification.\n- [Official advisory scope](docs\u002Fofficial-advisory.md) — the EX3301-T0 advisory entry and a link to the companion 42-model matrix.\n- [Firmware check commands](docs\u002Ffirmware-checks.md) — how the two Y1 checks were turned off and what the readback proves.\n- [Technical analysis](docs\u002Ftechnical-analysis.md) — authenticated input, config generation, root process, and runtime account promotion.\n- [Evidence and limits](docs\u002Fevidence.md) — sanitized evidence ledger with hashes of private originals.\n- [Reproduction and restoration](docs\u002Freproduction.md) — staged verification and the two-write log restoration order.\n- [Mitigations](docs\u002Fmitigation.md) — firmware and administrator actions.\n- [SSH OpenWrt migration](docs\u002Fssh-openwrt-migration.md) — the later Matrix and community UBI installations on this device.\n- [Security policy](SECURITY.md) — how to report additional affected versions privately.\n\n## Run the offline demonstration\n\nNode.js 20 or newer is sufficient; there are no package dependencies:\n\n```sh\nnpm test\nnpm run demo\n```\n\nThe test and demo only expand the observed syslog-ng format string in local memory. They do not log in, open a network connection, write router settings, or prove another firmware is vulnerable.\n","该项目是对Zyxel EX3301-T0路由器（固件V5.50(ABVY.7.2)C0）中CVE-2026-6952漏洞的授权研究与离线复现演示，聚焦于已认证状态下的LogServer配置注入导致的本地root SSH权限提升。核心技术特点是利用日志服务器字段的命令注入触发syslog-ng配置错误，结合运行时admin账户提权实现临时root SSH会话（非持久化、无需重启）。项目不含敏感信息，仅提供脱敏分析笔记和纯字符串级本地演示。适用于嵌入式设备安全研究、厂商漏洞验证、ISP定制设备风险评估等场景，不适用于自动化攻击或生产环境部署。",2,"2026-11-24 04:40:51","CREATED_QUERY"]