-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 NEFARIOUSPLAN-CANONICAL-V1 {"body_md":"The GL.iNet GL-MT3000 is a pocket-sized travel router. The customer who plugs it into hotel ethernet, enables the USB drive's SMB share, and walks away is the named victim of CVE-2026-11452. The bug site is `FUN_0042d340` in `gl_nas_sys`, the root daemon that synchronizes Samba accounts. The function builds a shell command with `snprintf(cmd, 0x100, \"printf \\\"%s\\n%s\\n\\\" | smbpasswd -a -s %s\", password, password, name)` and hands the buffer to `system()`. The password is interpolated between two typed `\"` characters.\n\nGL.iNet's response to the CVE states that the password \"is handled inside a shell single-quote context.\" The disassembly shows double quotes. Both statements cannot describe the same firmware.\n\n## The double quotes are typed into the format string\n\nThe researcher's submission is dated 2026-05-12. The CVE was reserved on 2026-06-06 and published the next day. Between the submission and the publication, GL.iNet shipped firmware 4.8.1, which the vendor response names as their test target. Both 4.4.5 and 4.8.1 are real artifacts. The CVE is about the former. The denial is about the latter. The post will return to that, after the bug.\n\nThe bug site, as decompiled from `gl_nas_sys` on 4.4.5:\n\n```c\n// FUN_0042d340 @ 0x42d3c0, gl_nas_sys (root)\nsnprintf(cmd, 0x100,\n \"printf \\\"%s\\n%s\\n\\\" | smbpasswd -a -s %s\",\n password, // user-controlled, between the typed quotes\n password, // same buffer, interpolated twice\n name);\nsystem(cmd);\n```\n\nThe format-string literal lives at offset `0x476940` in the binary. The bytes the C compiler wrote into rodata are:\n\n```\nprintf \"%s\\n%s\\n\" | smbpasswd -a -s %s\n```\n\nThe two `\"` characters around `%s\\n%s\\n` are typed into the C source. They are not the output of an escape function. They are not the result of a quoting library. They are eight bytes the developer added to the format string to delimit a shell string and feed the password to `smbpasswd` over a pipe. The developer's mental model is \"wrap it in quotes so the shell does not break it.\" The character used to wrap is `\"`.\n\nInside a double-quoted shell string, `/bin/sh` expands `$(...)`, backticks, and `${...}` before passing the result downstream. The behaviour is documented in POSIX; it is the definition of what double quotes mean. The escape would be single quotes, or no shell at all. The wrap was double quotes.\n\nThe PoC constructs the password as:\n\n```python\ncommand = \"sh -c %s>%s 2>&1\" % (shlex.quote(CMD), shlex.quote(OUT))\nnonce = str(time.time_ns())[-8:]\npassword = \"Aa1!$(%s)%s\" % (command, nonce)\n```\n\nWhen the snprintf renders, the shell sees:\n\n```\nprintf \"Aa1!$(sh -c 'id'>'/tmp/poc' 2>&1)12345678\nAa1!$(sh -c 'id'>'/tmp/poc' 2>&1)12345678\n\" | smbpasswd -a -s root\n```\n\n`/bin/sh -c` parses the double-quoted string. `$(...)` is the first token it evaluates. `sh -c 'id'>'/tmp/poc' 2>&1` runs as root and writes `id`'s output to `/tmp/poc`. The substitution returns empty stdout. `printf` then prints `Aa1!12345678\\nAa1!12345678\\n` and pipes it to `smbpasswd`, which silently rejects the malformed input. The marker file is on disk. The chain ran as root before `smbpasswd` was ever invoked.\n\n## The dispatcher loads any .so by name and the password ends at system()\n\nThe path from network to `FUN_0042d340` has no authentication at any hop.\n\n```c\n// /www/cgi-bin/glc, main(), pre-patch\njson_unpack_ex(body, \"{s:s,s:s,s?o}\",\n \"object\", &object, // \"nas-web\"\n \"method\", &method, // \"set_user_pwd\"\n \"args\", &args); // {\"name\":\"root\",\"password\":\"Aa1!$(...)\"}\n\nsnprintf(path, 0x80, \"%s/%s.so\", \"/usr/lib/oui-httpd/rpc\", object);\nhandle = dlopen(path, RTLD_NOW);\nhandler = dlsym(handle, method);\nhandler(args, result);\n```\n\nThe dispatcher takes the attacker-supplied `object` string, concatenates it into a path, `dlopen`s the resulting `.so`, looks up the attacker-supplied `method` as an exported symbol, and calls it with the raw `args`. There is no auth gate. There is no method allowlist. There is no content inspection of the JSON. Any exported symbol in any `.so` under `/usr/lib/oui-httpd/rpc` is reachable from the open network.\n\n`nas-web.so::set_user_pwd` is one of those symbols. It re-serializes the args back to JSON and POSTs to `127.0.0.1:/NAS_API_SET_USER_PWD`. The route dispatcher inside `gl_nas_sys` looks up the URI and lands in case `0x65`:\n\n```c\n// FUN_00440190, gl_nas_sys route dispatcher\ncase 0x65: return FUN_0043db80(srv, con, p_d);\n```\n\n`FUN_0043db80` extracts `name` and `password`, calls `FUN_00431190` to update the on-disk DB, then `FUN_0042e200(name, 0, password)` to sync to Samba. The `0` in the second argument is the old-password slot; passing zero short-circuits the verify step. `FUN_0042e200` calls `FUN_0042e0b0`, which calls `FUN_0042d340`. The password buffer travels through five forwarders. None of them inspect it. The last one types two `\"` around it and hands the result to `system()`.\n\nThe reachability is structural. The dispatcher is not narrowly scoped to one bug. The same researcher's repository names six other RCE primitives through the same `/cgi-bin/glc` dispatcher on the same firmware:\n\n```\nGL-iNet/MT3000/4.4.5/\n nas_set_user_pwd_glc_rce/ (this CVE)\n nas_proto_media_dir_glc_rce/\n nas_eject_disk_do1_glc_rce/\n nas_remove_user_glc_rce/\n tor_set_config/\n iwinfo_scan_ubus_rce/\n luci_rpc_sys_exec_rce/\n```\n\nSeven `.so`-handler RCEs in one firmware version through one dispatcher. The dispatcher is the primitive. The handlers are instances. CVE-2026-11452 is the instance that received a CVE number; the dispatcher is what the next six CVEs will share.\n\n## Quote-wrap is not escape\n\nThe author of `FUN_0042d340` was thinking about quoting. The format string is internally consistent: a double-quoted shell string with `\\n` separators piped to a tool that reads passwords from stdin. The author understood that `smbpasswd -s` reads stdin, and that two `\\n`-terminated lines satisfy the \"new password\" / \"confirm new password\" prompt sequence. The author then reached for `\"` as the wrap character.\n\nThe thought is \"the shell will treat the password as a literal string because it is wrapped in quotes.\" The character is `\"`. The shell's behaviour inside a `\"`-delimited string is documented in the POSIX spec, and it is not \"treat as literal.\" It is \"expand `$(...)`, backticks, `${...}`, and `\\` escapes; otherwise pass through.\"\n\nThe escape function for this destination exists. `fork()` plus `pipe()` plus `execv(\"/usr/bin/smbpasswd\", argv)` writes the password to a file descriptor that `smbpasswd` reads, with zero shell parsing on the value. The C standard library exposes `snprintf` and `system` as separate primitives precisely because they are not the same operation. OpenWrt's own utility code uses `execve` in adjacent paths. The same `gl_nas_sys` binary makes `execve`-family calls elsewhere. The function call existed; it was not used here.\n\nThe catalog calls this shape `quote-wrap-is-not-escape`: the destination's string-quoting convention is encoded as a typed character in the source, instead of as a call to the destination's escape primitive. The character is not a function. It does not run. It does not normalize. It does not check. It marks the bytes around it as \"inside a shell string\"; what the shell does inside that string is the shell's choice, not the source author's. The pattern's prior exhibit was PHP code typing three `'` characters into a `popen` line in the same project that called `escapeshellarg()` forty-seven times elsewhere. The language was different. The thought was the same. The character was different. The thought was the same.\n\nIn `gl_nas_sys`, the same project ships `execve` callers in adjacent files. The bug site reached for `\"`.\n\n## The denial describes 4.8.1. The CVE is for 4.4.5.\n\nGL.iNet's response, recorded in the CVE entry:\n\n> The current code escapes single quotes in the password parameter and handles it inside a shell single-quote context. The payloads in the report, which rely on `$()` or backticks to trigger command substitution, are not executed under the current code path. Testing on GL-MT3000 running firmware 4.8.1 showed no command-execution marker file was created.\n\nTwo facts stated:\n\n1. The code \"handles\" the password in a \"shell single-quote context.\"\n2. The test target is firmware 4.8.1.\n\nTwo facts about the bug:\n\n1. The disassembly of `gl_nas_sys` in firmware 4.4.5 shows `printf \"%s\\n%s\\n\"`, with the password between two double-quote characters at format-string offset `0x476940`. The PoC includes Ghidra screenshots with the format-string bytes highlighted, and the firmware image is publicly downloadable from `dl.gl-inet.cn/router/mt3000/stable`. The bytes are checkable; the disagreement is not opinion.\n2. The CVE record names affected versions as \"up to and including 4.4.5\" and the fixed version as 4.8.1.\n\nGL.iNet tested the fix. The fix works. They reported, accurately, that the fix works. The CVE is not for the fix. The CVE is for the firmware shipped on routers that have not auto-updated, including the long tail of customers running the device disconnected from the GL.iNet update channel by design, because the device is sold as a travel router and travel routers are configured once and forgotten.\n\nThe pattern in the catalog is `denial-by-pedantry`. The shape is consistent with Oracle's narrow definition of \"Oracle Cloud system\" in the credential-exposure response: a statement that is true within its own boundary, written in language that a customer reads as \"this does not affect you.\" Oracle's boundary was which systems counted as \"Oracle Cloud.\" GL.iNet's boundary is which firmware version counts as \"current code path.\" Neither boundary is named in the surface statement. Both boundaries do the work.\n\nThe customer reading \"current code path\" understands the firmware on their router. The vendor writing \"current code path\" understands the head of `master`, which is what shipped as 4.8.1. The two readings are reconcilable only by reading the second paragraph, which names the test firmware. The first paragraph is what the news cycle quotes. The first paragraph is what 4.4.5 customers will read.\n\nA customer who reads the vendor statement at face value does not upgrade. The router keeps listening on `/cgi-bin/glc`. The password handler keeps interpolating into double quotes. Five other dispatcher-handler pairs in the same firmware do the equivalent through different sinks. The denial is the boundary that keeps the firmware on the device.\n\nPoC: [StrTzz123/iot_vul](https://github.com/StrTzz123/iot_vul/blob/main/GL-iNet/MT3000/4.4.5/nas_set_user_pwd_glc_rce/Readme.md).","closing_line":"GL.iNet shipped the fix in 4.8.1. The vendor's denial describes that fix. CVE-2026-11452 is what 4.4.5 still ships.","hook_md":"The GL.iNet GL-MT3000 is a pocket-sized travel router. The customer who plugs it into hotel ethernet, enables the USB drive's SMB share, and walks away is the named victim of CVE-2026-11452. The bug site is `FUN_0042d340` in `gl_nas_sys`, the root daemon that synchronizes Samba accounts. The function builds a shell command with `snprintf(cmd, 0x100, \"printf \\\"%s\\n%s\\n\\\" | smbpasswd -a -s %s\", password, password, name)` and hands the buffer to `system()`. The password is interpolated between two typed `\"` characters.\n\nGL.iNet's response to the CVE states that the password \"is handled inside a shell single-quote context.\" The disassembly shows double quotes. Both statements cannot describe the same firmware.","post_id":579,"slug":"gl-mt3000-cve-2026-11452-denial-describes-the-fix","title":"CVE-2026-11452: GL.iNet's Denial Describes 4.8.1. The Bug Is What 4.4.5 Ships.","type":"initial","unreadable_sentence":"GL.iNet's response says single quotes. The disassembly says double quotes. Both statements cannot describe the same firmware."} -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQRf0htP5+SjynlxywneZjl4jgkQJgUCargD4QAKCRDeZjl4jgkQ JhFWAP9JPYfpYb0W+SyYcaoynTG1k3x+eOc3/F8WgZMDiTqh6QEA0D5E/CP93QIq 4/zVam1FXZUeK83BiGj/rdiyTcL7PgA= =309Z -----END PGP SIGNATURE-----