Bolt : Cross-Site Request Forgery Scanner

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.

Also Read : PRETty : “PRinter Exploitation Toolkit” LAN Automation Tool

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 mobile 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

Credit : hashID & highfestiva

R K

Recent Posts

Kali Linux 2024.4 Released, What’s New?

Kali Linux 2024.4, the final release of 2024, brings a wide range of updates and…

19 hours ago

Lifetime-Amsi-EtwPatch : Disabling PowerShell’s AMSI And ETW Protections

This Go program applies a lifetime patch to PowerShell to disable ETW (Event Tracing for…

19 hours ago

GPOHunter – Active Directory Group Policy Security Analyzer

GPOHunter is a comprehensive tool designed to analyze and identify security misconfigurations in Active Directory…

3 days ago

2024 MITRE ATT&CK Evaluation Results – Cynet Became a Leader With 100% Detection & Protection

Across small-to-medium enterprises (SMEs) and managed service providers (MSPs), the top priority for cybersecurity leaders…

5 days ago

SecHub : Streamlining Security Across Software Development Lifecycles

The free and open-source security platform SecHub, provides a central API to test software with…

1 week ago

Hawker : The Comprehensive OSINT Toolkit For Cybersecurity Professionals

Don't worry if there are any bugs in the tool, we will try to fix…

1 week ago