Ethical Hacking in 100 Seconds // And why do we need CORS?

Поділитися
Вставка
  • Опубліковано 2 лис 2024

КОМЕНТАРІ • 255

  • @marcroberts5251
    @marcroberts5251 2 роки тому +65

    It's not much, but will continue to support your page. Your teaching is a breath of fresh air in a very stale curriculum.

  • @PandaTheGFX
    @PandaTheGFX 3 роки тому +370

    I don't know if I'm just used to your rhythm of teaching, but this guy's teaching makes me want to open reddit and doomscroll while kinda listening

    • @Venom-ne4ox
      @Venom-ne4ox 3 роки тому +16

      2x speed or more solves your problem

    • @dashamm98
      @dashamm98 2 роки тому +2

      I love r/collapse also

  • @Evoleo
    @Evoleo 3 роки тому +120

    At this point these are never 100s, but it's still high-quality videos with no BS, so I'm not complaining

    • @dom8429
      @dom8429 3 роки тому +9

      i mean there is a break after 100s so you get the best of both worlds: if you prefer 100s videos you can close the video there, or keep watching if you want. and fireship gets to upload 10min+ videos which helps with the youtube algorithm, which is a bonus for the channel.

    • @Evoleo
      @Evoleo 3 роки тому +2

      @@dom8429 nah, even the short ones are 2min +

  • @DanishShakeel
    @DanishShakeel 3 роки тому +210

    Next video: Writing good code, or OTP vulnerabilities.

    • @nameless_9504
      @nameless_9504 3 роки тому

      It's simple A brute force attack or found of apikeys to there sms provider nothing much

    • @DanishShakeel
      @DanishShakeel 3 роки тому +1

      @@nameless_9504 Bruteforcing a 6 digit OTP, I doubt it is a good idea. Talking about master OTPs, intercepting requests, are better alternatives.

    • @DanishShakeel
      @DanishShakeel 3 роки тому +3

      @@nameless_9504 I mean, I have been doing it for a while. I like Fireship so much that I want a video on this. A few days back, I was testing a website - you could literally change the phone number on which they sent you the OTP and login with a different phone.

    • @nameless_9504
      @nameless_9504 3 роки тому

      @@DanishShakeel is it even possible? Never heard about it! Give me a example that may help me understand

    • @DanishShakeel
      @DanishShakeel 3 роки тому +1

      @@nameless_9504 The website used an API, and they POSTed the number to it in plaintext. I changed the request, and the OTP arrived on the updated number, whereas the webapp logged me in with the actual phone number.

  • @MM-vr8rj
    @MM-vr8rj 3 роки тому +44

    Holy shit you are literally covering every single corner of IT and all those subjects I learned at school as well.

  • @erniea5843
    @erniea5843 3 роки тому +24

    This channel consistently provides awesome and educational content balanced with good entertainment. Keep up the great work

  • @dylankendrick27
    @dylankendrick27 3 роки тому +9

    You make my favorite videos - the perfect TL;DR + details

  • @saswotlamichhane5862
    @saswotlamichhane5862 3 роки тому +30

    *My website recently got hacked, but it was so badly coded the hackers ended up giving me the fix to those vulnerabilities, Bad code can help sometimes.*

  • @edisonarango
    @edisonarango 2 роки тому +15

    Well, CORS might seem to protect websites from requests of evil origins, but it's super weak, it can be bypassed easily by making requests outside of browsers or just by creating a Proxy, besides, the requests always hit the server, so in the end it's not really that helpful, and instead, it always annoys developers on every single project.

    • @Norsilca
      @Norsilca 10 місяців тому

      What kind of proxy are you talking about? A proxy running on the user's machine next to the browser? That's a lot harder to do than getting some javascript running in someone's browser.

    • @edisonarango
      @edisonarango 10 місяців тому +1

      @@Norsilca No, a server proxy, you can easlily get the response from server to server and then return it with the CORS headers.

    • @Norsilca
      @Norsilca 10 місяців тому

      @@edisonarango Wouldn't your proxy have to be running at the same origin as the first party website?

    • @wadexyz
      @wadexyz 10 місяців тому

      @@Norsilcai don't think that guy has a clue what he's talking about based on his response. either that, or he's a genius and we're both baffled.

  • @jugertmucoimaj9017
    @jugertmucoimaj9017 2 роки тому

    This 11 min video taught me what stckoverflow and other complicated explaining never taught me!!!

  • @poglord._
    @poglord._ 3 роки тому +2

    This is one of the best videos on ethical hacking

  • @sheepy0125
    @sheepy0125 3 роки тому +103

    this doesn't seem like 100 seconds, but i'm watching all of it anyways

    • @idemchenko-js
      @idemchenko-js 3 роки тому +5

      @fireship used to publish literally 100 sec videous without going deep into the topic. These days, the first part is 100 sec bird-eye view on the topic and then comes the rest. That's why it is 100 sec of sth.

  • @bhbblblblllb
    @bhbblblblllb 3 роки тому +3

    'And why do we need CORS?'
    Should be 'What is CORS?'

  • @shootnado
    @shootnado 3 роки тому

    Omg after 2 years of confusion somebody finally explains sop properly

  • @fpspsyduck
    @fpspsyduck 3 роки тому +14

    Love this channel!!

  • @Diamonddrake
    @Diamonddrake 3 роки тому +6

    Cors only applies to JSON and is enforced by the Client. It hardly prevents cross site scripting. The requests go through fine, you just can’t read the results.

    • @niton6474
      @niton6474 2 роки тому +5

      I dont understand what CORS is even usefull for. He only explained what it blocks and not WHY. I dont see the benefit - i am searching for this and the title suggests that he explains it

    • @udaykumarmettu
      @udaykumarmettu Рік тому

      Lol please i am dying to know

  • @DK-ox7ze
    @DK-ox7ze 3 роки тому +7

    Great content like always.
    Can you do a video on designing backend apis with a focus on creating the right endpoints (from a front-end engineer's perspective)?

  • @realgoogleuser
    @realgoogleuser 3 роки тому +2

    100 Seconds of XML is much needed

    • @Zolodar
      @Zolodar 7 місяців тому

      Are you a time traveling developer from 1995?

  • @DevOpsBoss
    @DevOpsBoss 2 роки тому

    Being featured in Jeff's video is the ultimate accolade a content creator can earn - so jealous of Bartosz 😍

  • @sarcasticdna
    @sarcasticdna 3 роки тому +15

    Notification Squad, attendance here, with a 👍.

  • @wiri2391
    @wiri2391 2 роки тому

    I agree with the others, your voice, pacing and structure are just ..“easily enjoyable“, which is highlighted in contrast to the other guy.

  • @JR-um3kt
    @JR-um3kt 3 роки тому +4

    First
    Edit: Second Gold
    Is there any reward after 10?
    Love your videos!

    • @sadhlife
      @sadhlife 3 роки тому

      yup

    • @sadhlife
      @sadhlife 3 роки тому

      congratulations you won... idk what

    • @Fireship
      @Fireship  3 роки тому +3

      Gold! 🥇

  • @IshanKBG
    @IshanKBG 3 роки тому

    We needed this
    You are my inspiration
    I have decided to open my own programming youtube channel like you but in my own regional language

  • @okie9025
    @okie9025 3 роки тому +18

    Do JWT authentication next if you haven't already (access tokens, refresh tokens, etc.)

    • @weshuiz1325
      @weshuiz1325 3 роки тому

      Learn to google before you ask

    • @okie9025
      @okie9025 3 роки тому +6

      @@weshuiz1325 I could learn anything using Google, you're missing the point entirely lol

    • @weshuiz1325
      @weshuiz1325 3 роки тому +1

      @@okie9025 hey already did jwt if you looked for it

    • @crycetruly
      @crycetruly 3 роки тому

      @@weshuiz1325 😂😂😂😂😂😂😂😂😂😂😂😂😂😂

  • @husler7424
    @husler7424 3 роки тому +1

    Really mind boggling explanation, thank you very much, i would like to see more videos like this.

  • @anouar-fadili
    @anouar-fadili 3 роки тому +1

    Thanks, I have no luck... This video was uploaded after my interview... So yeah 🙃

  • @yark618
    @yark618 3 роки тому +1

    Your videos are pure gold. Thank you.

  • @nickvelos9571
    @nickvelos9571 3 роки тому

    Please make 100 second & beyond videos for social media APIs like Instagram Twitter UA-cam Facebook tiktok etc

  • @AhmadBarghouthi
    @AhmadBarghouthi 3 роки тому

    You suouldnt be thanking for watching dude
    We who have to thank you for amazing materials

  • @DEVDerr
    @DEVDerr 3 роки тому +16

    You can simply pronounce "Bartosz" as "Bartosh" 😁
    Good video as always!

  • @ashuzon
    @ashuzon 3 роки тому +1

    This video is? I mean if you know fetch, js, some online wordlists and how to press F12, you don't need to step out of your browser to do all penetration tests. F12 in browser is OP. Every aspect can be checked via developer tools, the networking, request/response, data manipulation, js manipulation and many more.

  • @Michael-Martell
    @Michael-Martell 2 роки тому

    Honestly If my web security doesn’t have a Slavic accent idk if I could fully trust him/her. This guy really knows his target market.

  • @Minecodes
    @Minecodes 3 роки тому +1

    I am learning this already and i found one problem on reddit, i found it when i was trying to use a normal user as a bot. I already reported it.

  • @kevinbasence1147
    @kevinbasence1147 3 роки тому

    As always, quality and informative videos!

  • @sefterm-zade9744
    @sefterm-zade9744 3 роки тому

    I wish I had teacher like you. thanks man😍😍😍

  • @manishgarhwal7119
    @manishgarhwal7119 3 роки тому

    You wouldn't believe it, But this tool is what I was trying to figure out yesterday and today, so that I can check CCAvenue Payment Gateway Integration vulnerability in my app.
    🙏🙏🙏

  • @13hdni37
    @13hdni37 3 роки тому

    This channel was made in heaven

  • @moon911x
    @moon911x 2 роки тому

    Me after 3 years of hacking journey when first see the title (Ethical Hacking in 100 Seconds) :)

  • @gerolmed
    @gerolmed 3 роки тому +2

    I still dont quite get what this prevents.
    If i make a page i wont add in any requests to servers I dont want them to go. An attacker couldn't modify my page or inject any api calls. So why would I want a cors policy to be not widely open in that case

  • @letsbuildseries
    @letsbuildseries 3 роки тому

    When you're ready to lean how to do Smart Contracts? I've been writing a Truffle tutorial on how to use react and MetaMask.

  • @akashdeepnandi
    @akashdeepnandi 3 роки тому +4

    Off topic, was wondering if you can provide some insight to this question or anyone for that matter. I'm a javascript developer, love doing frontend development with react progressing towards fullstack but I'm a bit confused about what after fullstack? What are some viable career paths to choose, I'm open to branching out to other fields in relevance, I am learner and love to see my limits(Also interested in security but found my niche in web development due to low entry barrier)
    Feedbacks are much appreciated.

  • @soniablanche5672
    @soniablanche5672 2 роки тому

    You can also load an external image to but you won't be able to modify it

  • @kristiandaugaard7495
    @kristiandaugaard7495 3 роки тому +1

    Nice video. Would have been nice if the video included an example where the external api was whitelising origin a

  • @PabloGnesutta
    @PabloGnesutta 2 роки тому +1

    And why is it that static files are allowed (including executables scripts) but calling the API is not?

    • @killerdroid99
      @killerdroid99 2 роки тому

      because of allowed origins in the server side cors settings, only the whitelisted hosts are allowed to fetch or mutate data that is why you have to declare those hosts in the environment variables

  • @doontz111
    @doontz111 3 роки тому +2

    Your voice is like a soft caramel.. I love listening to you

  • @kendedetar
    @kendedetar 3 роки тому

    Great video! What icon set do you use? These colorful icons are beautiful 🤩

  • @maxc9432
    @maxc9432 4 місяці тому

    沒想到豆豆會提到馬來西亞(我是馬來西亞人)。看完整個系列我也被燒到了,bucket list世界多一項

  • @dennisbarzanoff9025
    @dennisbarzanoff9025 3 роки тому

    Dear Mr. Jeff Fireship,
    If you opt for quality in your videos, then ensure more quality control in the collabs because they are sometimes boring and do not match the rest of the video.

  • @paddyspencer6762
    @paddyspencer6762 3 роки тому +1

    Am I stupid or have u done an auth vid. Of not pls do. And like not with fire base. Thx.
    EDIT - thx for all the great vid. Keep em up, I love this channel.

  • @niton6474
    @niton6474 2 роки тому

    I would rename "And why do we need CORS?" to "What does CORS do?" because the reason of the blocking (what i urge to understand) is not explained at all. The title is a little missleading

  • @ravichandra3383
    @ravichandra3383 3 роки тому

    Next video: Chrome Extension and Outlook Add-ins

  • @shaynepreston6055
    @shaynepreston6055 3 роки тому +4

    Can you explain a little why stylesheets and scripts were fine to grab from the external server but the api call was blocked? I understand the premise of CORS but is there a reason that css and scripts were ignored? Is there other things that CORS ignores as well?

    • @cloudfox1908
      @cloudfox1908 3 роки тому +3

      Edit: This is WRONG:
      The basic premise is that you can receive/download assets from the external origin, but you cannot send anything to it.

    • @shaynepreston6055
      @shaynepreston6055 3 роки тому +1

      @@cloudfox1908 got it. What about something like an HTTP GET request? While I’m not sending anything to my server is that still a part of the CORS model?

    • @cloudfox1908
      @cloudfox1908 3 роки тому +2

      @@shaynepreston6055 ah I led you wrong before. When you download/GET a page, you are still making a request to a server for those resources. The reason it may be allowed is because "For security reasons, browsers restrict cross-origin HTTP requests initiated from within scripts." I'm assuming it's ok since it wasn't within a script, but this stuff is quite confusing for me too.
      Reference: stackoverflow.com/a/42605316/14056792

    • @shaynepreston6055
      @shaynepreston6055 3 роки тому

      @@cloudfox1908 ah that makes more sense. Thanks!

  • @HP_Tubcraft
    @HP_Tubcraft 3 роки тому

    dude your channel is priceless.

  • @benhalicki9749
    @benhalicki9749 3 роки тому +1

    Good video, thanks for sharing. Can you please explain how a hacker could take advantage of a website not implementing CORS correctly? From what I understand this does nothing to protect the API as CORS is enforced by the browser. Thanks

    • @tjgdddfcn
      @tjgdddfcn 2 роки тому

      CORS is there to protect the Client, not the Server

  • @JimmyS2
    @JimmyS2 3 роки тому

    Compared to Burp commercial ( free) version, i find ZAP more appealing in features and usability

  • @dieperfektemakaroni1528
    @dieperfektemakaroni1528 2 роки тому

    1:25 It's really hard to hack and takes a lot of years ... you just click "start attack"

  • @johnlee4778
    @johnlee4778 2 роки тому +2

    @7:40 he doesn't explain how making this request and getting the static files is possible through the external origin. Is it because the Express 'get()' acts as a middleware? Or is it because somehow 'public' folder is recognized as the same origin(url) due to its folder structure/location..?

    • @tjgdddfcn
      @tjgdddfcn 2 роки тому +3

      Express.js (and all other backend libraries) disables CORS by default on static files

  • @original_anu
    @original_anu 3 роки тому

    I'm here for my daily tech knowledge bytes :D

  • @br9377
    @br9377 3 роки тому +1

    Gonna put this on 2x speed and learn it in 50 seconds 😎

  • @samuelbartik5265
    @samuelbartik5265 3 роки тому

    Next video: oAuth 2.0 in 100 Seconds and beyond

  • @rimzzlabs
    @rimzzlabs 3 роки тому +1

    Interesting topic, even tho im still learning ES6 JS

  • @HijabiCoder
    @HijabiCoder 3 роки тому +1

    Loool right in the middle of security class too 😂 so strange

  • @MIXT4PEmessiah
    @MIXT4PEmessiah 3 роки тому +1

    Bro I'm also Bartosz and I got the same shirt 😅 Good vid

  • @krtirtho
    @krtirtho 3 роки тому +2

    How do you always know what I need😃?! I was wandering around entire internet for way of preventing some security issues in one of my project. CORS is of course one of 'em. Thanks Fireship❤ & of course huge thanks to Bartosz🙏 for explaining the whole process so easily...

    • @DevAcademyCom
      @DevAcademyCom 3 роки тому +2

      I am really happy you like it! 😍

  • @md.tahmeedhossain9409
    @md.tahmeedhossain9409 3 роки тому

    can you please provide a roadmap or guide on how to get started with ethical hacking. thanks a lot.

  • @AliBerro-c1s
    @AliBerro-c1s 10 місяців тому

    “Given us permission” as they say

  • @SudhanshuIGI
    @SudhanshuIGI 3 роки тому

    Please do a reverse engineering on Apple’s new iPad Pro webpage. Their web designs are on completely next level.

  • @efari
    @efari 3 роки тому +1

    But then why do the external stylesheets and scripts and images get loaded?
    They are also cross-origin but yet they are not blocked by the browser???

  • @sylvereleipertz955
    @sylvereleipertz955 3 роки тому

    I might be wrong but i though that it was the preflight request that failed in case of CORS policy and not the actual Request/Response.

  • @sufler7180
    @sufler7180 3 роки тому +2

    Ayyyy, hi Poland!

  • @lepepito
    @lepepito 2 роки тому

    Nice video dude

  • @SwapnilSoni
    @SwapnilSoni 3 роки тому +2

    Yeah I'm a Full DevOps Stack Hacker

  • @ahmedabdelwadod5823
    @ahmedabdelwadod5823 3 роки тому

    Go in 100 seconds please!

  • @oussamamaatallah0
    @oussamamaatallah0 3 роки тому

    make a video about best practices of a REST api design or the purpose of header and body and so on...

  • @Noah-vm8id
    @Noah-vm8id 3 роки тому

    Lol, I had this error yesterday but fixed it by doing another approach

  • @josemanuel5205
    @josemanuel5205 3 роки тому

    video idea: 100 seconds of laravel

  • @khadimhusen
    @khadimhusen 3 роки тому +1

    Good video, but title is misleading.

  • @karaway2117
    @karaway2117 3 роки тому

    Video suggestion: how to write good commit messages
    I also commented this on another video lol

  • @amgmg2521
    @amgmg2521 2 роки тому

    Ethical hacking is like you are developing nuclear power just to use it for peaceful purposes. 😄

  • @jeffreyjdesir
    @jeffreyjdesir 3 роки тому

    You're certainly a mind hacker...

  • @omanavarghess6847
    @omanavarghess6847 3 роки тому +1

    I was so fast there are no dislikes!

  • @subrahmanyakm4859
    @subrahmanyakm4859 3 роки тому

    You are awesome !!

  • @arjuns2219
    @arjuns2219 3 роки тому +1

    Pls do something on DevOs, MLOps

  • @ChrisFotosMusic
    @ChrisFotosMusic 3 роки тому

    I would gladly have my credit card on the dark web if it meant I never had to deal with CORS again

  • @thewafflemancer
    @thewafflemancer 3 роки тому

    I'd like to suggest .ENV in 100 seconds.

  • @mohitdas5292
    @mohitdas5292 3 роки тому

    Great video 👍

  • @samlama6223
    @samlama6223 3 роки тому +1

    Wondering cross policy is only for frontend. If anyone try to fetch using backend language, then it ignores cross policy.

  • @JohnDoe-pr6yf
    @JohnDoe-pr6yf 3 роки тому +1

    What is the difference between first GET to 8081 to fetch css and js during page rendering and later GET to 8081 triggered by button?

    • @niton6474
      @niton6474 2 роки тому

      The mime type. script/js, style/css, application/json. Json is forbidden - but it doesn't matter since he only explained what is blocked. not WHY as the title suggests

  • @winterboltgames
    @winterboltgames 3 роки тому

    Nice video! Can you give ReScript a try and let us know your opinion about it?

  • @Akshay-Raut
    @Akshay-Raut 3 роки тому

    "Guys, we're in".

  • @eggstatus5824
    @eggstatus5824 2 роки тому

    1:13 Yes I really want to get arrested today

  • @alejomakevids
    @alejomakevids 3 роки тому

    Finally, I can stop being a script kiddie that install Kali along with a desktop environment.

  • @dystopianNinja1289
    @dystopianNinja1289 3 роки тому

    Amazing video but i was annoyed by the fact that his video was difficult to watch with all that editing cuts

  • @xxbomelxx874
    @xxbomelxx874 3 роки тому +1

    Can't I just run a proxy and add the 'Access-Control-Allow-Origin' manually and bypass the browser's security?

    • @rhettmelton
      @rhettmelton 3 роки тому

      Someone please respond to this. I have the same concern

  • @SolomonTheStoryTeller
    @SolomonTheStoryTeller 3 роки тому

    please a video on the new Angular State management StateAdapt!!!

  • @DazTheNord
    @DazTheNord 2 роки тому

    This channel is so good, but bro.. these videos are getting to be way long than 100 seconds😅

  • @manualchnn
    @manualchnn 3 роки тому

    Great need more ethical hacking videos

  • @tinmank
    @tinmank 3 роки тому

    Burp suit, such a horrible name but does a good job.

  • @cubeofcheese5574
    @cubeofcheese5574 3 роки тому +1

    So you can retrieve static files from and external server but not call its api

  • @m.b786
    @m.b786 3 роки тому

    4:56 oups: the browser will comunicate with Origin B but when i receive the response if the header allow-origine is not there i will kick out the response