Latest / CyberSecurity Summary / Web Hacking 101
Transcript
- 0:00Speaker 1: Welcome to your deep dive. We're cracking open web hacking
- 0:03Speaker 1: one oh one today, a book you specifically requested.
- 0:07Speaker 2: Oh this is a good one. Yeah.
- 0:08Speaker 1: It's all about ethical hacking. And I think what makes
- 0:11Speaker 1: this duck dive particularly interesting is all these stories about
- 0:15Speaker 1: vulnerabilities founding companies you use every day, Google, Shopify, even Twitter.
- 0:21Speaker 3: What's fascinating is the author Pete Yorski. Yeah, he's a
- 0:24Speaker 3: hacker himself, so he doesn't just list vulnerabilities. He shows
- 0:28Speaker 3: you how they were discovered, right, and he's got the
- 0:30Speaker 3: team from hacker one chime me in with their insights. Yeah,
- 0:33Speaker 3: which is really cool because hacker one's a leading bug
- 0:35Speaker 3: bounty platform.
- 0:36Speaker 1: That's right, So we're getting like the inside scoop from
- 0:39Speaker 1: the pros here.
- 0:39Speaker 2: Yeah.
- 0:40Speaker 1: Now, before we jump into the juicy stuff, can you
- 0:42Speaker 1: just set the stage for us, like, how does the
- 0:44Speaker 1: Internet even work at a basic level? I think that
- 0:47Speaker 1: will help us understand these vulnerabilities better.
- 0:49Speaker 2: Sure.
- 0:50Speaker 3: So, at its core, the Internet is all about communication
- 0:52Speaker 3: between systems. Okay, think of it as like sending letters
- 0:56Speaker 3: back and forth, but digitally, each message has a specific
- 0:59Speaker 3: purpose like retrieving information or sending data, and follows a
- 1:03Speaker 3: set of rules called protocols, kind of like the postal system.
- 1:06Speaker 1: Okay.
- 1:06Speaker 3: One of the most important protocols is HTTP, the language
- 1:10Speaker 3: your web browser uses to talk to websites.
- 1:12Speaker 1: Okay, so we have our messages and they're following these
- 1:15Speaker 1: rules these protocols, right, But how does a hacker exploit that?
- 1:19Speaker 3: Well, one way is through something called HTML injection. Okay,
- 1:23Speaker 3: it's like sneaking an extra line into a movie script. Huh,
- 1:26Speaker 3: potentially changing the whole scene. Attackers inject HTML code into
- 1:31Speaker 3: a web page, which can alter its appearance or even
- 1:34Speaker 3: trick users.
- 1:35Speaker 1: That sounds sneaky. Does the book have any like real
- 1:37Speaker 1: world examples of this?
- 1:38Speaker 2: It does.
- 1:39Speaker 3: One example involves Coinbase, the cryptocurrency platform.
- 1:43Speaker 1: Okay.
- 1:43Speaker 3: A hacker found a way to bypass their security filters
- 1:47Speaker 3: using something called URL encoding. Okay, it's like using a
- 1:50Speaker 3: secret code to slip a message past security.
- 1:52Speaker 1: Okay.
- 1:53Speaker 3: They were able to inject a fake login form that
- 1:56Speaker 3: could have stolen user credentials.
- 1:58Speaker 1: Wait, so RL encoding is kind of like disguising something
- 2:01Speaker 1: dangerous as harmless text. How does that even work?
- 2:04Speaker 3: Imagine you have a message with characters that aren't allowed
- 2:08Speaker 3: by the system you're using.
- 2:09Speaker 1: Right.
- 2:09Speaker 3: URL encoding converts those characters into a format that is allowed. Okay,
- 2:14Speaker 3: think of it as like translating a message into a
- 2:16Speaker 3: different language that the system understands.
- 2:18Speaker 1: Gotcha.
- 2:19Speaker 3: And at its root, it's based on ASCI, which is
- 2:22Speaker 3: a way to represent characters as numbers.
- 2:25Speaker 1: So the website thinks it's processing regular text, but it's
- 2:28Speaker 1: actually executing malicious code. That's scary. Exactly what other tricks
- 2:33Speaker 1: do you hackers have up their sleeves? What about HTTP
- 2:35Speaker 1: parameter pollution? Ah?
- 2:37Speaker 3: Yes, this one's all about messing with the instruction sent
- 2:40Speaker 3: in those digital letters we talked about. Okay, you slip
- 2:43Speaker 3: extra hidden instructions into a request to change how a
- 2:46Speaker 3: website behaves. It's like secretly adding an ingredient to a
- 2:49Speaker 3: recipe to completely change the outcome.
- 2:52Speaker 1: This is where it gets really interesting. Are there any
- 2:54Speaker 1: examples of this in the book.
- 2:55Speaker 3: Oh, there are a few good ones involving Twitter. One
- 2:58Speaker 3: hacker managed to unsubscribe users from email notifications just by
- 3:03Speaker 3: adding an extra parameter to the request. It's amazing how
- 3:06Speaker 3: such a small tweak can have such a significant impact.
- 3:10Speaker 1: Yeah, it's like pushing the wrong button and causing a
- 3:12Speaker 1: system wide meltdown.
- 3:14Speaker 2: Right?
- 3:14Speaker 1: What else did the book say about Twitter?
- 3:16Speaker 3: There's another vulnerability mentioned involving web intens. These are pre
- 3:21Speaker 3: built functions for things like following someone or liking a tweet. Okay,
- 3:25Speaker 3: the hacker found a way to manipulate them using this
- 3:28Speaker 3: same parameter pollution technique. Imagine clicking a link thinking you're
- 3:32Speaker 3: going to follow a celebrity, but it actually makes you
- 3:35Speaker 3: follow some random bought account.
- 3:37Speaker 1: Oh wow, that's seriously sneaky. It's like those trick birthday
- 3:40Speaker 1: candles that relight after you blow them out. You think
- 3:42Speaker 1: you've got it under control, but nope, exactly. So if
- 3:45Speaker 1: a hacker can manipulate something as simple as a follow button,
- 3:48Speaker 1: what else are they capable of?
- 3:50Speaker 3: Well, let's talk about CRLF injection. Okay, so it's a
- 3:53Speaker 3: bit more technical, but equally impactful. Cr LEFT stands for
- 3:57Speaker 3: carriage return line feed, which is basically the code that
- 4:01Speaker 3: tells a computer to start a new line.
- 4:03Speaker 1: Okay, so we're talking about exploiting line breaks. Ye, how
- 4:06Speaker 1: is that even possible?
- 4:07Speaker 3: By injecting CRLs characters at specific points, attackers can manipulate
- 4:12Speaker 3: how a website processes requests and responses. This could lead
- 4:16Speaker 3: to something called cash poisoning.
- 4:18Speaker 1: Cash poisoning that sounds like a recipe for disaster it
- 4:21Speaker 1: can be what exactly does that mean?
- 4:23Speaker 3: Websites often store frequently accessed content in a cash to
- 4:27Speaker 3: speed things up. A hacker could inject malicious code into
- 4:30Speaker 3: that cache, than anyone who visits the site and loads
- 4:33Speaker 3: that cased content could end up running that malicious code.
- 4:36Speaker 1: So it's like contaminating a water supply. Everyone who drinks
- 4:38Speaker 1: from it gets sick. What other havoc can hackers reek
- 4:41Speaker 1: with CRLF injection?
- 4:43Speaker 3: They could potentially hijack user sessions. Imagine a hacker stealing
- 4:47Speaker 3: your logging cookies, giving them axis to your account without
- 4:50Speaker 3: even knowing your password. The book highlights a particularly dramatic
- 4:53Speaker 3: example involving Twitter. A hacker exploited a bug in the
- 4:57Speaker 3: Firefox browser to inject CRF character, potentially allowing them to
- 5:01Speaker 3: steal session information.
- 5:02Speaker 1: So even a bug and a browser can become a
- 5:05Speaker 1: weapon in the hands of a skilled hacker. That's a
- 5:07Speaker 1: stark reminder that security is a complex web and every
- 5:11Speaker 1: thread is important. Speaking of webs let's talk about cross
- 5:15Speaker 1: site request forgery or CSRF.
- 5:18Speaker 3: CSRF is all about tricking a user's browser into performing
- 5:22Speaker 3: actions on a website where they're already logged in. Okay,
- 5:25Speaker 3: think of it this way. You're logged into your online
- 5:26Speaker 3: banking and then you click a link in a seemingly
- 5:29Speaker 3: harmless email. That link could be designed to trigger a
- 5:32Speaker 3: transaction transferring money out of your account without you ever
- 5:35Speaker 3: realizing it.
- 5:36Speaker 1: That's terrifying. So you're tricked into doing something you never intended,
- 5:39Speaker 1: like a digital puppet master pulling your strings.
- 5:41Speaker 3: Exactly, and it can be incredibly subtle. The book gives
- 5:44Speaker 3: an example where a hacker was able to export user
- 5:47Speaker 3: data from Shopify by exploiting a CSRF vulnerability. They created
- 5:52Speaker 3: a malicious link that, when clicked by a logged in
- 5:54Speaker 3: Shopify user, triggered the export function without proper authorization.
- 5:59Speaker 1: Wow. W Seemingly harmless actions like clicking a link can
- 6:04Speaker 1: be dangerous if you're not careful. It's a good reminder
- 6:07Speaker 1: to be wary of anything that seems suspicious, even if
- 6:10Speaker 1: it comes from a trusted source.
- 6:12Speaker 3: Absolutely, it's all about being aware of the potential risks
- 6:15Speaker 3: and taking steps to protect yourself.
- 6:17Speaker 1: Okay, let's shift gears a bit and talk about a
- 6:18Speaker 1: different kind of vulnerability. Application logic vulnerabilities. What makes these
- 6:23Speaker 1: different from the injection attacks we've been discussing.
- 6:26Speaker 3: Instead of injecting malicious code directly, these vulnerabilities exploit flaws
- 6:31Speaker 3: in how the application's code works. It's like finding a
- 6:34Speaker 3: loophole in a contract to get what you want.
- 6:36Speaker 1: So it's not about breaking the rules, but bending them.
- 6:38Speaker 3: Yeah, clever.
- 6:39Speaker 1: Does the book have any examples of this?
- 6:41Speaker 2: Yes.
- 6:41Speaker 3: A hacker named Igor Homo coof exploited GitHub by taking
- 6:45Speaker 3: advantage of a flaw and how their code handled data updates.
- 6:48Speaker 3: He was able to manipulate sensitive information, which had some
- 6:52Speaker 3: unexpected consequences. It shows that sometimes the most dangerous vulnerabilities
- 6:56Speaker 3: aren't about boot force attacks, but rather understanding the systems
- 7:00Speaker 3: logic and finding those subtle weaknesses.
- 7:02Speaker 1: It's like that saying, give me a lever long enough
- 7:05Speaker 1: and a full chrume on which to place it, and
- 7:06Speaker 1: I shall move the world right. Hackers seem to be
- 7:09Speaker 1: masters at finding those levers and fulcrums.
- 7:11Speaker 3: That's a great analogy. It requires a deep understanding of
- 7:14Speaker 3: how applications work and an eye for spotting inconsistencies.
- 7:19Speaker 1: Now, speaking of inconsistencies, let's talk about cross site scripting.
- 7:22Speaker 1: Or EXSS. That sounds like another one of those sneaky attacks.
- 7:26Speaker 3: XSS is all about injecting malicious JavaScript code into a website,
- 7:32Speaker 3: which is then executed by other users. It's like planting
- 7:36Speaker 3: a trap that unsuspecting visitors will trigger. A simple example
- 7:40Speaker 3: would be injecting code that creates a pop up alert,
- 7:42Speaker 3: but obviously it can get much more.
- 7:43Speaker 2: Serious than that.
- 7:44Speaker 1: Oh I bet so what kind of damage could a
- 7:46Speaker 1: hacker do with XSS?
- 7:48Speaker 3: They could potentially steal user cookies, redirect them to malicious websites,
- 7:52Speaker 3: or even take control of their entire browser session. The
- 7:55Speaker 3: book shares a few examples of XSS vulnerabilities found on Shopify.
- 7:59Speaker 3: One involved basic input field on their wholesale site that
- 8:02Speaker 3: wasn't properly secure.
- 8:03Speaker 1: So even something as simple as an input field can
- 8:06Speaker 1: be vulnerable if developers aren't careful. What other EXSS examples
- 8:12Speaker 1: stood out to you from the book?
- 8:13Speaker 3: There's another one involving Shopify. This time the vulnerability wasn't
- 8:17Speaker 3: in an obvious place like an input field, but rather
- 8:20Speaker 3: in the name property of a file input. Hackers are
- 8:24Speaker 3: always looking for those unconventional attack vectors, those unexpected places
- 8:28Speaker 3: where vulnerabilities might be hiding.
- 8:30Speaker 1: So you really have to think like a hacker to
- 8:32Speaker 1: find these hidden vulnerabilities. It's like playing a game of
- 8:35Speaker 1: hide and seek, but with potentially disastrous consequences.
- 8:38Speaker 3: That's why it's so important for developers to have a
- 8:40Speaker 3: strong security mindset and to be constantly on the lookout
- 8:43Speaker 3: for potential weaknesses. It's a continuous process of learning and improvement.
- 8:47Speaker 1: Speaking of continuous processes, let's move on to another big one,
- 8:50Speaker 1: SQL injection or SQL what's the gist of this attack?
- 8:54Speaker 3: Sequal injection targets a website's database, which is like the
- 8:57Speaker 3: brain of many web applications. Hackers inject malicious sequel code
- 9:02Speaker 3: into a website, aiming to access sensitive data or even
- 9:05Speaker 3: take control of the entire database server.
- 9:07Speaker 1: So instead of just changing what the user sees, they're
- 9:09Speaker 1: going straight for the source, right bold move. How do
- 9:12Speaker 1: they pull this off?
- 9:13Speaker 3: It often involves exploiting vulnerabilities in web forms like a
- 9:17Speaker 3: search field where users can input data. If the form
- 9:21Speaker 3: isn't properly protected, a hacker can inject SQL code into
- 9:25Speaker 3: their input. The book has a particularly gripping example of
- 9:29Speaker 3: a major druple sequel vulnerability.
- 9:31Speaker 1: Druple that's a popular content management system.
- 9:34Speaker 2: Right it is?
- 9:35Speaker 1: Tell me more about this vulnerability.
- 9:36Speaker 3: In twenty fourteen, Drupele was hit with a critical vulnerability
- 9:39Speaker 3: that stemmed from a single coding error in its core software.
- 9:43Speaker 3: It was a simple mistake, but it allowed attackers to
- 9:46Speaker 3: potentially gain complete control of millions of websites.
- 9:49Speaker 1: Wow.
- 9:50Speaker 3: They could steal user data, dephase websites, or even use
- 9:53Speaker 3: the compromise sites to launch further attacks.
- 9:55Speaker 1: Wow. That's a stark reminder of how a seemingly small
- 9:58Speaker 1: coding mistake can have catastrophic consequences. It's like the butterfly
- 10:02Speaker 1: effect in action, but with digital chaos instead of weather patterns.
- 10:05Speaker 3: It also highlights the importance of staying up to date
- 10:07Speaker 3: with security patches and following best practices for secure coding.
- 10:11Speaker 1: Okay, let's keep this hacking train rolling. What about open redirects.
- 10:15Speaker 1: The name sounds a little less sinister than some of
- 10:18Speaker 1: the others we've talked about.
- 10:19Speaker 2: Don't be fooled.
- 10:20Speaker 3: Open redirects are all about exploiting trust.
- 10:22Speaker 1: Okay.
- 10:23Speaker 3: Imagine clicking a link on a website you trust, thinking
- 10:26Speaker 3: you're going to a legitimate page, but instead you're redirected
- 10:29Speaker 3: to a malicious website designed to steal your information.
- 10:32Speaker 1: So you're basically being tricked into walking into a trap
- 10:35Speaker 1: like those cartoons where the character follows a trail of
- 10:37Speaker 1: candy right into a cage right. Are there any real
- 10:40Speaker 1: world examples of open redirects in the book.
- 10:43Speaker 3: Yes, a few involving Shopify.
- 10:46Speaker 1: Oh.
- 10:46Speaker 3: In one case, a hacker manipulated a theme installation page
- 10:49Speaker 3: to redirect users to an external domain. Another example involved
- 10:53Speaker 3: exploiting a redirect function to bypass Shopify security measures and
- 10:57Speaker 3: access sensitive information. It just goes to show that you
- 11:01Speaker 3: can't always trust what you see online, even on sites
- 11:03Speaker 3: you think you're secure.
- 11:04Speaker 1: That's a good reminder to be cautious and to always
- 11:07Speaker 1: check the URL before clicking on a link, especially if
- 11:09Speaker 1: it seems suspicious.
- 11:10Speaker 3: Speaking of things that seem suspicious, let's talk about subdomain takeover.
- 11:16Speaker 3: It's a bit like squatting on an abandoned property in
- 11:18Speaker 3: the digital world.
- 11:20Speaker 1: Intriguing Tell me more about this.
- 11:21Speaker 3: Digital squatting attackers target subdomains that are pointing to unused
- 11:26Speaker 3: third party services. They then register those subdomains with the
- 11:30Speaker 3: third party service, effectively hijacking any traffic meant for the
- 11:34Speaker 3: original sub domain.
- 11:36Speaker 1: So You're basically claiming a forgotten corner of the Internet
- 11:39Speaker 1: and using it for your own nefarious purposes. That's pretty clever,
- 11:41Speaker 1: I have to admit.
- 11:42Speaker 3: The book shares a couple of interesting examples, including one
- 11:45Speaker 3: involving Ubiquidwitch, a networking technology company. Okay, a hacker took
- 11:50Speaker 3: over one of their subdomains because it was pointing to
- 11:52Speaker 3: an unused Amazon S three bucket.
- 11:55Speaker 1: It's like finding a forgotten storage unit full of valuable stuff.
- 11:58Speaker 1: So even seemingly in significant subdomains can be valuable targets
- 12:02Speaker 1: for hackers. What other examples did the book have?
- 12:04Speaker 3: There was another one involving scan dot me, a company
- 12:07Speaker 3: acquired by Snapchat.
- 12:09Speaker 2: Okay.
- 12:09Speaker 3: The hacker claimed a subdomain that was pointing to an
- 12:12Speaker 3: unused Zendesk account, potentially gaining access to sensitive support tickets.
- 12:16Speaker 1: It's amazing how these seemingly simple oversights can lead to
- 12:20Speaker 1: such serious security breaches. It's like leaving the keys to
- 12:23Speaker 1: your house under the welcome map.
- 12:25Speaker 3: The book also includes a fascinating high level example of
- 12:29Speaker 3: a subdomain takeover exploit on Facebook. Oh Facebook, Yeah. The
- 12:33Speaker 3: hacker Philly pair Wood, was able to hijack access tokens
- 12:37Speaker 3: by targeting a misconfigured app. This exploit leveraged opethe, a
- 12:41Speaker 3: protocol that allows users to grant third party apps access
- 12:45Speaker 3: to their accounts without sharing their passwords.
- 12:48Speaker 1: So by taking over the subdomain, the hacker could potentially
- 12:51Speaker 1: intercept those access tokens and gain access to user accounts.
- 12:55Speaker 1: That's wild. I'm starting to realize that security is like
- 12:57Speaker 1: a game of chess where every move matters.
- 13:00Speaker 2: That's a great way to think about it.
- 13:01Speaker 3: It's a constant battle of wits between attackers and defenders,
- 13:04Speaker 3: with each side trying to outmaneuver the other.
- 13:06Speaker 1: All right, let's dive into another vulnerability XML external entity
- 13:10Speaker 1: or XXC. That sounds like something out of a sci
- 13:12Speaker 1: fi movie.
- 13:13Speaker 3: It might sound complex, but the concept is pretty straightforward.
- 13:17Speaker 3: XX vulnerabilities exploit how a website process is XML files.
- 13:21Speaker 3: XML is a way to structure data, and it allows
- 13:24Speaker 3: for the inclusion of external entities. Okay, hackers can craft
- 13:28Speaker 3: malicious XML files that reference these external entities, potentially accessing
- 13:33Speaker 3: sensitive data or even executing code on the server.
- 13:36Speaker 1: So it's like sneaking a secret message within a seemingly
- 13:38Speaker 1: harmless document. Very sneaky.
- 13:41Speaker 3: The book uses a great analogy to illustrate this. A
- 13:44Speaker 3: job board that allows users to upload their resumes in
- 13:47Speaker 3: XML format. Okay, a hacker could create a resume that
- 13:50Speaker 3: includes an external entity referencing the server's password file. Oh,
- 13:54Speaker 3: if the job board system isn't properly protected, it could
- 13:57Speaker 3: expose that sensitive data.
- 13:59Speaker 1: That's a clever way to exploit a seemingly innocuous feature.
- 14:02Speaker 1: It's like hiding a trojan horse inside a gift basket.
- 14:05Speaker 1: What other examples of XX exploits does the book mention?
- 14:07Speaker 2: Well, it's recky. Example involves the Google toolbar.
- 14:09Speaker 1: Google Toolbar.
- 14:10Speaker 3: Yeah, hackers were able to read sensitive server files by
- 14:13Speaker 3: exploiting a vulnerability in the toolbar's button gallery, which allowed
- 14:17Speaker 3: developers to upload XML files containing button metadata.
- 14:22Speaker 1: Wow, even Google is an immune to these attacks. It
- 14:25Speaker 1: seems like no matter how big or sophisticated a company is,
- 14:28Speaker 1: there's always the potential for vulnerabilities. It makes you wonder
- 14:31Speaker 1: what's the most dangerous vulnerability out there?
- 14:33Speaker 3: Well, one that often comes with severe consequences is remote
- 14:36Speaker 3: code execution. Okay, as the name suggests, it allows attackers
- 14:40Speaker 3: to inject code that's then executed by the target server.
- 14:44Speaker 1: So it's like planting a bomb that detonates right at
- 14:46Speaker 1: the heart of the system. That sounds terrifying it can be.
- 14:49Speaker 3: The book provides a chilling example involving a vulnerability in
- 14:52Speaker 3: image Magic, a widely used image processing library.
- 14:56Speaker 1: Image Magic I've heard of that it's used all over
- 14:58Speaker 1: the Internet, right, it's.
- 14:59Speaker 3: Exactly Countless websites and applications use it to handle image uploads, resizing,
- 15:04Speaker 3: and other image related tasks. The vulnerability allowed attackers to
- 15:07Speaker 3: inject malicious code into image files, which would then be
- 15:10Speaker 3: executed when the server process those images. This vulnerability was
- 15:15Speaker 3: widely exploited, and it shows how a flaw and a
- 15:17Speaker 3: commonly used software component can have a ripple effect across
- 15:20Speaker 3: the entire Internet.
- 15:22Speaker 1: It's a stark reminder that security is only as strong
- 15:24Speaker 1: as its weakest link. What's the specific example mentioned in
- 15:28Speaker 1: the book.
- 15:28Speaker 3: The book tells the story of a hacker named Ben
- 15:31Speaker 3: Sedecor who exploited this image Magic vulnerability to gain remote
- 15:36Speaker 3: code execution on Polyvor, a fashion website.
- 15:39Speaker 1: Oh Polyvor.
- 15:39Speaker 2: Yeah.
- 15:40Speaker 3: He crafted a malicious image file that, when processed by
- 15:43Speaker 3: the server, sent a confirmation message back to his own server.
- 15:46Speaker 3: It's a fascinating glimpse into how these exploits work in
- 15:48Speaker 3: the real world.
- 15:49Speaker 1: So even something as seemingly harmless as uploading an image
- 15:52Speaker 1: can be a security risk if the underlying software is vulnerable.
- 15:56Speaker 1: It's a reminder to always be vigilant, both as developers
- 15:59Speaker 1: and as users.
- 16:00Speaker 3: Absolute security is everyone's responsibility.
- 16:02Speaker 1: Okay, let's talk about another type of vulnerability, template injection.
- 16:06Speaker 1: What can you tell me about this one.
- 16:08Speaker 3: Templet injection exploits vulnerabilities in template engines, which are software
- 16:12Speaker 3: components that dynamically generate web pages. Okay, imagine you have
- 16:16Speaker 3: a website that displays user profiles, and each profile is
- 16:19Speaker 3: generated using a template. An attacker might inject malicious code
- 16:23Speaker 3: into that template, which would then be executed on the server,
- 16:27Speaker 3: potentially giving them access to sensitive data or even control
- 16:30Speaker 3: of the server itself.
- 16:31Speaker 1: So it's like hijacking the blueprint for a building and
- 16:35Speaker 1: making subtle changes that could compromise the entire structure. That's
- 16:38Speaker 1: a clever analogy.
- 16:39Speaker 2: I like that.
- 16:40Speaker 3: There are two main types of template injection, server side
- 16:43Speaker 3: SSTI and client side CSTI. As the name implies, happens
- 16:48Speaker 3: on the server, while CSTI occurs on the client side
- 16:50Speaker 3: in the user's browser. SSTI is generally considered more serious
- 16:55Speaker 3: as it can potentially compromise the server, while CSTI is
- 16:58Speaker 3: more limited in scope.
- 16:59Speaker 1: So it's like the difference between poisoning the water supply
- 17:01Speaker 1: at the source versus contaminating a single glass. What are
- 17:05Speaker 1: some examples of SSTI vulnerabilities?
- 17:08Speaker 3: The book mentions exploiting a vulnerability in flask, a popular
- 17:11Speaker 3: Python web framework, and its default template engine gingitoo. By
- 17:16Speaker 3: injecting malicious code into gingitoo templates, hackers were able to
- 17:20Speaker 3: gain remote code execution on vulnerable servers.
- 17:23Speaker 1: So this isn't just limited to Php and other web languages.
- 17:26Speaker 2: Not at all.
- 17:27Speaker 3: Template injection vulnerabilities can exist in any web framework that
- 17:30Speaker 3: uses a template engine, regardless of the programming language. Interesting,
- 17:34Speaker 3: it's all about finding those weak points where an attacker
- 17:36Speaker 3: can inject their code.
- 17:38Speaker 1: Speaking of weak points, what about CSDI? Does the book
- 17:40Speaker 1: have any examples of that?
- 17:42Speaker 2: Yes, it does.
- 17:43Speaker 3: One example involves Uber's developer documentation website. The hacker James
- 17:47Speaker 3: Kettle exploded a vulnerability and Angular js, a popular JavaScript framework,
- 17:52Speaker 3: to inject malicious code that escaped the Angular sandbox and
- 17:56Speaker 3: executed arbitrary JavaScript. This allowed him to hijack developer case
- 18:00Speaker 3: and associated apps.
- 18:01Speaker 1: So even client side frameworks like Angular JS can be
- 18:04Speaker 1: vulnerable to template injection. It's like realizing that even the
- 18:07Speaker 1: seemingly harmless decorations on a gingerbread house can be used
- 18:10Speaker 1: to break in.
- 18:11Speaker 3: It emphasizes that security needs to be considered at every
- 18:15Speaker 3: layer of a web application, from the server to the client.
- 18:17Speaker 1: All right, we've covered a lot of ground. Let's wrap
- 18:19Speaker 1: things up with one final vulnerability, server side request forgery
- 18:24Speaker 1: or SSRF. What's the lowdown on this one.
- 18:27Speaker 3: SSRF vulnerabilities trick a server into making requests to other
- 18:31Speaker 3: systems on the attacker's behalf. It's like using someone else's
- 18:36Speaker 3: phone to make a call without them knowing.
- 18:38Speaker 1: So you're leveraging the service trust and authority to make
- 18:41Speaker 1: requests you wouldn't be able to make directly. That sounds
- 18:44Speaker 1: pretty sneaky. Does the book have any real world examples
- 18:47Speaker 1: of this?
- 18:47Speaker 2: It does.
- 18:48Speaker 3: One example involves essay and esports platform. The vulnerability allowed
- 18:53Speaker 3: attackers to use essay servers to make requests to internal systems,
- 18:57Speaker 3: potentially exposing sense of information or even gaining control of
- 19:00Speaker 3: those systems.
- 19:01Speaker 1: Internal systems, so we're not just talking about accessing data
- 19:04Speaker 1: on the web, you could potentially infiltrate a company's entire network.
- 19:07Speaker 3: That's the danger of SSRF. The book highlights how a
- 19:11Speaker 3: hacker named Brett Buerhause use Google dorking and technique for
- 19:15Speaker 3: finding vulnerable websites to find potential SSRF targets. He then
- 19:20Speaker 3: exploited the vulnerability on Esia to query AWS metadata, exposing
- 19:25Speaker 3: sensitive information about their cloud infrastructure.
- 19:27Speaker 1: It's like finding a secret back door that gives you
- 19:30Speaker 1: access to the entire building. So even seemingly harmless features
- 19:34Speaker 1: like the ability to preview media from a URL can
- 19:37Speaker 1: harbor dangerous vulnerabilities.
- 19:39Speaker 3: And it highlights the importance of thoroughly validating user input
- 19:42Speaker 3: and restricting server side requests to trusted domains.
- 19:45Speaker 1: Wow, we've covered a lot of ground today, from injection
- 19:48Speaker 1: attacks to template exploits to service side request forgery. We've
- 19:52Speaker 1: explored a whole arsenal of hacking techniques and I'm starting
- 19:55Speaker 1: to see how interconnected these vulnerabilities are.
- 19:57Speaker 3: And we've only scratched the surface of what this book
- 19:59Speaker 3: has to off.
- 20:00Speaker 1: Well, listener, we're just getting started. Stay tuned for part
- 20:02Speaker 1: two of this deep dive, where we'll explore how ethical
- 20:05Speaker 1: hackers put this knowledge into practice to make the Internet
- 20:07Speaker 1: a safer place for everyone.
- 20:09Speaker 3: Absolutely looking forward to it. Welcome back. Last time we
- 20:13Speaker 3: explored a range of Web vulnerabilities and how hackers exploit them.
- 20:17Speaker 3: Now let's dive into how ethical hackers use this knowledge
- 20:20Speaker 3: for good.
- 20:21Speaker 1: Yeah, that's right. It's not just about finding these weaknesses,
- 20:23Speaker 1: but understanding how to fix them and make the Internet
- 20:26Speaker 1: a safer place. So where do ethical hackers even begin?
- 20:29Speaker 3: It all starts with reconnaissance, kind of like a detective
- 20:33Speaker 3: gathering clues before cracking a case. Ethical hackers need to
- 20:38Speaker 3: understand their target, the organization, it's systems, its online presence.
- 20:43Speaker 1: So it's not just about like diving straight into the code.
- 20:45Speaker 1: You need to do your homework first. What kind of
- 20:47Speaker 1: information are we talking about?
- 20:48Speaker 3: Everything helps identifying subdomains, mapping out the technology they use,
- 20:53Speaker 3: even analyzing publicly available information like job postings or social
- 20:57Speaker 3: media profiles. It's about building a comprehensive picture of your target.
- 21:02Speaker 1: It sounds like you're piecing together a digital jigsaw puzzle.
- 21:05Speaker 1: What tools help with this reconnaissance phase?
- 21:09Speaker 3: The book mentions a few interesting ones. NOCPI, for instance,
- 21:12Speaker 3: helps automate the process of finding subdomains. It scans a
- 21:15Speaker 3: domain for potential subdomains that you might not even know exist,
- 21:19Speaker 3: expanding the attack surface and potentially revealing hidden vulnerabilities.
- 21:24Speaker 1: It's amazing how much information is out there, just waiting
- 21:27Speaker 1: to be discovered. It's like panning for gold in the
- 21:29Speaker 1: vast river of data. What other tools do ethical hackers use?
- 21:34Speaker 3: Inumol is another great tool. It scrapes data from various
- 21:37Speaker 3: sources like search engines and social media, acting like a
- 21:41Speaker 3: super powered search engine for finding information related to your target.
- 21:45Speaker 3: And don't underestimate the power of Google dorking, which uses
- 21:49Speaker 3: advanced search operators to uncover sensitive information that's publicly accessible
- 21:53Speaker 3: but often hidden in plain sight.
- 21:55Speaker 1: So you're essentially a digital detective using all the tools
- 21:58Speaker 1: at your disposal to gather evidence. Once you've gathered enough information,
- 22:02Speaker 1: what's the next step.
- 22:04Speaker 3: Once we have a good understanding of our target, the
- 22:06Speaker 3: next step is to map out the functionality of the
- 22:08Speaker 3: web application or system.
- 22:09Speaker 1: We're looking at functionality mapping. It sounds like you're creating
- 22:12Speaker 1: a blueprint of the application. Why is the step so important?
- 22:16Speaker 3: It's about understanding how the application works, what features it offers,
- 22:20Speaker 3: how those features interact, what happens when you input data,
- 22:24Speaker 3: and how the server responds. It's about getting to know
- 22:27Speaker 3: the application inside and out, so you're not.
- 22:30Speaker 1: Just looking for obvious flaws. You're trying to understand the
- 22:33Speaker 1: system's logic. It's flow. It's like learning the rules of
- 22:35Speaker 1: a game before you start playing exactly.
- 22:38Speaker 3: And during this phase you're also on the lookout for
- 22:40Speaker 3: any clues that might suggest potential vulnerabilities. You might analyze
- 22:45Speaker 3: error messages, look for unexpected behavior, or test the limits
- 22:49Speaker 3: of input fields to see if they're properly validated.
- 22:52Speaker 1: It sounds like a combination of exploration and experimentation, always
- 22:56Speaker 1: being curious and looking for something that seems out of place.
- 22:59Speaker 1: What kind of things would raise a red flag during.
- 23:01Speaker 3: This process, Well, let's say you're testing an input field.
- 23:03Speaker 3: Can you enter a bunch of random characters or special symbols?
- 23:07Speaker 3: If the application crashes or displays a strange error message,
- 23:10Speaker 3: that could be a sign that the input isn't being
- 23:12Speaker 3: properly validated, and that could open the door to injection
- 23:15Speaker 3: attacks like the ones we talked about earlier.
- 23:17Speaker 1: It's like shaking a box to see if something rattles
- 23:19Speaker 1: inside It's a simple test, but it can reveal a
- 23:23Speaker 1: lot about the structure and security of the system. Once
- 23:25Speaker 1: you've mapped out the functionality and identified some potential areas
- 23:29Speaker 1: of interest, what happens next?
- 23:31Speaker 3: Before we start poking and prodding for vulnerabilities, we need
- 23:35Speaker 3: to understand the scope of our engagement.
- 23:37Speaker 1: Scope. What do you mean by that?
- 23:39Speaker 3: It's the volundaries of what we're allowed to test. If
- 23:42Speaker 3: we're participating in a bug bounty program, the program will
- 23:46Speaker 3: define the scope outlining which systems, applications, and domains are
- 23:50Speaker 3: fair game for testing. It might also specify any restrictions
- 23:54Speaker 3: on the types of testing we can perform.
- 23:56Speaker 1: So it's like a set of rules making sure everyone's
- 23:58Speaker 1: playing fair and stay within the agreed upon boundaries. What
- 24:01Speaker 1: happens if you test something that's out of scope?
- 24:04Speaker 3: That could get you disqualified from the program or even
- 24:06Speaker 3: land you in legal trouble. Ethical hacking is all about
- 24:09Speaker 3: responsible disclosure, and that includes respecting the rules and boundaries
- 24:13Speaker 3: set by the organization.
- 24:14Speaker 1: It makes sense you don't want to accidentally cause any
- 24:17Speaker 1: harm or step on any toes. So let's say you've
- 24:20Speaker 1: defined the scope, mapped out the functionality, and identified some
- 24:24Speaker 1: potential vulnerabilities. Now it's time for the real hacking to begin.
- 24:27Speaker 3: Right now, the real fun begins. It's time to put
- 24:31Speaker 3: our knowledge and skills to the test.
- 24:33Speaker 1: All right, let's talk tools and techniques. What are some
- 24:36Speaker 1: of the essentials in an ethical hacker's toolkit.
- 24:40Speaker 2: Two of the.
- 24:40Speaker 3: Most popular and powerful tools are burp suite and zap Proxy.
- 24:46Speaker 3: They're like superpowered browsers for hackers, allowing us to intercept, analyze,
- 24:51Speaker 3: and manipulate the traffic between our browser.
- 24:53Speaker 1: And the server, so you can see everything that's going
- 24:55Speaker 1: on behind the scenes. Of like being in the control
- 24:57Speaker 1: room of a website. What kind of things are you
- 24:59Speaker 1: looking for in that traffic.
- 25:00Speaker 3: We're looking for patterns, anomalies, anything that seems out of
- 25:03Speaker 3: place or suspicious. We might analyze the headers, the cookies,
- 25:07Speaker 3: the parameters, looking for weaknesses that we could exploit.
- 25:09Speaker 1: It sounds like you're deciphering a secret code, looking for
- 25:12Speaker 1: hidden messages and vulnerabilities.
- 25:13Speaker 2: That's a great way to put it.
- 25:15Speaker 3: Ethical hacking requires a combination of technical skills, creativity, and
- 25:19Speaker 3: a good dose of curiosity. You need to be able
- 25:22Speaker 3: to think like an attacker, anticipating their moves and finding
- 25:26Speaker 3: those hidden weaknesses before they do.
- 25:28Speaker 1: So it's a constant game of cat and mouse, always
- 25:30Speaker 1: trying to stay one step ahead. But it's not just
- 25:33Speaker 1: about using tools, right, What about manual testing? Why is
- 25:37Speaker 1: that still important in this age of automation.
- 25:39Speaker 3: Automated tools are great for finding common vulnerabilities, but they
- 25:42Speaker 3: can't replace human intuition and creativity. Manual testing allows us
- 25:47Speaker 3: to apply our knowledge and experience to uncover more subtle
- 25:50Speaker 3: vulnerabilities that automated tools might miss. It's about thinking outside
- 25:54Speaker 3: the box, trying unconventional approaches and challenging assumptions.
- 25:58Speaker 1: So it's about using your brain as well as your tools.
- 26:00Speaker 1: You're not just blindly running scans. You're actively engaging with
- 26:03Speaker 1: the application, trying to understand its weaknesses and how to
- 26:06Speaker 1: exploit them exactly.
- 26:07Speaker 3: It's about being a problem solver, thinking critically and approaching
- 26:10Speaker 3: each target strategically.
- 26:12Speaker 1: It sounds incredibly challenging but also incredibly rewarding. You're not
- 26:16Speaker 1: just finding bugs, you're helping to make the Internet a
- 26:19Speaker 1: safer place for everyone. And of course there's the thrill
- 26:22Speaker 1: of the hunt, the satisfaction of finding a vulnerability that
- 26:25Speaker 1: no one else is discovered.
- 26:26Speaker 3: That's definitely part of the appeal. There's a real sense
- 26:29Speaker 3: of accomplishment when you uncover a critical vulnerability and know
- 26:34Speaker 3: that you've potentially prevented a major security breach.
- 26:38Speaker 1: So let's say you found a vulnerability. What happens next?
- 26:41Speaker 1: You need to tell someone about it? Right, But how
- 26:43Speaker 1: do you do that responsibly? What's the process for disclosing
- 26:46Speaker 1: a vulnerability? That's right, We've talked about finding these vulnerabilities,
- 26:50Speaker 1: but how do you disclose them responsibly? You can't just
- 26:53Speaker 1: shout it from the rooftops.
- 26:54Speaker 3: Right, definitely not. The book dedicates a whole chapter to
- 26:57Speaker 3: this and really emphasizes understand and following the specific disclosure
- 27:02Speaker 3: guidelines for each program or organization.
- 27:05Speaker 1: So different programs have different rules. What kind of things
- 27:08Speaker 1: do these guidelines usually cover?
- 27:10Speaker 3: They usually specify things like how to submit a report,
- 27:14Speaker 3: who to contact, what information to include, and how long
- 27:17Speaker 3: to wait before making the vulnerability public. Okay, it's all
- 27:20Speaker 3: about ensuring that the organization have time to fix the
- 27:23Speaker 3: problem before it's exploited by malicious actors.
- 27:27Speaker 1: That makes sense. You don't want to accidentally tip off
- 27:29Speaker 1: the bad guys while you're trying to be the good guy.
- 27:31Speaker 1: So what about the report itself. What makes a good
- 27:33Speaker 1: vulnerability report?
- 27:35Speaker 3: Clarity is key. A good report needs to be clear, concise,
- 27:40Speaker 3: and easy to understand. It should include a descriptive title
- 27:44Speaker 3: that summarizes the vulnerability right, a detailed description of how
- 27:47Speaker 3: it works and its potential impact, step by step instructions
- 27:51Speaker 3: on how to reproduce it, and any relevant proof of
- 27:54Speaker 3: concept code or screenshots.
- 27:56Speaker 1: So you're basically handing them a roadmap saying here's the problem,
- 27:59Speaker 1: here's how to rec create it, and here's how serious
- 28:01Speaker 1: it could be. Exactly, you're making it as easy as
- 28:03Speaker 1: possible for them to understand and fix the issue.
- 28:06Speaker 3: The goal is to help them resolve the vulnerability quickly
- 28:08Speaker 3: and efficiently, not to create more work for them.
- 28:10Speaker 1: Now. The book also mentions confirming the vulnerability before reporting it.
- 28:15Speaker 1: Why is that so important?
- 28:16Speaker 3: Submitting a false positive or an inaccurate report can damage
- 28:20Speaker 3: your reputation as an ethical hacker. It also wastes the
- 28:24Speaker 3: organization's time and resources, which could be better spent fixing
- 28:28Speaker 3: real vulnerabilities.
- 28:29Speaker 1: So it's like the Boy who Cried Wolf. If you
- 28:31Speaker 1: keep reporting false alarms, people will stop taking you seriously.
- 28:34Speaker 3: Right, It's important to be thorough and to double check
- 28:37Speaker 3: your work before submitting a report. Make sure you can
- 28:40Speaker 3: consistently reproduce the vulnerability and that you understand its potentially impact.
- 28:44Speaker 1: Okay, so you've done your due diligence, submitted your report,
- 28:47Speaker 1: and crickets. What happens if the organization doesn't respond?
- 28:51Speaker 3: It happens sometimes The book recommends following up politely after
- 28:54Speaker 3: a reasonable amount of time. Okay, but remember be patient
- 28:57Speaker 3: and respectful. Bug Bounty program can get a lot of
- 29:00Speaker 3: submissions and it might take some time for them to
- 29:03Speaker 3: review and respond to each one.
- 29:04Speaker 1: It's like waiting for a response to a job application.
- 29:07Speaker 1: You don't want to pester them every day, but a
- 29:09Speaker 1: gentle nudge after a few weeks is probably.
- 29:11Speaker 3: Okay exactly, and it's important to use the designated channels
- 29:15Speaker 3: for communication. Don't try to bypass the system or contact
- 29:18Speaker 3: people directly, follow the rules and be professional.
- 29:22Speaker 1: Makes sense, So patients and professionalism are key when dealing
- 29:25Speaker 1: with organizations. Now you mentioned something earlier called signal, Can
- 29:29Speaker 1: you explain that a little bit more on how it
- 29:31Speaker 1: relates to ethical hacking.
- 29:33Speaker 3: Signal is a metric used by platforms like hacker one
- 29:36Speaker 3: to assess the quality and impact of vulnerability reports.
- 29:40Speaker 1: Okay.
- 29:41Speaker 3: It takes into account things like the severity of the vulnerability,
- 29:44Speaker 3: the clarity of the report, and whether the report was resolved.
- 29:47Speaker 1: So it's like a reputation score for hackers. The higher
- 29:50Speaker 1: your signal, the more credible you are.
- 29:52Speaker 3: Precisely, a high signal indicates a skilled and reliable ethical hacker,
- 29:56Speaker 3: someone who consistently submits high quality reports and helps or
- 30:00Speaker 3: organizations improve their security.
- 30:01Speaker 1: So it's not just about finding the most vulnerabilities, it's
- 30:04Speaker 1: about finding the right ones and reporting them effectively. Quality
- 30:07Speaker 1: matters more than quantity in this field.
- 30:09Speaker 3: Yeah, absolutely, and building a good signal can open doors
- 30:13Speaker 3: to opportunities like private bug bounty programs, which offer exclusive
- 30:16Speaker 3: access to test more sensitive systems and often have higher payouts.
- 30:21Speaker 1: That's a great incentive to strive for excellence in your
- 30:23Speaker 1: vulnerability reports. Now, the book wraps up with the section
- 30:27Speaker 1: on tools for ethical hacking. We've already touched on burp
- 30:30Speaker 1: suite and zip proxy, but what other tools are essential
- 30:34Speaker 1: for any aspiring hacker.
- 30:35Speaker 3: The book mentions a bunch of them, and they cover
- 30:37Speaker 3: a wide range of functionality. You've got tools for reconnaissance
- 30:40Speaker 3: and scanning like end map and showdand tools for exploiting
- 30:44Speaker 3: vulnerabilities like squall map and metasploid, and tools for web
- 30:47Speaker 3: application testing like burp suite and osp is app.
- 30:50Speaker 1: It's a whole arsenal of digital tools. It sounds like
- 30:53Speaker 1: ethical hacking requires a pretty diverse skill set. Where can
- 30:56Speaker 1: someone even begin to learn all of this?
- 30:59Speaker 3: The good news is that there are tons of resources available.
- 31:02Speaker 3: The book recommends checking out the OAS website, which is
- 31:04Speaker 3: a great source of information on web application security, as
- 31:07Speaker 3: well as hacker Wan's activity feed, which showcases real world
- 31:11Speaker 3: vulnerability reports and provides insights into how hackers think and operate.
- 31:15Speaker 1: It's like having a window into the minds of the pros.
- 31:18Speaker 1: That's incredible. What other resources do you recommend?
- 31:21Speaker 3: There are also many security blogs, online communities, and even
- 31:24Speaker 3: online courses where you can learn from experienced hackers and
- 31:27Speaker 3: security professionals. The key is to be curious, to keep learning,
- 31:32Speaker 3: and to practice your skills in a safe and ethical environment.
- 31:35Speaker 1: So ethical hacking is a journey, not a destination. It's
- 31:39Speaker 1: about constantly learning and evolving, just like the technology you're
- 31:43Speaker 1: trying to protect.
- 31:44Speaker 3: That's a great way to put it, and with the
- 31:45Speaker 3: ever evolving landscape of technology, and security threats. Ethical hackers
- 31:49Speaker 3: play a crucial role in making the Internet a safer
- 31:52Speaker 3: place for everyone.
- 31:53Speaker 1: Well listener. That concludes our deep dive into web hacking
- 31:56Speaker 1: one oh one. We've covered a lot of ground today,
- 31:59Speaker 1: from the basics of how how the Internet works to
- 32:01Speaker 1: a wide range of hacking techniques and tools. Hopefully you've
- 32:04Speaker 1: gained a deeper understanding of the world of ethical hacking
- 32:07Speaker 1: and the importance of responsible disclosure. If you're interested in
- 32:10Speaker 1: learning more, we highly recommend checking out the book itself.
- 32:13Speaker 1: It's a fantastic resource for anyone interested in ethical hacking,
- 32:17Speaker 1: whether you're a seasoned professional or just starting out. And
- 32:20Speaker 1: if you're feeling inspired to take your cybersecurity knowledge to
- 32:23Speaker 1: the next level, don't forget to explore the resources mentioned
- 32:26Speaker 1: in the book. There's a whole community of ethical hackers
- 32:29Speaker 1: out there working together to make the Internet a safer
- 32:32Speaker 1: place for everyone. Happy Hacking