Proof of exploit for lusca#76
To view exploit:
npm start
- Visit http://127.0.0.1:8000. You'll see 'isSecure: true'.
- now, in another tab:
npm run exploit-server
- visit http://127.0.0.1:8080. Different port means different origin but feel free to add a hosts entry for absolute certainty. You'll be forwarded back to the original app but now you'll see
isSecure: false
. We just triggered an action on behalf of the user from another domain (which is precisely what csrf is intended to prevent against).