im gonna crash out
all the replies here seem to think that the React2Shell vuln was because of mixing client and server code
emergency video explaining the hack, how RSC works, and how other frameworks like Tanstack start and sveltekit differ
youtube.com/watch?v=kmlMNtjF…
At the risk of sticking my neck out during a bad time: I’m sick of seeing this photo
This is 100% server code, this isn’t a client side component that sends SQL to a server. You can’t add click handlers, state or hooks.
The code renders on the server an wires up a form action just like you’d do with PHP