GitHub - profusion/react2shell: A server-side React app with a playground to test the React2Shell vulnerability

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

POC Exploit Instructions

To run the exploit demonstration:

  1. Start the development server in dev mode:
  1. Install form-data dependency (if not already installed):
  1. Run the exploit script:
  1. Open the Next terminal to see:
haha, im a hacker
POST / 200 in 98ms
  1. Edit the _prefix in script.js to change the executed script:
    '_prefix':'console.log("haha, i am a hacker")//',

Links

React2Shell

Credits to LachLan for the PoC script.