2019-01-14 03:17:36 +05:30
2019-01-14 03:14:14 +05:30
2018-12-30 03:07:15 +05:30
2019-01-13 18:37:38 +05:30
2018-12-30 15:43:58 +05:30
2019-01-14 03:17:36 +05:30
2018-12-30 03:05:36 +05:30
2019-01-14 02:18:53 +05:30
2018-12-30 03:23:10 +05:30


Bolt
Bolt

A dumb CSRF scanner

demo

Important

Bolt is in alpha phase of development which means it's full of bugs. Any production use of this tool discouraged. Pull requests and issues are welcome. I also suggest you to put this repo on watch if you are interested in it.

Workflow

Crawling

Bolt crawls the target website to the specified depth and stores all the HTML forms found in a database for further processing.

Evaluating

In this phase, these three things are checked:

  • Forms without CSRF protection
  • Weak tokens
  • Comparison of token with various hashes
Comparing

This phase focuses on detection on replay attack scenarios and hence checks if a token has been issued more than one time. It also calculates the average levenshtein distance between all the tokens to see if they are similar.

Observing

In this phase, 100 simultaneous requests are made to a single webpage to see if same tokens are generated for the requests.

Testing

This phase is dedicated to active testing of the CSRF protection mechanism. It performs the followings checks

  • Mobile CSRF protection test
  • Request without CSRF token parameter
  • Request without CSRF token parameter value
  • Request with a self generated token
Analysing

Various statistical checks are performed in this phase to see if the token is really random. Following tests are performed during this phase

  • Monobit test

Usage

Scanning a website for CSRF using Bolt is as easy as doing

python3 bolt.py -u https://github.com -l 2

Where -u is used to supply the URL and -l is used to specify the depth of crawling.

Other options and switches:

  • -t number of threads
  • --delay delay between requests
  • --timeout http request timeout
  • --headers supply http headers

Credits

Regular Expressions for detecting hashes are taken from hashID.

Description
No description provided
Readme GPL-3.0 111 KiB
Languages
Python 100%