by: Davide Danelon, Founder & CEO [Twitter,Linkedin] date: 28/08/2018 - Updated on 22/10/2024

The guide attached to this article aims to collect all the techniques, from the basics to the advanced ones, to attack and protect Cross-Origin Resource Sharing (CORS).

What’s new?

In the last update (version 1.1), published on January 2020, two new technique to exploit CORS misconfiguration have been added:

  • Using insecure protocol
  • Using the browser cache

Another update concerned the special chars supported by the main browsers.

Some minor updates and typo corrections close the list of changes.

Who should read this guide?

This guide is directed to a large audience: web administrators, developers, penetration testers, bug bounty hunters, and more in general to security professionals.

Inside this guide the reader will find:

  • A brief introduction to the Same Origin Policy and Cross-Origin Resource Sharing (CORS)
  • Main techniques, from basic to advanced ones, to attack an application with CORS enabled
  • General guidelines to implement CORS securely

Be sure to develop secure apps. BeDefended.

Thanks for reading.