Exploiting CORS misconfigurations // CORS bug bounty POC
Bhavin Patel
WHAT IS CORS?
Cross-Origin Resource Sharing(CORS) is a mechanism that enables web browsers to perform cross-domain requests using the XMLHttpRequest API in a controlled manner. These cross-origin requests have an Origin header, that identifies the domain initiating the request. It defines the protocol to use between a web browser and a server to determine whether a cross-origin request is allowed.
KEY CORS HEADERS: There are a number of HTTP headers related to CORS, but the following three response headers are the most important for security:
Access-Control-Allow-Origin specifies which domains can access a domain’s resources. For instance, if requester.com want to access provider.com’s resources, then developers can use this header to securely grant requester.com access to provider.com’s resources.
Access-Control-Allow-Credentials specifies whether or not the browser will send cookies with the request. Cookies will only be sent if the allow-credentials header is set to true.
Access-Control-Allow-Methods specifies which HTTP request methods (GET, PUT, DELETE, etc.) can be used to access resources. This header lets developers further enhance security by specifying what methods are valid when requester.com requests access to provider.com’s resources.
CORS is a powerful technology best used with care, and severe exploits don't always require specialist skills and convoluted exploit chains - often a basic understanding of a specification and a little attentiveness is all you need. In case you're running low on coffee, as of today Burp Suite's scanner will identify and report all the flaws discussed here.
Bug Bounty POC Playlist: https://www.youtube.com/playlist?list=PL8PnAf11sThUbrzFob-cb6NSCOR8sefxn
Any questions let me know. Thanks for stopping by and please don't forget to subscribe. Cheers
I hope you enjoy/enjoyed the video.
If you have any questions or suggestions feel free to ask them in the comments section or on my social media pages.
Thank you for checking out this video and my channel, sharing is caring so please share, comment, like and don't forget to subscribe 📱Social Media📱 & ❓Info❓
Follow me on the following platforms: YouTube Subscription Link: https://www.youtube.com/CyberBruhArmy?sub_confirmation=1
Facebook: https://www.facebook.com/groups/3504201579595093/?ref=share
Twitter: https://twitter.com/cyberbruharmy
Instagram: https://www.instagram.com/cyberbruharmy/
Discord: https://discord.com/invite/8Uz7ArN
All Vendor Firewall Demo Devices access - https://www.firewalldemo.com ... https://www.youtube.com/watch?v=Mf4lfcV7gl8
3795962 Bytes