Coder Social home page Coder Social logo

csrfprobe's Introduction

CSRF Probe

CSRF Probe is a advanced scanner for hunting down Cross Site Request Forgery bugs in web applications.

Working:

The typical flow of this scanner is :-

  • Spiders the target website to find all pages.
  • Finds all types of forms present on the each page.
  • Hunts out hidden as well as visible parameter values.
  • Submits each form with normal tokens & parameter values.
  • If multiple parameters are there, then it tests for each one keeping other values constant and this goes on recursively.
  • Generates random token strings and sets parameter values.
  • Submits each form with the crafted tokens.
  • Finds out if the tokens are sufficiently protected.
  • Generates custom proof of concepts after each successful bug hunt.

Features:

  • Features continuous crawling and scanning.
  • Support for both GET and POST requests.
  • Support for custom cookie values and generic headers.
  • Generates special crafted tokens for different parameters.
  • Submits forms in the normal way as well as with crafted token.
  • Rare chances of false positives occuring during scan.
  • Follows redirects when there is a 302 response.
  • Generates PoCs for both exploitable and not exploitable CSRFs.
  • Has a user-friendly interaction environment.
  • Everything is automated on demand.

Warnings:

Do not use this tool on a live site!

It is because this tool is designed to perform all kinds of form submissions automatically which can be dangerous to he site. Sometimes this may screw up website database and most probably perform a denial of service on the site as well.

Use on a disposable test site!

Drawbacks:

The scanner has the following drawbacks presently:

  • Normally the scanner assumes that every form has a hidden/visible parameter and token field.
  • Changing or removing that token field usually causes a 403 Forbidden response.
  • Spidering is restricted to domains of startpages (so doesn't work with all domains). :(

Requirements:

  • mechanize
  • requests
  • bs4
  • lxml
  • logging

Usage:

➲ Clone the script and launch it.

git clone https://github.com/the-Infected-Drake/CSRFProbe.git
cd CSRFProbe

➲ Install the dependencies.

pip install -r requirements

➲ Launch the script.

python csrfprobe.py

➲ Enter the website target.

https://examplesite.com

➲ Let the scanner load up.

➲ Keep track of PoCs which may appear (if bug exists).

➲ Report to owners if any bugs found... ; )

Version:

  • Latest release - v1.2.0

To Do's:

  • Associate multithreading for the better.

Thank you...

✎ @_tID (Team CodeSploit)

csrfprobe's People

Contributors

0xinfection avatar codecry123 avatar

Forkers

ooo777 nnneznaika

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.