Claude Code RCE: Exploiting Deeplink Handlers via Settings Injection
Of course I took a peek at the Claude Code source 🙈.
What I found was a very entertaining vulnerability which is now fixed since Claude Code version 2.1.118.
Just wading through the massive codebase manually wasn’t really a feasible approach. So took an army of AI Agents to…. no wait actually I did not do that, the following was all manual work. :P
I started by looking at different configuration options and tried to see what’s actually “useful” from an attacker’s perspective. On the way, in main.tsx I came across eagerLoadSettings, it eagerly loads settings, obviously:
0day.click