TerriaJS / terriajs-server

NodeJS server for TerriaJS, consisting of a CORS proxy, proj4 CRS lookup service, ogr2ogr conversion service, and express static server.
Other
49 stars 40 forks source link

Investigate an alternative for `express-brute` #161

Open na9da opened 2 months ago

na9da commented 2 months ago

express-brute is now 8 years old, the version of its underscore dependency has a critical security warning. For now, we have put in place yarn resolution rules to force a safer version. However we could look for an alternative solution, some options include:

One thing to consider is some of the server config params share the same names as express-brute options. If we have to avoid a breaking change, then we have to manage that somehow.

pjonsson commented 2 months ago

I don't know anything about these libraries, but there is also a security issue with express-brute itself. I have no idea if node-rate-limiter-flexible fits the requirements of this project, but there is a guide for how to upgrade to it from express-brute: https://github.com/animir/node-rate-limiter-flexible/wiki/ExpressBrute-migration

na9da commented 2 months ago

That looks like a good alternative, thanks for the find.

pjonsson commented 2 months ago

I made a prototype migration in #162.