Fireship · @fireship
Ethical Hacking in 100 Seconds // And why do we need CORS?
Uploaded April 20, 2021 · Length 11:05
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.
- 0:00
[Music]
- 0:00
ethical hacking find exploits in your
- 0:02
web application before the bad guys do
- 0:04
as a web developer there are 10 common
- 0:06
security risks that you'll want to be
- 0:07
aware of things like database injection
- 0:10
broken authentication and cross-site
- 0:12
scripting hackers have been exploiting
- 0:13
these vulnerabilities from day 0.
- 0:15
like back in 05 when cross-site
- 0:17
scripting was used to update your
- 0:18
myspace page with sami is my hero or
- 0:21
just last year when the chinese version
- 0:22
of twitter weibo
- 0:23
exposed over 500 million user accounts
- 0:25
because of a brute force attack on their
- 0:27
authentication system you can reduce
- 0:29
your chances of being a victim by
- 0:30
running penetration tests on your web
- 0:32
application
- 0:33
i refuse to be a victim
- 0:36
and a popular free tool for doing so is
- 0:38
the burp suite whenever you visit a
- 0:39
website the browser automatically makes
- 0:41
requests to a bunch of servers for the
- 0:43
html images in javascript that that site
- 0:45
needs to run
- 0:46
the burp suite is like a man in the
- 0:48
middle that can eavesdrop on or
- 0:50
intercept every single request on its
- 0:52
dashboard we can find the proxy tab
- 0:54
then open an instance of the chromium
- 0:56
browser then visit a website that's
- 0:58
given us permission to run penetration
- 0:59
testing the tool will intercept every
- 1:01
request
- 1:02
allowing us to inspect it and optionally
- 1:04
modify its values before it gets sent to
- 1:06
the server
- 1:07
this is kind of like casing the joint to
- 1:08
find potential requests to exploit for
- 1:10
example you might submit a form to
- 1:12
complete a
- 1:13
shopping cart order if you change the
- 1:15
order amount on the post request and
- 1:17
their server side validation is weak
- 1:18
you may have just received a five finger
- 1:20
discount but in real life hacking is
- 1:22
rarely that simple
- 1:23
it takes a lot of tedious trial and
- 1:25
error luckily you can automate your
- 1:26
bruteforce attacks with the intruder
- 1:28
tool
- 1:29
you might have a bunch of username
- 1:30
password combinations that get added to
- 1:32
a request dynamically
- 1:33
then sent to the server with a variety
- 1:35
of different attack types all you have
- 1:36
to do is click the start attack button
- 1:38
then sit back and wait for a successful
- 1:40
response once you've gained access
- 1:42
you can use those same credentials to
- 1:43
determine if you can maintain access to
- 1:45
extract sensitive data from the target
- 1:47
if you had permission to do this you
- 1:49
wear a white hat if you didn't have
- 1:51
permission but notified the target you
- 1:53
wear a gray hat and if you're selling
- 1:54
the data for dogecoin on the dark web
- 1:56
then you wear
- 1:57
a black hat this has been ethical
- 1:58
hacking on the web in 100 seconds


