All Projects → s0md3v → Bolt

s0md3v / Bolt

Licence: gpl-3.0
CSRF Scanner

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Bolt

noire-server
Hapi Boilerplate
Stars: ✭ 20 (-92.65%)
Mutual labels:  csrf
csrf
PSR-15 middleware implementing CSRF protection
Stars: ✭ 20 (-92.65%)
Mutual labels:  csrf
Flag-Capture
Solutions and write-ups from security-based competitions also known as Capture The Flag competition
Stars: ✭ 84 (-69.12%)
Mutual labels:  csrf
next.js-boilerplate
next.js bolierplate, next.js 的开发模板
Stars: ✭ 28 (-89.71%)
Mutual labels:  csrf
koa-restful-boilerplate
A boilerplate for koa2 RESTful API development
Stars: ✭ 31 (-88.6%)
Mutual labels:  csrf
framework
A stylish PHP application framework crafted using Slim, Twig, Eloquent and Sentinel designed to get you from clone to production in a matter of minutes.
Stars: ✭ 56 (-79.41%)
Mutual labels:  csrf
Formidable
The PHP pragmatic forms library
Stars: ✭ 116 (-57.35%)
Mutual labels:  csrf
vulnerabilities
List of every possible vulnerabilities in computer security.
Stars: ✭ 14 (-94.85%)
Mutual labels:  csrf
ring-anti-forgery
Ring middleware to prevent CSRF attacks
Stars: ✭ 115 (-57.72%)
Mutual labels:  csrf
spring-security-jwt-csrf
A demonstration of stateless JWT authentication with Spring Security, Spring Boot and Vue js
Stars: ✭ 62 (-77.21%)
Mutual labels:  csrf
www-project-csrfguard
The aim of this project is to protect Java applications against CSRF attacks with the use of Synchronizer Tokens
Stars: ✭ 43 (-84.19%)
Mutual labels:  csrf
okta-spring-boot-react-crud-example
Simple CRUD with React and Spring Boot 2.0
Stars: ✭ 214 (-21.32%)
Mutual labels:  csrf
security-wrapper
对springSecurity进行二次开发,提供OAuth2授权(支持跨域名,多应用授权)、JWT、SSO、文件上传、权限系统无障碍接入、接口防刷、XSS、CSRF、SQL注入、三方登录(绑定,解绑)、加密通信等一系列安全场景的解决方案
Stars: ✭ 21 (-92.28%)
Mutual labels:  csrf
Slim-Auth
A Slim 4 Skeleton.
Stars: ✭ 22 (-91.91%)
Mutual labels:  csrf
SecExample
JAVA 漏洞靶场 (Vulnerability Environment For Java)
Stars: ✭ 228 (-16.18%)
Mutual labels:  csrf
asgi-csrf
ASGI middleware for protecting against CSRF attacks
Stars: ✭ 43 (-84.19%)
Mutual labels:  csrf
diwa
A Deliberately Insecure Web Application
Stars: ✭ 32 (-88.24%)
Mutual labels:  csrf
csrf-login
Login from command line to the websites that use CSRF protection
Stars: ✭ 18 (-93.38%)
Mutual labels:  csrf
php-csrf
Single PHP library file for protection over Cross-Site Request Forgery
Stars: ✭ 44 (-83.82%)
Mutual labels:  csrf
JAW
JAW: A Graph-based Security Analysis Framework for JavaScript and Client-side CSRF
Stars: ✭ 26 (-90.44%)
Mutual labels:  csrf


Bolt
Bolt

A dumb CSRF scanner

demo

Important

Bolt is in beta phase of development which means there can be 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, Bolt finds out the tokens which aren't strong enough and the forms which aren't protected.

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.
Tokens are also compared against a database of 250+ hash patterns.

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 includes but not limited to checking if protection exsists for moblie browsers, submitting requests with self-generated token and testing if token is being checked to a certain length.

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 frequency test
  • Block frequency test
  • Runs test
  • Spectral test
  • Non-overlapping template matching test
  • Overlapping template matching test
  • Serial test
  • Cumultative sums test
  • Aproximate entropy test
  • Random excursions variant test
  • Linear complexity test
  • Longest runs test
  • Maurers universal statistic test
  • Random excursions 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.
Bit level entropy tests are taken from highfestiva's python implementation of statistical tests.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].