Cross-Origin Resource Sharing (CORS) | Complete Guide

  Рет қаралды 66,440

Rana Khalil

Rana Khalil

Күн бұрын

In this video, we cover the theory behind Cross-Origin Resource Sharing (CORS) vulnerabilities, how to find these types of vulnerabilities from both a white box and black box perspective, how to exploit them and how to prevent them.
▬ ✨ Support Me ✨ ▬▬▬▬▬▬▬▬▬▬
Buy my course: bit.ly/30LWAtE
▬ 📖 Contents of this video 📖 ▬▬▬▬▬▬▬▬▬▬
00:00 - Introduction
00:31 - Web Security Academy Course (bit.ly/30LWAtE)
01:42 - Agenda
02:30 - What is a CORS vulnerability?
33:35 - How to find CORS vulnerabilities?
42:37 - How to exploit CORS vulnerabilities?
50:25 - How to prevent CORS vulnerabilities?
51:47 - Resources
52:00 - Thank You
▬ 🔗 Links 🔗 ▬▬▬▬▬▬▬▬▬▬
Video slides: github.com/rkhal101/Web-Secur...
Web Security Academy: portswigger.net/web-security/...
Rana's Twitter account: / rana__khalil
Hacker Icons made by Freepik: www.freepik.com

Пікірлер: 78
@RanaKhalil101
@RanaKhalil101 2 жыл бұрын
Don't want to wait for the weekly release schedule to gain access to all the videos and want to be added to a discord server where you can ask questions? Make sure to sign up to my course: bit.ly/30LWAtE ✨✨
@Shintowel
@Shintowel Жыл бұрын
Love u
@akr2dev
@akr2dev Жыл бұрын
Is your course available as one time purchase? Or I have to renew each month to keep access
@RanaKhalil101
@RanaKhalil101 Жыл бұрын
@@akr2dev One time purchase
@akr2dev
@akr2dev Жыл бұрын
@@RanaKhalil101 I was looking for a course that covers CORS. I think I am so lucky to find your course It will take me to a whole another level :) Thank you ~
@klliiyougg6666
@klliiyougg6666 11 ай бұрын
Why you speak englih why
@CookingCooking77
@CookingCooking77 2 ай бұрын
You explain in the exact way a beginner would liked to be explained !
@rohanadhvaryu
@rohanadhvaryu 2 жыл бұрын
This is the best ever explaination I have seen on an internet for the CORS topic, what an explaination!! Each and every details are covered here to understand it deeply and properly in a very easy language. I really appreciate. Thank you and and please keep it up. 🙂❤🙌
@rahulaga
@rahulaga 3 ай бұрын
totally agree on clarity of explanation !!
@VladislavSnegurov
@VladislavSnegurov Жыл бұрын
I had so many confusion with Same-Origin-Policy and CORS, you made it clear for me once and forever. The most brilliant part of your lecture is that you provide real step-by-step case of attacking and exploiting vulnerability. Most explanations in Internet are just few general statements that produce more questions than answers. Thank you!
@faique2995
@faique2995 2 жыл бұрын
You are among the best teacher I have ever met in my life ♥️
@Thomas_Grusz
@Thomas_Grusz 9 ай бұрын
This is the best explanation of CORS and SOP I have come accross so far. Thank you!
@mr.agoristgoldstein9109
@mr.agoristgoldstein9109 Жыл бұрын
Signed up for Academy! Man what a deal….I am very grateful for your content. Thank you 🙏🏻
@bhaskarvaka3931
@bhaskarvaka3931 Жыл бұрын
Wow ! The best video on CORS. This helps me to work on the solution for the issue identified in my application. Thank you so much!
@hebafarahat
@hebafarahat Жыл бұрын
I love how you always simplify things. You are amazing! keep it up Rana 🔥💪
@squarebyte9846
@squarebyte9846 2 жыл бұрын
Great video! This makes CORS so easy to understand :D
@danmcgirr4210
@danmcgirr4210 2 жыл бұрын
You are amazing! Thanks for sharing so much knowledge. I've just found your academy through your Twitter. I'm looking forward to joining and training under your guidance. All the best!
@0x_Eslam
@0x_Eslam 21 күн бұрын
Love u sis❤ i hope u will be in jannah inshallah❤❤
@jmukarram
@jmukarram 2 жыл бұрын
Very informative video. Thanks for sharing your knowledge and skill.
@kutra100
@kutra100 8 ай бұрын
Excellent. Made it easy to understand and grasp. Thank you !
@pascalerb5572
@pascalerb5572 Жыл бұрын
Real good video! Thanks for this awesome work!
@211986abhi
@211986abhi Жыл бұрын
Wow 👌 beautifully explained. Your work is amazing. Totally impressed.
@TomAinsworth94
@TomAinsworth94 Жыл бұрын
Thanks a lot for the video Rana, it’s super helpful!
@vicmann87
@vicmann87 2 ай бұрын
This video has the best explanation that I've ever seen about this topic
@korean6525
@korean6525 2 жыл бұрын
Wonderful explanation!
@dor1313
@dor1313 Жыл бұрын
Wow ! such a great explanation ! like & subscribed!
@ankurarora1606
@ankurarora1606 2 жыл бұрын
Love your way of teaching
@MereAYT
@MereAYT Ай бұрын
This is really good and I am saving it ot watch a few times until it all clicks. Thanks!
@abdallahazme4757
@abdallahazme4757 2 ай бұрын
For a full stack developer like me this was super super useful, SO MANY THANKS.
@sp1460
@sp1460 Жыл бұрын
Your teaching skills are great. Thanks. Hope you make more videos on various topics.
@jc_alpha
@jc_alpha Жыл бұрын
Perfect explanation. Thank you!
@vishalsharma-nx2fq
@vishalsharma-nx2fq Жыл бұрын
Excellent video what a detailed explanation... Kudos to you
@marclemessy2063
@marclemessy2063 Жыл бұрын
thank you very much for your explanation, you were very clear. Keep it up
@youssef_emad19
@youssef_emad19 Жыл бұрын
You are my role model in this field
@RafaelFoschiani
@RafaelFoschiani 7 ай бұрын
Come here because i was having some issues with AWS Cloudfront/S3 CORS configuration, and find out a lot of vulnerabilties in the existing confgs LMAO. Thank you so much!
@gauravkelkar4273
@gauravkelkar4273 Жыл бұрын
Amazing explanation!!
@user-lq3xl5xd5j
@user-lq3xl5xd5j 5 ай бұрын
This is the best explanation of CORS and SOP I Thank you, even your language it's easy to consider again thank you
@ChillTamizha
@ChillTamizha 9 ай бұрын
Nice video thanks for the resources that were shared in this video 👏
@jogadornumerozero3257
@jogadornumerozero3257 Жыл бұрын
This channel is awesome, thank u soo much
@cheolwang4389
@cheolwang4389 Жыл бұрын
great job. love it!
@mahalingappabirajdar5285
@mahalingappabirajdar5285 Жыл бұрын
Great Explanation!!!!!!!
@shaifsec
@shaifsec Ай бұрын
This is awesome contenet about CORS.
@titanicsinclair1577
@titanicsinclair1577 2 жыл бұрын
finally new series is back after some time!
@Ayushnigam806
@Ayushnigam806 5 ай бұрын
You Just Nailed it , Ma'am
@timecop1983Two
@timecop1983Two 6 ай бұрын
You are the best web HACKER I know!!! Keep up you're amazing content. I could not find Cross-Origin Resource Sharing on youtube but then I remeber you were in a david bombal show. So, keep it up... 👍👌✌
@acronproject
@acronproject Жыл бұрын
Thanks Ms.Khalil
@jzbainabsbsosmsidnidnsi2647
@jzbainabsbsosmsidnidnsi2647 11 ай бұрын
Thanks Rhana. You are the best🎉
@burhanshah5855
@burhanshah5855 Жыл бұрын
Absolutely fantastic Rana
@JuanBotes
@JuanBotes 2 жыл бұрын
thanks for making great content \o/
@petebarnard123
@petebarnard123 Жыл бұрын
Brilliant explanation. thanks
@mrkewi1
@mrkewi1 Жыл бұрын
you're awesome. please don't stop
@ram-gb4xg
@ram-gb4xg Жыл бұрын
Amazing!
@JorgeRivera-rp1zw
@JorgeRivera-rp1zw Жыл бұрын
Hi, Dear Rana . Many thanks to share your video with us..? Succeds..!
@sabuein
@sabuein 10 ай бұрын
Thank you.
@tomkatrio182
@tomkatrio182 Жыл бұрын
so helpful thanks
@sksalman6359
@sksalman6359 2 жыл бұрын
Thanks Rana Khalil 🥰🥰
@ArindamKashyap-qk1ps
@ArindamKashyap-qk1ps Жыл бұрын
Thanks a lot Rana. All my confusion are gone now. Thank you very much. Could you please make a video on Road to CEH Master, I'm thinking of taking the Elite package from EC council. I know you have cleared the OSCP and saw you video on David Bombal's channel. I got to know your videos from Portswigger's community solution. [ optional: you could make for the CEH Master one by collaborating with someone also].
@QuranKareem22
@QuranKareem22 6 ай бұрын
thansk❤
@swamimzaman7058
@swamimzaman7058 2 жыл бұрын
Please make the other videos available 🙏
@microsoft14.
@microsoft14. Жыл бұрын
God bless you 🙏
@kokn3t
@kokn3t Жыл бұрын
Is it possible to exploit in "Authorization Bearer" JWT base web applications?
@leonardofibonacci6574
@leonardofibonacci6574 11 ай бұрын
Good stuff here. What about JSONP for cross origin resource sharing? Is it a valid alternative to CORS? Are there security problems with JSONP?
@klalafudaklalafu
@klalafudaklalafu 5 ай бұрын
How it possible for script from another tab (21:25) to access bank's tab's cookies to make requests on bank site?
@boobalandharani4848
@boobalandharani4848 Жыл бұрын
i need clarification . i changed the request header(CORS) origin url name( POST and GET method) and it get reflected in response. it will consider as defect or not .
@jenks2897
@jenks2897 2 жыл бұрын
What if I don't what to access or change any data just want to click a button on website A which then clicks or simulate a click on website B and execute a function, does this falls under CORS ? If not any suggestion on how this can be done?
@fathallahilyes529
@fathallahilyes529 7 ай бұрын
what mean access control allow origin header to null pls ?
@AnujSharma-yv6gy
@AnujSharma-yv6gy 2 жыл бұрын
at 36:44, it is said that if there aren't any CORS headers being used by the application, it can be due to the application making use of dynamic generation. Later at 37:33, we check if the value in the origin header is being reflected in ACAO CORS header. So basically we're finding flaws in dynamic generation by making use of what's being reflected in CORS' ACAO header. Aren't both these statements contradictory? If there are no CORS headers and the reason is dynamic generation then how can we test for dynamic generation using CORS headers?
@AnujSharma-yv6gy
@AnujSharma-yv6gy 2 жыл бұрын
@Elijah Rodgers but since it isn't CORS header, wasn't it there anyways? We need ACAO header in response to test which is one of the two CORS headers.
@tiago7w_583
@tiago7w_583 2 жыл бұрын
Top
@hatemabushaala2487
@hatemabushaala2487 7 ай бұрын
👏
@deepamsinha3933
@deepamsinha3933 3 ай бұрын
I have one doubt regarding this.Suppose domain A wants domain B to access its resources, so it whitelists it. Another domain C knows that B is whitelisted. Now, domain C sends a request and specifies Origin equal to domain B, so will it be able to access the resources on A? If yes, then is it so easy to spoof origin and just access resources on a different domain?
@blackhatanonymous3687
@blackhatanonymous3687 2 жыл бұрын
why other videos are hidden of csrf? This is due to schedule or will be hidden for all time?
@ranjeetyaduvanshi6089
@ranjeetyaduvanshi6089 2 жыл бұрын
can you make some videos that match with industry requirements sometimes I'm get stuck in doing stuff well I'm Network Security Analyst i wants to learn more something new to add in my skilll
@jayak3768
@jayak3768 2 жыл бұрын
I love cats. As long as my bank account is safe.
@saurabhjha8733
@saurabhjha8733 5 ай бұрын
Ninja Hattori
@Ethical_Hacker216
@Ethical_Hacker216 8 ай бұрын
This vulnerability important ?! The issue you’ve described is related to Cross-Origin Resource Sharing (CORS) misconfiguration. CORS is a security feature implemented by web browsers to control which web domains can access resources on a given domain. In this case, the application has a CORS policy that allows access from any domain (Access-Control-Allow-Origin: *), which is considered overly permissive and poses a security risk.
@katebanez7918
@katebanez7918 Жыл бұрын
I am the 404th like, but it's not found ;)
@pauraspatil9314
@pauraspatil9314 2 жыл бұрын
Nicely Explained !
Broken Access Control | Complete Guide
39:33
Rana Khalil
Рет қаралды 43 М.
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 98 МЛН
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 56 МЛН
Incredible magic 🤯✨
00:53
America's Got Talent
Рет қаралды 71 МЛН
Server-Side Request Forgery (SSRF) | Complete Guide
47:04
Rana Khalil
Рет қаралды 64 М.
Cross Origin Resource Sharing (Explained by Example)
23:15
Hussein Nasser
Рет қаралды 154 М.
The Same Origin Policy - Hacker History
12:19
LiveOverflow
Рет қаралды 106 М.
Что такое CORS и зачем он нужен? По простому
8:15
Мир IT с Антоном Павленко
Рет қаралды 59 М.
What is CORS?
13:22
A shot of code
Рет қаралды 63 М.
Cross-Site Request Forgery (CSRF) | Complete Guide
48:11
Rana Khalil
Рет қаралды 87 М.
Authentication Vulnerabilities | Complete Guide
31:03
Rana Khalil
Рет қаралды 14 М.
Same-origin policy: The core of web security @ OWASP Wellington
1:04:43
Battery  low 🔋 🪫
0:10
dednahype
Рет қаралды 2,3 МЛН
Первый обзор Galaxy Z Fold 6
12:23
Rozetked
Рет қаралды 438 М.
Сколько реально стоит ПК Величайшего?
0:37
Зачем ЭТО электрику? #секрет #прибор #энерголикбез
0:56
Александр Мальков
Рет қаралды 219 М.