Fireship · @fireship

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

Uploaded April 20, 2021 · Length 11:05

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

Summary

Ethical hacking basics, CORS, and same origin policy explained in 100 seconds.

  • ethical hacking
  • cors
  • same origin policy
  • web security
  • penetration testing
  • burp suite
  • javascript security

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    [Music]

  2. 0:00

    ethical hacking find exploits in your

  3. 0:02

    web application before the bad guys do

  4. 0:04

    as a web developer there are 10 common

  5. 0:06

    security risks that you'll want to be

  6. 0:07

    aware of things like database injection

  7. 0:10

    broken authentication and cross-site

  8. 0:12

    scripting hackers have been exploiting

  9. 0:13

    these vulnerabilities from day 0.

  10. 0:15

    like back in 05 when cross-site

  11. 0:17

    scripting was used to update your

  12. 0:18

    myspace page with sami is my hero or

  13. 0:21

    just last year when the chinese version

  14. 0:22

    of twitter weibo

  15. 0:23

    exposed over 500 million user accounts

  16. 0:25

    because of a brute force attack on their

  17. 0:27

    authentication system you can reduce

  18. 0:29

    your chances of being a victim by

  19. 0:30

    running penetration tests on your web

  20. 0:32

    application

  21. 0:33

    i refuse to be a victim

  22. 0:36

    and a popular free tool for doing so is

  23. 0:38

    the burp suite whenever you visit a

  24. 0:39

    website the browser automatically makes

  25. 0:41

    requests to a bunch of servers for the

  26. 0:43

    html images in javascript that that site

  27. 0:45

    needs to run

  28. 0:46

    the burp suite is like a man in the

  29. 0:48

    middle that can eavesdrop on or

  30. 0:50

    intercept every single request on its

  31. 0:52

    dashboard we can find the proxy tab

  32. 0:54

    then open an instance of the chromium

  33. 0:56

    browser then visit a website that's

  34. 0:58

    given us permission to run penetration

  35. 0:59

    testing the tool will intercept every

  36. 1:01

    request

  37. 1:02

    allowing us to inspect it and optionally

  38. 1:04

    modify its values before it gets sent to

  39. 1:06

    the server

  40. 1:07

    this is kind of like casing the joint to

  41. 1:08

    find potential requests to exploit for

  42. 1:10

    example you might submit a form to

  43. 1:12

    complete a

  44. 1:13

    shopping cart order if you change the

  45. 1:15

    order amount on the post request and

  46. 1:17

    their server side validation is weak

  47. 1:18

    you may have just received a five finger

  48. 1:20

    discount but in real life hacking is

  49. 1:22

    rarely that simple

  50. 1:23

    it takes a lot of tedious trial and

  51. 1:25

    error luckily you can automate your

  52. 1:26

    bruteforce attacks with the intruder

  53. 1:28

    tool

  54. 1:29

    you might have a bunch of username

  55. 1:30

    password combinations that get added to

  56. 1:32

    a request dynamically

  57. 1:33

    then sent to the server with a variety

  58. 1:35

    of different attack types all you have

  59. 1:36

    to do is click the start attack button

  60. 1:38

    then sit back and wait for a successful

  61. 1:40

    response once you've gained access

  62. 1:42

    you can use those same credentials to

  63. 1:43

    determine if you can maintain access to

  64. 1:45

    extract sensitive data from the target

  65. 1:47

    if you had permission to do this you

  66. 1:49

    wear a white hat if you didn't have

  67. 1:51

    permission but notified the target you

  68. 1:53

    wear a gray hat and if you're selling

  69. 1:54

    the data for dogecoin on the dark web

  70. 1:56

    then you wear

  71. 1:57

    a black hat this has been ethical

  72. 1:58

    hacking on the web in 100 seconds