Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Posible "abuso" API de Registro #77

Open
informaticaUNAHUR opened this issue Feb 15, 2021 · 0 comments
Open

Posible "abuso" API de Registro #77

informaticaUNAHUR opened this issue Feb 15, 2021 · 0 comments
Labels
backend bug Something isn't working

Comments

@informaticaUNAHUR
Copy link

informaticaUNAHUR commented Feb 15, 2021

🪲 Problema detectado

La API de Registro podría usarse desde agentes externos repetitivamente

📓 Acciones sugeridas

  • Evaluar mecanismos para evitar continuos registros automatizados
  • Ver por ejemplo control de request:
const rateLimit = require("express-rate-limit");

// Enable if you're behind a reverse proxy (Heroku, Bluemix, AWS ELB, Nginx, etc)
// see https://expressjs.com/en/guide/behind-proxies.html
// app.set('trust proxy', 1);

const limiter = rateLimit({
  windowMs: 15 * 60 * 1000, // 15 minutes
  max: 100 // limit each IP to 100 requests per windowMs
});

//  apply to all requests
app.use(limiter);
@informaticaUNAHUR informaticaUNAHUR added bug Something isn't working backend labels Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant