基础设施 4.0 · 优秀 2026-10-18 · 文章

Jailbreaking the Switch 2 (ns2jb)

Switch 2 当前最新固件 23.0.1 上的首个软件越狱(作者自称),software-onlytethered:能以普通 sysmodule 和内置 fs sysmodule 身份跑任意原生代码用户态入口弃 WebKit n-day 线(XOM+PAC+CFI 挡住浏览器 RW 到任意 IPC),改打 Switch 1 游戏 SmileBASIC 的解释器:Codex 找到 REMOVE 命令 32 位整数下溢,memmove 三参数全部回绕,把数组前 8 字节拉进数组SmileBASIC 数组前 8 字节恰是自身指针,越界读写到手再升级 ROP提权走 fs sysmodule 路径规范化的 0x301 字节堆溢出,受害分配是 BufferedStorage 缓存条目...

打开原文回到归档

Jailbreaking the Switch 2 (ns2jb)

URL: https://pepsipu.com/blog/2026-10-switch2-jailbreak-ns2jb/
author: Sammy Hajhamid
date: 2026-10-18
source: blog / article
collected: 2026-10-23 (daily-intake-evening)

Summary

Switch 2 当前最新固件 23.0.1 上的首个软件越狱(作者自称),software-only、tethered:能以普通 sysmodule 和内置 fs sysmodule 身份跑任意原生代码。用户态入口弃 WebKit n-day 线(XOM+PAC+CFI 挡住「浏览器 RW 到任意 IPC」),改打 Switch 1 游戏 SmileBASIC 的解释器:Codex 找到 REMOVE 命令 32 位整数下溢,memmove 三参数全部回绕,把数组前 8 字节拉进数组——SmileBASIC 数组前 8 字节恰是自身指针,越界读写到手再升级 ROP。提权走 fs sysmodule 路径规范化的 0x301 字节堆溢出,受害分配是 BufferedStorage 缓存条目,改 PID 为 1 拿 FullPermission。信任链断点在「fs 自己保证内容与 NCA 头哈希一致」:fs 内任意读写后在 ldr 与 fs 之间把域表 ExeFS 对象换掉,签名校验用的仍是原文件系统哈希。人机分工记录诚实:越狱本体约两周人力,agent 找到关键整数下溢与受害分配、双线并行,一天 vibecode 出 Mario Kart World 模组。

ns2jb is the first software-only jailbreak for Switch 2 on the latest firmware 23.0.1, enabling arbitrary native code as any ordinary sysmodule including the built-in fs sysmodule. The WebKit n-day entry dies against XOM+PAC+CFI; the working path exploits a 32-bit integer underflow in the SmileBASIC interpreter's REMOVE command (found by Codex), turning an underflowed memmove into arbitrary read/write via the array's self-pointer, then ROP. Privilege escalation abuses a path-normalization heap overflow in the fs sysmodule with a BufferedStorage cache entry as the victim allocation; the trust chain falls because fs guarantees its own content consistency - with fs compromised, the domain-table ExeFS object is swapped between ldr and fs, so signature checks still validate against the original filesystem hash. The author's honest human/AI division: about two weeks of substantive human work; agents found the underflow and the victim allocation, ran two exploit lines in parallel on two machines, and vibecoded a Mario Kart World mod in a day.

Source (fetched)

ns2jb is a software-only jailbreak of the switch 2 for the current latest firmware 23.0.1 October 18, 2026 cs Introduction You can get a copy of the exploit from the ns2jb repository. ns2jb is a software-only, tethered jailbreak for the Switch 2. It allows running arbitrary native code as any ordinary sysmodule, and as the built-in fs sysmodule. This lets us run homebrew, reverse engineer and mod Switch 2 games, back up save files off the Switch, and access most of the Switch 2’s peripherals through MMIO. To my knowledge, it’s the first such exploit for the Switch 2. To demonstrate the capabilities of this jailbreak, Codex modded a Switch 2 exclusive, Mario Kart World. Thanks to my friends in Dabney House who helped me choose characters to add and playtest the game. Watch the first gameplay video Watch the second gameplay video ▶ 0:09 ▶ 0:05 cinnamoroll, red, and tole tole racing first gameplay video second gameplay video first results photo second results photo Setup The very first thing I did was set up a harness around the Switch 1 and 2 so Codex could, ideally, jailbreak the Switch 2 without me: “set a goal to jailbreak the switch 2. make no mistakes” Edit: Many people have been asking me if I actually used this prompt. No, it’s just a silly caption. I set a /goal for userland code execution, but that didn’t succeed. The jailbreak itself took substantial effort for ~2 weeks. The Mario Kart World, however, was entirely vibecoded in a day, and was just for fun. The JetKVMs allow Codex to send controller inputs to the Switches over USB and receive video output over HDMI. We also need a way to press the power button—when the Switch 2 crashes, it needs a button press to restart. That’s what the Bluetooth light switch flicker from Amazon is for. When the lever comes down, it presses the power button. Once the power button is fully pressed, the rest of the lever’s torque lifts the mechanism. watch the power button get pressed Getting code execution WebKit is a popular target for console jailbreaks, so it’s unsurprising that Codex has picked it for initial code execution. Code execution through the browser It claims to have “native control-flow hijack” by taking advantage of a WebKit n-day loaded via a custom Wi-Fi captive portal. We’d like to get code execution in microkernel services (or “sysmodules” on the Switch), so we can run homebrew, mod games, download saves, etc. Unfortunately, this approach of replacing one JavaScript function object with another doesn’t generalize beyond existing functions—we’d need a new way to make arbitrary IPC calls. That looks difficult. Why? WebKit has execute-only memory, or XOM, so even with arbitrary memory RW, we don’t know where a gadget that could perform arbitrary IPC calls is. Even if we did, perhaps by parsing relocation data, it’s not clear how we’d construct a signed pointer for it because of PAC. And even if we could, with some signing gadget, it’s not clear how we’d call this pointer, since CFI type-checks most call sites. Codex has reset the goal to complete these steps. It’s a side bet; it may succeed 1 , but let’s be real: the accessibility of WebKit and the Nintendo BBP reward have probably incentivized many before me to look here 2 . While that runs, let’s explore other options. Code execution through smilehax2 My idea was to target Switch 1 games, for two reasons: They’re built by developers. It’s less likely we’ll need to deal with PAC and CFI, especially because the Switch 1 does not support PAC . Since the Switch 1 root of trust is owned, we can decrypt the code and read it. Maybe we can still get the upsides of the browser attack surface—orchestrating from JavaScript, using existing n-days, etc—while avoiding the downsides of WebKit mitigations by finding a Switch 1 game that embeds a browser? Something analogous to Electron, but for games, so we could pull off an exploit like this Discord RCE . I can’t disclose this approach’s findings publicly at the moment, but luckily, there are other Switch 1 games. In particular, I’m interested in SmileBASIC . This is because it’s been pwned before, in smilehax , giving userspace code execution on the 3DS. It’s a giant C++ codebase; surely, if there was an exploitable memory corruption in the BASIC interpreter, there can be another. Codex found a useful 32-bit integer overflow in the interpreter. When removing items from an array, the interpreter checked position + count <= array.length , but the sum could wrap and become negative. To fill the gap created by removing elements, it’s supposed to shift the remaining elements left, like so: memmove ( backing + position * 8 , // start of the gap backing + (position + count) * 8 , // elements after the gap (length - position) * 8 // bytes to copy ); Say we have a string array R of length 4, and we run REMOVE R,&H60000000,&H3FFFFFFF . position + count wraps to 0x9fffffff . As a negative signed 32-bit integer, it’s less than array.length . The multiplications by 8 also wrap, so we end up performing memmove(backing, backing - 8, 32) , pulling the previous 8 bytes into the array. The command does report an Out of memory error, but it doesn’t matter, since the copy has happened already. This is useful because the 8 bytes preceding any array in SmileBASIC contain a pointer to the array itself! After the REMOVE , operations on R[0] will treat the array backing as if it were a string. Since a pointer occupies what would be the length field of R[0] , the string length is enormous, and we can perform reads and writes out of bounds. We read and write to memory by copying to and from substrings of R[0] . This was a Switch 1 game, so the SmileBASIC agent could work on the exploit on my Switch 1, while the WebKit agent worked on the Switch 2. After some time, it got ROP. Getting sysmodule RW Okay, now we need to compromise a more privileged process. We’re interested in ordinary sysmodules and built-in sysmodules . Which sysmodule should we pursue? We don’t have their code, so it’s unclear which sysmodules have which privileges. I gave a few Codex instances the goal of getting sysmodule code execution. Most chose to focus on audio and ldn . I think that’s because audio and ldn have had bugs on the Switch 2. Codex also looked at the NV service , probably because GPU drivers are generally fruitful? The fs sysmodule In the meantime, I started looking at the built-in fs sysmodule , because: The Switch 1 code shows that it’s able to serve decrypted code . There’s a lot of code. It’s probably similar to the fs module in the Switch 1, since the filesystem API didn’t change very much. The first reason is the most attractive to me. Even if we can’t get a useful jailbreak from fs , we can at least decrypt some of the other sysmodules so Codex can find bugs in them. Other sysmodules like ldr and ro look enticing because they have permission to map executable memory 3 , but they don’t have large attack surfaces, especially from SmileBASIC. We’ll come back to them later. Buffer overflow with path normalization An IFileSystem handle has an IPC command, GetEntryType . This takes a path string, normalized with Path::Normalize . Paths containing a parent-directory component with a backslash, like /..\ , call into a helper that allocates a temporary heap buffer of 0x301 bytes. Our path is copied in, but it can be larger than the buffer, causing a buffer overflow. lol We’ll need a good victim allocation to overflow into. Codex found that the BufferedStorage object allocates a cache entry for its files. If that entry has its dirty bit set, reads and writes to the file follow a pointer to cached data. We can hijack that for arbitrary read/write 4 . From here, I scanned through memory to find SmileBASIC’s connection object and set the saved PID to 1 . Now, my process has “FullPermission”, meaning I can perform privileged filesystem actions. I dumped internal storage and all ordinary sysmodule code, so Codex could perform offline analysis and I could understand where to go next. Getting code execution as any ordinary sysmodule Homebrew and modding typically rely on executing our own native code. Looking at the dumps, the only ordinary sysmodule with permission to map executable code is ro . All these sysmodules have CFI, PAC, and XOM. The interface for the module seems pretty minimal too. It seemed more fruitful to pursue a logic bug than to look for memory corruption in ro directly. Let’s revisit that first point about fs serving decrypted code. This was useful for dumping the code for ordinary sysmodules. What’s the intended functionality of this interface? Loading programs? Games and ordinary sysmodules are distributed as Nintendo Content Archives , or NCAs, containing a filesystem image called ExeFS. This contains a file for the main executable, main , and program metadata, main.npdm . To load a program, the built-in ldr sysmodule asks fs to open ExeFS, and fs replies with an IPC handle to the filesystem.

Obsidian evidence excerpt

from OpenClaw定时任务/内容选题编排/2026-10-23-内容选题编排.md:

知识星球候选三件套) status: completed route: twitter telegram:-1003863705589

内容选题编排 · 2026-10-23

  • status: completed
  • 路由: twitter telegram:-1003863705589
  • Evidence: /Users/gracker/.hermes/evidence/content-topic-plan/2026-10-23/(hn-top.json + hn-best.json + aws-madpot + eliastaylor + phoronix-lkml + quad9 + switch2 + railway + torchtpu-readme,各 html/txt 双份)
  • 主轴判断:① AWS 安全博客(CJ Moses,10-21):MadPot 蜜罐在 10-17——公开披露前四天——就观测到 PHP2Shell 利用尝试,来源挂商业匿名化网络;披露当天最早 PoC 出现在 02:00 UTC、比 embargo 解除(14:00 UTC)早 12 小时,02:00-08:00 UTC 间多个 actor 从不同匿名基础设施发起、payload 各异;补丁发布后数小时新 PoC 上线并立刻打到蜜罐,官方结论「已在野外广泛利用」;防守方动作三条:调查起点从披露日前移到最早观测(至少 10-17)、面向互联网的关键漏洞补丁 SLA 按小时计、检测不依赖 CVE 签名;机制归因:AI 让「补丁 diff → 可用 exploit」变便宜,patch-to-exploit 时间结构性缩短。② Elias Taylor(eliastaylor.com,10-21)反方:GitHub 上几千个「PoC」没有一个能打穿 vanilla PHP,「LLM 告诉你你有 exploit」在制造假 PoC 海;与 RoR YAML/Log4Shell/Shellshock/Heartbleed 的「一个请求就中」对照;与 Wiz 一周利用链、AWS 真实遥测并读才完整——可利用性是分层分布的,顶级研究员一周的成果不等于每个攻击者手里都有现成武器。③ ZDI 误发公开列表(Phoronix 10-22):Trend Micro ZDI 把多份内核漏洞报告误发到公开 LKML 而非私有安全列表,含 SMB Direct 整数下溢 RCE(CVSS 9.0,补丁原定进 v7.5)、KSMBD 竞态 RCE(9.0)、skbuff skb_zerocopy LPE、VMWGFX 越界写 LPE、NVMET 未初始化信息泄露、TCP search-domain 栈溢出 LPE(前一天也误发一份);Greg Kroah-Hartman 逐条回问;多个漏洞 mainline 未修、细节已公开。④ Quad9 退出法国(10-22):法国法院 10-21 判 beIN 胜诉,要求对法国用户阻断一组盗版域名,罚款从 €580k/天降到 €1k/天(11-14 前累计 €24k),但 Quad9 名下还有 20 起同类待判案件;按国家精准阻断需要辖区映射,与免注册、不留用户档案的隐私设计直接冲突,全球阻断又让一国判决域外生效——11-24 起退出法国市场。⑤ 周五档知识星球:ns2jb(Sammy Hajhamid / pepsipu.com,10-18)成稿——Switch 2(23.0.1)首个软件越狱全链拆解(SmileBASIC 整数下溢 → ROP → fs sysmodule 路径规范化溢出 → fs 内 ARW → 域表换 ExeFS 绕签名链 → 以任意 NPDM 权限执行),外加一份诚实的 AI 分工记录:越狱本体约两周人力,agent 找到关键整数下溢与受害分配、双线并行、一天 vibecode 出 Mario Kart World 模组。
  • Android 上限 17 约束:本轮四条资讯与知识星球均无 Android 版本内容(Switch 2 为 Nintendo 平台);HN 快照内 iOS-on-Android Show HN(hackios,75 分)为设备改造向、无版本上限问题,不入池正文仅记录。
  • 本地源对读(防撞题):Railway 环境变量事件已由 DevRadar 10-22 P3 投递(同一 URL),按惯例不占今日资讯位;MadPot/Elias/Phoronix/Quad9 四条与 ClawFeed 10-22 七条、AK-RSS 10-22 六条、Gracker RSS 10-22 四条、论文流水线 10-22 六篇零重复;MadPot 条目是 10-22 P1(PHP2Shell 披露日)的跟进层——披露后利用观测与调查起点前移,中心不同;eMudhra 退出证书业务入池 #201,与 #184(密钥事件)、Gracker RSS 10-22 三篇分析同线不同层。
  • 运行说明:opencli hackernews top/best 正常;opencli web read 本轮未用(延续 Navigation rejected 状态),按 skill fallback urllib(正常 UA)直取 railway/phoronix/switch2/quad9 成功,aws.amazon.com 与 eliastaylor.com TLS EOF 后 curl 成功,DARK CARTOGRAPHER 续篇核查用 urllib 直取 Citizen Lab 原报告页确认「披露流程完成后发布续篇」仍原文在页、未发布。

素材盘点

HN 快照(opencli hackernews top/best,2026-10-23 01:10 CST,存 evidence/hn-top.json + hn-best.json)

top(择要)

| 条目 | 分数 | 判断 | |---|---:|---| | Railway Security Disclosure(blog.railway.com,10-21) | 553 | 已由 DevRadar 10-22 投递,不占位 | | eMudhra to exit global SSL/TLS certificate business | 543 | 池 #201(#184 后续) | | Claude Duet(claude.com) | 514 | 池 #209 | | Jailbreaking the Switch 2(pepsipu.com,10-18) | 493 | 池 #206,今日升格知识星球成稿 | | No more icons in every menu(jim-nielsen.com) | 438 | 备选未读 | | WorldTUI: 360M model pretends to be a terminal | 430 | 池 #205 | | Amazon identifies Oct 17 PHP2Shell exploitation(aws) | 202 | P1,今日投递。全文已抓 | | Several Linux kernel vulns accidentally posted to LKML(phoronix,10-22) | 210 | P3,今日投递。全文已抓 | | Quad9 to Exit France | 318 | P4,今日投递。全文已抓 | | What's Getting Pwned(pwn.watch) | 169 | 池 #210 | | Faster than earcut(globus.software) | 152 | 备选未读 | | Crystal 1.22 | 126 | 备选未读 | | Google cleared 300 hectares of Finnish forest | 123 | 备选未读 |

best(择要)

| 条目 | 分数 | 判断 | |---|---:|---| | PHP 安全公告/8.2.35/基金会文/Wiz 全文 | 1540/1063/777/445 | 10-22 已投,不重复 | | SimCity, but with Permits | 922 | 池 #198(昨日结转) | | Eight Bits of Trust(scotthelme) | 912 | 池 #184 关联,Gracker RSS 10-22 已投 | | EA shutting down BioWare(theverge) | 663 | 备选未读 | | Meta ordered to pay $25B(CNBC) | 646 | 池 #202 | | The Future of CSS | 616 | 池 #195(昨日结转) | | There isn't an easy exploit for this PHP vulnerability(eliastaylor.com) | 595 | P2,今日投递。全文已抓 | | mitmproxy adds --emudhra option | 568 | 并入 #184 备注 | | PingCap TiDB Leaks(fulcrumsec.vg) | 412 | 池 #208(来源待核) | | Muse exposes secrets(arstechnica) | 400 | 池 #194(昨日结转) | | GitLab 19.5.1 patch release | 397 | 备选未读 | | TorchTPU(github.com/google-pytorch) | 378 | 池 #203,README 已读 | | Mistral Large 4 | 322 | 池 #204 | | No Kings / OpenAI on GCP / Ofcom / GCP 欧洲宕机 / What shall I teach my son | — | 昨日结转 #196/#197/#199/#200 + 备选 |

一手全文要点

Amazon Threat Intelligence identifies PHP2Shell exploitation prior to public disclosure in MadPot(aws.amazon.com,CJ Moses,2026-10-21)

  • 核心事实:MadPot 遥测观测到 10-17(披露前四天)的 PHP2Shell 利用尝试,来源 IP 属商业匿名化网络;embargo 内打蜜罐 + 匿名化来源 → 判定为威胁 actor 行为,但 actor 如何在披露前获得利用信息不明。
  • 披露日时间线:最早 PoC ≈10-21 02:00 UTC(embargo 解除前 12 小时);02:00-08:00 UTC 多批利用尝试来自不同匿名基础设施,payload 与匿名化选路各异 → 多个 actor;技术分析进行中,无法确认在真实系统上是否成功。
  • 补丁后:数小时内新 PoC 出现并立即打到蜜罐;「PHP2Shell is now being broadly exploited in the wild」。
  • 三条防守建议:调查起点用最早观测到的利用而非披露日(本次至少从 10-17 起);面向互联网关键漏洞的补丁/缓解按小时计,7/30 天 SLA 假设的延迟已不存在;投资不依赖 CVE 签名的检测——第一波利用总在签名之前。
  • 结构判断:patch → working exploit 时间因 AI 辅助分析(补丁 diff/公告 → exploit)结构性缩短;过去「少数能人写 exploit、其余等现成」的依赖在弱化。AWS 自报每分钟分析 200B+ 事件。

There isn't an easy exploit for this PHP vulnerability(eliastaylor.com,Elias Taylor,2026-10-21)

  • 立场:漏洞真实且重要,但「远没有传播中说的那么好打」,与 Log4Shell/Heartbleed/RoR YAML 完全不同级;置顶编辑强调「该打补丁还是要打」。
  • 观察:GitHub 上「字面意义上几千个」PoC 仓库,没有一个能打穿 vanilla PHP 实例;作者邀请读者自起 Docker 受影响版本、亲手跑 PoC 验证(别让 LLM 代跑)。
  • 归因:五年前大家能分清可利用性,现在「人被自己的 LLM 骗了——LLM 说你有 exploit,其实没有」。
  • 对照组(作者认定的「真完蛋」CVE):RoR YAML(发个坏 body)、Log4Shell(设 UA 为 ${jndi:ldap:})、Shellshock(改 env)、Heartbleed(要 Content-Length 10^7)——都是单请求触发。
  • 与 Wiz「一个研究员一周」叙事的关系:两者不矛盾——头部研究员能做出来 ≠ 武器化成品人人可得;同时假 PoC 海量让防守方按 PoC 数量评估风险会失真。

Several Linux kernel vulnerabilities accidentally posted to public LKML(phoronix.com,Michael Larabel,2026-10-22)

  • 事件:Trend Micro ZDI 把多份漏洞报告误发到公开 LKML 而非私有安全列表;Greg Kroah-Hartman 对每份报告回帖询问提交渠道;部分漏洞 mainline 未修(补丁在测试或排在 -next)。
  • 清单:ZDI-CAN-33549 SMB Direct 整数下溢 RCE(CVSS 9.0,补丁在目标 v7.5 的分支,现大概加急);ZDI-CAN-33774 KSMBD 竞态 RCE(9.0);ZDI-CAN-33367 skbuff skb_zerocopy LPE(上周已有另一来源报告,补丁快出);ZDI-CAN-34068 VMWGFX 越界写 LPE;ZDI-CAN-34076 NVMET 未初始化资源信息泄露;ZDI-CAN-32005 search-domain TCP 栈溢出 LPE(前一天也误发)。
  • 与本周披露泄漏事件同线:PHP 三处泄漏(编号抢跑/PoC 视频误发/Chainguard 破 embargo)+ LKML 误发——报告量与节奏被 AI 拉高后,协调披露的流程面在多处同时出险。

Farewell, France(quad9.net,2026-10-22)

  • 事实:法国法院 10-21 就 beIN(卡塔尔体育媒体,法国办公)版权诉讼判 Quad9 败诉,要求对法国用户阻断一组域名;罚款从 €580k/天降到 €1k/天,至 11-14 累计 €24k(不含诉讼费)。
  • 结构性死结:按国家阻断需要辖区映射——Quad9 免费免注册、不存用户档案,无法判定哪些用户适用该判决;全球阻断技术上可行(并入恶意域名库)但让法国判决对所有用户域外生效。
  • 压力账:20 起同类待判案件罚款未评估,叠加未来同类诉讼,「不作为」不可持续 → 11-24 起退出法国。
  • 立场原文要点:递归 DNS 是中立被动服务;盗版应在内容托管源头处理;迫使无关第三方破坏互联网基本原则是误导且适得其反;不能遵从判决同时忠于使命。

Jailbreaking the Switch 2 / ns2jb(pepsipu.com,Sammy Hajhamid,2026-10-18)——知识星球成稿底稿

  • 能力面:Switch 2 当前最新固件 23.0.1 上首个软件越狱(作者自称),software-only、tethered;能以普通 sysmodule 与内置 fs sysmodule 身份跑任意原生代码——homebrew、逆向改游戏、备份存档、MMIO 访问外设;演示为 Codex 一天改出的 Mario Kart World(加角色、实机比赛视频)。
  • 用户态入口(WebKit 线,弃):自定义 WiFi captive portal 打 WebKit n-day 可拿浏览器内执行,但 Switch 2 的 XOM + PAC + CFI 让「浏览器 RW → 任意 IPC」走不通(找不到 gadget / 签不出指针 / 调用点全被 CFI 检查)。
  • 用户态入口(SmileBASIC 线,成):Switch 1 游戏(无 PAC、根信任已破可解密代码)里找解释器内存破坏——Codex 找到 REMOVE 命令 32 位整数下溢:position + count <= array.length 检查中和回绕为负;示例 REMOVE R,&H60000000,&H3FFFFFFF 使 memmove(backing, backing-8, 32),把数组前 8 字节(SmileBASIC 中恰为数组自身指针)拉进数组;R[0] 被当字符串用时长度字段即指针值 → 越界读写 → ROP。
  • 提权 fs sysmodule:GetEntryType 路径规范化中 /..\ 类分量走 helper,分配 0x301 字节临时堆缓冲但路径可更长 → 溢出;Codex 找到 BufferedStorage 缓存条目(dirty 位置位时读写走缓存指针)当受害分配 → fs 内任意读写;把 SmileBASIC 连接对象保存 PID 改为 1 → FullPermission → dump 内部存储与全部普通 sysmodule 代码。
  • 信任链断裂点:ldr 用两层签名锁内容(任天堂签 main.npdm 权限 + 开发者钥 → NCA 头签名 → 头哈希 → 文件系统哈希 → 可执行内容),但「fs 送上的内容与 NCA 头哈希一致」由 fs 自己保证;fs 内 ARW 后,在 ldr 请求 ExeFS 与 fs 处理后续请求之间把域表中 ExeFS 对象换成自建临时文件系统(原始 main.npdm + 任意 main)——签名校验用的仍是原文件系统的哈希与签名;时序控制靠把 fs 等待的 loader IPC handle 换成 SmileBASIC 控制的 event handle;用 ro 的 NPDM(可映射可执行内存)启动任意代码。
  • 人机分工(诚实记录):「/goal: jailbreak the switch 2, make no mistakes」是玩笑配文;越狱本体约两周实质性人力;Codex 实际贡献——找到 SmileBASIC 整数下溢、找到 BufferedStorage 受害分配、WebKit/SmileBASIC 双 agent 并行(分属 Switch 2 / Switch 1 两台机器)、Mario Kart World 模组一天 vibecode 完成。

池内动态

  • DARK CARTOGRAPHER 续篇未发布:Citizen Lab 原报告页仍写「Once the disclosure process is complete, we will release our subsequent report」,并注明正与厂商协作缓解其大规模去匿名化攻击;维持知识星球最高优先顺位。

每日选题提案

P1(今日投递):AWS MadPot 遥测——PHP2Shell 在披露前四天就有真实利用

  • 事实面:10-17 蜜罐观测(披露前 4 天);披露日最早 PoC 比 embargo 解除早 12 小时、8 小时窗口内多 actor 多基础设施;补丁后数小时 PoC 即上线,现已在野外广泛利用;调查起点官方建议前移到 10-17。
  • 判断:这条把 10-22 P1 的「AI 降利用成本」判断从叙事变成遥测数据——Wiz 说一周能做出来,AWS 观测到真有人提前四天在做;「披露日即风险起点」的旧假设作废,patch-to-exploit 缩短是结构性的(AI 把补丁 diff → exploit 变便宜),补丁 SLA 和检测设计都要跟着改。
  • 边界:蜜罐观测不等于真实系统被攻破(AWS 自己声明技术分析进行中);actor 如何提前获得利用信息不明——不排除独立再发现;AWS 是云厂商,有推销自家防护的叙事。

P2(今日投递):GitHub 几千个 PoC 打不穿 vanilla PHP——可利用性的分层现实

  • 事实面:Elias Taylor 反方长文;「几千个」PoC 无一过 vanilla PHP;邀请读者亲手验证;对照单请求触发的历史 CVE;点名「LLM 告诉你你有 exploit」现象。
  • 判断:与 P1 并读才完整——真实可利用性是分层分布:顶部是 Wiz 研究员一周串利用链,中部是 AWS 看到的真实 actor 尝试(成功性未知),底部是 GitHub 上海量假 PoC 噪音;假 PoC 海的制造机制(LLM 把「理论上能利用」当「已利用」交付)本身是本轮 AI 安全生态的新现象,防守方按 PoC 数量定风险等级会系统性失真。
  • 边界:作者未给出复现实验数据(只有「我跑过都不中」的姿态);不排除私有圈内有可用武器;这是观点文不是研究。

P3(今日投递):ZDI 误发公开列表——协调披露的流程面在多处同时出险

  • 事实面:多份内核漏洞报告误发公开 LKML(含两枚 CVSS 9.0 RCE),GKH 逐条回问;多个漏洞 mainline 未修;清单含 SMB Direct/KSMBD/skbuff/VMWGFX/NVMET/TCP search-domain 六项。
  • 判断:本周第二起披露流程事故(前有 PHP 三处泄漏);报告量与节奏被 AI 拉高后,人工流程的错误率跟着上去——「漏洞多到发错列表」本身就是注脚;对 Linux 用户的具体含义:SMB Direct/KSMBD 是远程面,在补丁落地前按暴露面评估是否先做网络层限制。
  • 边界:Phoronix 是快讯媒体,细节以内核列表原文为准;「误发」是 ZDI/维护者双方口径,完整 post-mortem 未出。

P4(今日投递):Quad9 退出法国——递归 DNS 被当执法接口的结构性死结

  • 事实面:10-21 判决、11-24 退出;罚款 €580k/天 → €1k/天(11-14 前累计 €24k);20 起同类待判;按国阻断需辖区映射 vs 免注册不留档的隐私设计;全球阻断 = 一国判决域外生效。
  • 判断:单看罚款是小事,看结构是大事——公共解析器被逐案变成内容执法接口时,出路只剩「记住用户」或「退出市场」两个,两者都毁掉它作为公益基础设施的立足点;对依赖公共 DNS 的用户,欧洲市场的解析器中立性在司法压力下进入可预见的收缩期。
  • 边界:Quad9 是利益相关方自述;法庭判决书原文未读,beIN 主张细节取自 Quad9 转述。

容量门禁

| 输出槽位 | 今日上限 | 实际占用 | 说明 | |---|---:|---:|---| | X 草稿(TG 交付) | 0-1 | 0 | 周五档不出;X 草稿走工作日独立任务 | | 资讯正文(TG 交付) | 3-5 | 4 | MadPot / Elias Taylor / LKML 误发 / Quad9 | | 知识星球候选 | 1(周五) | 1 | ns2jb(#206 升格成稿) | | 每周选题池 | 统一编号 | #194-#210 | 10-22 结转 7 + 10-23 新增 10 |

门禁结论:周五档 4 条资讯全文化 + 知识星球 1 篇全文交付,全部一手全文已读;X 草稿不新增;Railway 避让 DevRadar。

每周选题池(10-22 结转 + 10-23 新增,统一编号)

10-22 结转(#194-#200)

  • #194 Muse 共享对话泄露个人与商业秘密(arstechnica.com,400)
  • #195 The Future of CSS / interop 2027(joshwcomeau.com,616)
  • #196 No Kings 下架事件与平台依赖(techdirt.com,519)
  • #197 OpenAI models coming to Google Cloud(openai.com,316)
  • #198 SimCity, but with Permits(permit.petercai.com,922)
  • #199 Ofcom 在 4chan 案认输(prestonbyrne.com,412)
  • #200 Google Cloud 欧洲宕机波及银行业(neowin.net,396)

10-23 新增(#201-#210)

  • #201 eMudhra 退出全球 SSL/TLS 证书业务(emudhra.com 新闻稿,543)——#184 密钥事件的企业后果线;与 Gracker RSS 10-22 三篇分析同线不同层
  • #202 Meta 被判新墨西哥 Cambridge Analytica 案 $25B 罚金(cnbc.com,646)
  • #203 Google 开源 TorchTPU(github.com/google-pytorch/torch_tpu,378,README 已读)——原生 PyTorch TPU 后端:ATen kernels + XLA 编译缓存 + torch.compile + 分布式训练,示例覆盖 Llama/Qwen/ResNet/DLRM/minGPT/UNet;与 DeepInfer(10-21 已投)同属「训练/推理栈开源竞争」组
  • #204 Mistral Large 4(mistral.ai,322)
  • #205 WorldTUI:360M 模型扮终端(simedw.com,430)——小模型世界模型
  • #206 ns2jb:Switch 2 首个软件越狱(pepsipu.com,493,全文已抓)——今日升格知识星球成稿
  • #207 o(n log n) 整数乘法新进展(Harvey/UNSW PDF,285)——与 #128 BB(10) 同属数学组
  • #208 PingCAP TiDB Leaks(fulcrumsec.vg,412,未读)——站点可信度待核,编号仅占位,引用前必须先核原文
  • #209 Claude Duet(claude.com,514,未读)——产品发布页,待读后判断是发稿还是留池
  • #210 What's Getting Pwned(pwn.watch,169,未读)——被利用漏洞追踪服务,或作工具类短条

备选(未读):Arc Is Sunsetting(53)/ GitLab 19.5.1(397)/ EA 关停 BioWare(663)/ Jim Nielsen 菜单图标(438)/ earcut 多边形三角化(152)/ Gridification(249)/ Google 芬兰林地(123)/ Crystal 1.22(126)/ What shall I teach my son(483)/ Ruby gems 归档(514)/ AfD 泄漏(382)/ SM64 on Vision Pro(144)

备注:mitmproxy --emudhra(GitHub commit,568)并入 #184 备注;Railway 事件已由 DevRadar 投递不入池;沿用 #1-#193 维持;#208 引用前先核来源。

知识星球候选

ns2jb:Switch 2 的第一个软件越狱,以及一份诚实的人机分工记录

Sammy Hajhamid 10 月 18 日发布 ns2jb,Switch 2 当前最新系统 23.0.1 上的第一个软件越狱(作者自称),software-only、tethered:能以普通 sysmodule 和内置 fs sysmodule 的身份跑任意原生代码,于是可以跑 homebrew、逆向和修改 Switch 2 游戏、备份存档、通过 MMIO 直接摸外设。演示环节是一天改出来的 Mario Kart World——往游戏里加自选角色、实机跑比赛。整条链从浏览器之外的一个 BASIC 解释器开始,一路走进任天堂的加载器信任链内部,是目前把 Switch 2 安全设计讲得最完整的一份一手材料。

用户态入口先试了常规路线:用自定义 WiFi captive portal 触发一个 WebKit n-day,拿到浏览器内代码执行。然后撞上 Switch 2 的三件套——XOM(代码页不可读)、PAC(指针签名)、CFI(调用点类型检查),从「内存读写」到「任意 IPC 调用」之间找不到 gadget、签不出指针、调用点全被检查,这条线放弃。作者改打 Switch 1 游戏 SmileBASIC:Switch 1 没有 PAC、根信任早破(代码可解密阅读),而这款游戏在 3DS 时代就出过 smilehax。Codex 在解释器里找到一个 32 位整数下溢:REMOVE 命令检查 position + count <= array.length,但两者之和会回绕成负数通过检查;示例里一条 REMOVE 让 memmove 的三个参数全部回绕,变成 memmove(backing, backing - 8, 32),把数组前 8 字节拉进数组——而 SmileBASIC 里任何数组前 8 字节恰好存着指向数组自身的指针。之后把 R[0] 当字符串用,长度字段就是那个指针值,越界读写到手,再升级到 ROP。

从用户态到内核服务的跳板是内置 fs sysmodule。GetEntryType 的路径规范化里,形如 /..\ 的带反斜杠父目录分量会走进一个分配 0x301 字节临时堆缓冲的 helper,而路径本身可以比缓冲长——溢出。Codex 找到的受害分配是 BufferedStorage 的缓存条目:dirty 位置位时对文件的读写会跟随缓存指针,把这个指针改掉就拿到 fs 进程内任意读写。再把 SmileBASIC 连接对象里保存的 PID 改成 1,进程直接拿到 FullPermission,dump 出内部存储和全部普通 sysmodule 的代码。

全文最值得记的是加载器这一步。理论上 ldr 的两层签名把可执行内容锁得很死:任天堂签 main.npdm 的进程权限、开发者钥签 NCA 头哈希、哈希定文件系统内容、文件系统哈希定可执行文件。但链条有一环靠组件自己保证——「fs 送上的文件系统内容与 NCA 头哈希一致」这件事,执行者是 fs 自己。攻击者拿到 fs 内任意读写之后,在 ldr 请求 ExeFS 与 fs 处理后续请求之间,把域表里的 ExeFS 对象换成自建临时文件系统(放原始 main.npdm 加任意 main),签名校验用的还是原文件系统的哈希与签名,直接以任意 NPDM 权限启动自己的代码;时序控制靠把 fs 等待 loader 消息的 IPC handle 换成 SmileBASIC 持有的 event handle。再用有可执行内存映射权限的 ro 的 NPDM 启动代码,普通 sysmodule 级执行到手。信任链在密码学上没输,输在「内容一致性由被攻破的组件自己担保」这一环。

人机分工的记录比 exploit 本身更值得留:作者明确说那句「set a goal to jailbreak the switch 2. make no mistakes」是玩笑配文,Codex 没能自主完成越狱,本体是约两周的实质性人力。但 agent 在链路里干的都是实事——找到 SmileBASIC 的整数下溢、找到 BufferedStorage 受害分配、WebKit 与 SmileBASIC 两条线用两台机器并行推进、游戏模组一天写完。和本周 PHP2Shell 的「AI 把利用开发成本打下来」并读,这是一份少见的中间态样本:结构性、跨系统的信任链断点还是人找的,模式化适配与旁支工程 agent 已经能接。对做平台安全的人,教训是通用的:任何「由组件自己保证内容一致」的环节,默认该组件被攻破后整个链条作废——fs 如此,任何把校验和执行放在同一信任域里的设计都如此。

https://pepsipu.com/blog/2026-10-switch2-jailbreak-ns2jb/