5 ms·
The endpoint is not whatever the client asks for. It's marked specifically as exposed to the user with "use server". Of course the people who designed this reco
by sophiebits 10mo ago
The endpoint is not whatever the client asks for. It's marked specifically as exposed to the user with "use server". Of course the people who designed this recognize that this is designing an RPC system.
A similar bug could be introduced in the implementation of other RPC systems too. It's not entirely specific to this design.
(I contribute to React but not really on RSC.)
- brown9-2 10mo agoso any package could declare some modules as “use server” and they’d be callable, whether the RSC server owner wanted them to or not? That seems less than ideal.
- cluckindan 10mo agoThe vulnerability exists in the transport mechanism in affected versions. Default installs without custom code are also vulnerable even if they do not use any server components / server functions.
- cluckindan 10mo ago”use server” is not required for this vulnerability to be exploitable.
- sysguest 10mo agowait I'm only using React for SPA (no server rendering) am I also vulnerable??????
- cluckindan 10mo agoOnly if you are running a vulnerable version of Next.js server.
- __jonas 10mo agoNo, unless you run the React Server Component runtime on your server, which you wouldn't do with a SPA, you would just serve a static bundle.