rate limiting (in meteor core)

10
Rate limiting in Meteor Core

Upload: fabian-kromer

Post on 14-Apr-2017

290 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Rate Limiting (in Meteor Core)

Rate limitingin Meteor Core

Page 2: Rate Limiting (in Meteor Core)
Page 3: Rate Limiting (in Meteor Core)

DoS Schutz

Page 4: Rate Limiting (in Meteor Core)

The Meteor Core Way

meteor add ddp-rate-limiter

http://info.meteor.com/blog/rate-limiting-in-meteor-core

Page 5: Rate Limiting (in Meteor Core)

Subscriptions

for (var subscription in Meteor.default_server.publish_handlers){ DDPRateLimiter.addRule({ type: 'subscription', name: subscription }, 5, 1000);}

Page 6: Rate Limiting (in Meteor Core)

Methods

for (var method in Meteor.default_server.method_handlers){ DDPRateLimiter.addRule({ type: 'method', name: method }, 5, 1000);}

Page 7: Rate Limiting (in Meteor Core)

What about Meteor internals (login,..)?

for (var method in Meteor.default_server.method_handlers){if(method.substring(0,1)!="/" && method != "login"){

...}

}

Page 8: Rate Limiting (in Meteor Core)

Meteor DoS Attack with 3 Lines of Code

for (var x=0;x<99999999;x++){Meteor.subscribe("publicLists");

}

Page 9: Rate Limiting (in Meteor Core)
Page 10: Rate Limiting (in Meteor Core)

Thanks… and stay safe :)

faburem Fabian Kromer @faburem