Giter Site home page Giter Site logo

additional_cors_checks's Introduction

Burp Extension: CORS* - Additional CORS Checks

Description

This extension can be used to test websites for CORS misconfigurations. It can spot trivial misconfigurations like arbitrary origin reflection, but also more sublte ones where a regex is not properly configured (e.g. www.victim.com.attacker.com). An issue is created if a dangeours origin is reflected. If Access-Control-Allow-Credentials: true is also set, the issue is rated high, otherwise low. Finally, the user has to decide whether the reflected Origin is intended (e.g. CDN) or whether it is a security issue.

Features

CORS* - Additional CORS Checks can be run in either automatic or manual mode.

Automatic

  • In the CORS* tab, the extension can be activated.
  • If activated, the extension will test CORS misconfigurations for each proxy request by sending multiple requests with different origins.
  • There are options to only endable it for in-scope items and to exclude requests with certain file extensions.
  • The URL for CORS Request is used to test for arbitrary reflection and as prefix/suffix in testing regex misconfigurations.

Arbitrary origin reflected

  • If a potential misconfiguration is discovered, the request is highlighted in red (see request #3 above).
  • The request here does reflect the null origin and has Access-Control-Allow-Credentials: true set.

Null origin reflected

  • If an issue is detected, it is also reported in the Target and Dashboard tabs.

Issue

Manual

  • Requests can be added to CORS* using the extension menu.

Add to cors*

  • The requests to test for CORS misconfiguration can then be sent using the Send CORS requests for selected entry button.

Send requests

Installation

Manual Installation

Start Burp and navigate to the Extender tab, Extensions, Add. Choose the CORS* - Additional_CORS_Checks JAR file to install the extension.

Installation from BApp Store

The easy way to install CORS* - Additional CORS Checks is using the BApp Store. Open Burp and navigate to the Extender tab, then to the BApp Store tab. Select CORS* and hit the Install button to install the extension.

Author

Credits

Thanks to https://github.com/chenjj/CORScanner for the inspiration and https://github.com/portswigger/bookmarks for the Burp template.

additional_cors_checks's People

Contributors

ybieri avatar

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.