etherpad-lite/src/node/hooks/express
Richard Hansen b80a37173e security: Fix authorization bypass vulnerability
Before, a malicious user could bypass authorization restrictions
imposed by the authorize hook:

 * Step 1: Fetch any resource that the malicious user is authorized to
   access (e.g., static content).
 * Step 2: Use the signed express_sid cookie generated in step 1 to
   create a socket.io connection.
 * Step 3: Perform the CLIENT_READY handshake for the desired pad.
 * Step 4: Profit!

Now the authorization decision made by the authorize hook is
propagated to SecurityManager so that it can approve or reject
socket.io messages as appropriate.

This also sets up future support for per-user read-only and
modify-only (no create) authorization levels.
2020-09-15 21:40:25 +01:00
..
admin.js redirect /admin properly (fix #3114) 2017-01-06 18:19:38 +01:00
adminplugins.js plugins: Move plugin definitions to avoid monkey patching 2020-09-08 00:50:24 +01:00
adminsettings.js feat(i18n) Custom i18n strings (#4000) 2020-05-19 13:21:31 +01:00
apicalls.js openapi: upgrade to openapi-backend 2.4.0 2020-04-03 01:03:11 +02:00
errorhandling.js errorhandling.js: use promise db.doShutdown interface 2019-01-31 11:14:27 +00:00
importexport.js security: Check authentication in SecurityManager checkAccess 2020-09-15 10:43:23 +01:00
isValidJSONPName.js Added a jsonp var checker 2018-03-23 11:17:39 +00:00
openapi.js bugfix: #4067 openapi incorrect syntax (#4138) 2020-06-27 09:47:16 +01:00
padreadonly.js express/padreadonly.js: missing "let" 2019-03-27 18:29:12 +01:00
padurlsanitize.js padurlsanitize.js: invert a condition prior to refactoring 2019-02-09 00:05:21 +01:00
socketio.js tests: Add authentication, authorization bypass tests 2020-09-15 20:03:30 +01:00
specialpages.js Fix typo in comment (#4154) 2020-07-09 12:32:54 +01:00
static.js plugins: Move plugin definitions to avoid monkey patching 2020-09-08 00:50:24 +01:00
tests.js Bugfix / tests: Specs list type (#4169) 2020-07-15 17:37:03 +01:00
webaccess.js security: Fix authorization bypass vulnerability 2020-09-15 21:40:25 +01:00