Coder Social home page Coder Social logo

businesslogicattackspoc's Introduction

Prevent business logic attacks using dynamic instrumentation

What is this?

This project's purpose is to illustrate the way application's business logic can be monitored and protected.

The concept was presented in the OWASP AppSec US 2018 talk Prevent business logic attacks using dynamic instrumentation.

This is a proof of concept for a server meant to monitor business event received from open source applications and is not meant to be used in production.

It allows to trigger a webhook if specific events reach a threshold over a period of time.

This can be configured in this way::

alerts:
 token_generation:
   threshold: 10
   slot: 300 # 5 minutes
 reset_password:
   threshold: 3
   slot: 60 # 1 minute
   
webhook: http://127.0.0.1:4567/alert_triggered/

Server

The local directory should contains config.yml.

The server can be run in this way::

cd server
bundle 
./main.rb /path/to/config.yml

The server will also manage to receive the alert's webhooks.

Client

The client library need to send data to the server following this format:

curl http://localhost:4567/event --data '{"ip": 1.2.3.4, "event_name": "my_event", "time": "2018-10-06 18:52:52 -0700"}'

An example Ruby class is provided in sdk/ruby/client.rb to be used either as a library, either as a standalone client.

Can I use this in production?

No. If you are looking for a production ready solution, take a look at Sqreen.

businesslogicattackspoc's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

aplater

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.