WTF, they not just made unauthenticated RCE http endpoint, they also helpfully added CORS bypass for it... all in CLI tool? That silently starts http server??
Unauthenticated remote code execution in OpenCode
31–40 of 155 posts
Re: Unauthenticated remote code execution in OpenCode
#32Re: Unauthenticated remote code execution in OpenCode
#33Huh, I thought opencode was a volunteer project but it looks like it's a business with major backing from major players. Was opencode always set up like this? I could have sworn there was some project with a better governance model, guess not.
Re: Unauthenticated remote code execution in OpenCode
#34WTF, they not just made unauthenticated RCE http endpoint, they also helpfully added CORS bypass for it... all in CLI tool? That silently starts http server??
I'm slightly surprised that the CORS policy wasn't just "*" considering how wide open the server itself was.
Re: Unauthenticated remote code execution in OpenCode
#35WTF, they not just made unauthenticated RCE http endpoint, they also helpfully added CORS bypass for it... all in CLI tool? That silently starts http server??
I'm slightly surprised that the CORS policy wasn't just "*" considering how wide open the server itself was.
https://github.com/anomalyco/opencode/commit/7d2d87fa2c44e32...
Re: Unauthenticated remote code execution in OpenCode
#36Re: Unauthenticated remote code execution in OpenCode
#37> When server is enabled, any web page served from localhost/127.0.0.1 can execute code
> When server is enabled, any local process can execute code without authentication
> No indication when server is running (users may be unaware of exposure)
I'm sorry this is horrible. I really want there to be a good actual open cross-provider agentic coding tool, but this seems to me to be abusive of people's trust of TUI apps - part of the reason we trust them is they typically DON'T do stuff like this.
Re: Unauthenticated remote code execution in OpenCode
#38Re: Unauthenticated remote code execution in OpenCode
#39Meanwhile, running opencode in a podman container seems to stop this particular, err, feature.
Re: Unauthenticated remote code execution in OpenCode
#40hey maintainer here we've done a poor job handling these security reports, usage has grown rapidly and we're overwhelmed with issues we're meeting with some people this week to advise us on how to handle this better, get a bug bounty program funded and have some audits done
Why not just ask Claude to fix the security issues and make sure they don't happen again?