Latest / CyberCode Academy / Course 27 - Hacking Web Applications, Penetration Testing, CTF | Episode 10: OWASP Fundamentals: Top 10 Vulnerabilities and Web Security
Transcript
- 0:00Speaker 1: Imagine, imagine you've spent maybe three years building this massive
- 0:05Speaker 1: digital fortress. Right, You've got the strongest encryption money can buy.
- 0:10Speaker 1: You've got firewalls that would make I don't know a
- 0:14Speaker 1: government intelligence agency jealous. Oh yeah, that works, biometric scanners
- 0:18Speaker 1: at the front door, the whole nine yards. You feel
- 0:20Speaker 1: completely untouchable. But then on day one you wake up
- 0:24Speaker 1: to find the vault is.
- 0:25Speaker 2: Just empty because while you were obsessing over those steel
- 0:29Speaker 2: reinforced doors, you forgot to check the small bathroom window
- 0:33Speaker 2: around the back. Oh and you left it unlatched.
- 0:35Speaker 1: Exactly. That is the perfect analogy for web application security.
- 0:39Speaker 2: It really is. I mean, when I teach this stuff
- 0:42Speaker 2: to students of programming or young professionals getting into cybersecurity,
- 0:45Speaker 2: I always emphasize that you can have the most expensive
- 0:48Speaker 2: infrastructure in the world, but if your application code has
- 0:51Speaker 2: a single logical slaw.
- 0:53Speaker 1: That unlocked window, right, if you.
- 0:54Speaker 2: Have that unlocked window, the fortress is just theater. It
- 0:57Speaker 2: creates this really dangerous false ense of security.
- 1:01Speaker 1: And that is exactly what we are unpacking today. We
- 1:04Speaker 1: aren't talking about the Hollywood version of hacking with the
- 1:08Speaker 1: scrolling green text and the heavy techno.
- 1:10Speaker 2: Music, sadly no techno music today.
- 1:13Speaker 1: Right now, today we are doing a deep dive into
- 1:16Speaker 1: the actual blueprints of how the Internet breaks. We're looking
- 1:20Speaker 1: at the owas PET top ten and the Web Application
- 1:24Speaker 1: security testing methodologies.
- 1:25Speaker 2: Yeah, these are effectively the bibles for the industry for
- 1:28Speaker 2: anyone who might not know. AWASBEE stands for the Open
- 1:31Speaker 2: Web Application Security Project. It's this massive global community.
- 1:35Speaker 1: Their mission is pretty simple.
- 1:36Speaker 2: Right, They're very simple. They just want to make secure
- 1:40Speaker 2: the default state of software, rather than an afterthought that
- 1:44Speaker 2: gets bolted on right before launch.
- 1:46Speaker 1: So for everyone listening right now, whether you write code yourself,
- 1:49Speaker 1: maybe you manage a dev team, or you're just a
- 1:51Speaker 1: self taught learner who wants to understand why your data
- 1:54Speaker 1: keeps ending up on the dark web. This is our
- 1:57Speaker 1: roadmap for the session.
- 1:58Speaker 2: That's good.
- 1:58Speaker 1: We're going to break this into two parts. First, the
- 2:01Speaker 1: top ten the most critical security risks out there right now.
- 2:04Speaker 1: Then we're going to flip the script and look at
- 2:06Speaker 1: the testing side. How do security professionals actually find these
- 2:11Speaker 1: bugs before the bad guys do.
- 2:13Speaker 2: It's basically the difference between knowing how a lock works
- 2:15Speaker 2: and knowing how to pick it right. You really need
- 2:18Speaker 2: both perspectives to build secure tech, and I think we
- 2:22Speaker 2: have to start with the absolute heavy hitter here, the
- 2:24Speaker 2: vulnerability that has been sitting at the top of the
- 2:26Speaker 2: charts for over a decade. Injection injection. Yeah.
- 2:30Speaker 1: Now, when I hear injection, my mind immediately goes to
- 2:33Speaker 1: a medical procedure or maybe a fuel injector in a car.
- 2:37Speaker 1: But in code, we are talking about injecting actual commands,
- 2:40Speaker 1: right exactly.
- 2:41Speaker 2: The core issue here is a fundamental misunderstanding.
- 2:44Speaker 1: Of trust, trust between the user and the system.
- 2:47Speaker 2: Yeah, applications have to take input from users, search bars,
- 2:50Speaker 2: log informs, URL parameters, and the application is supposed to
- 2:54Speaker 2: treat that input simply as data.
- 2:56Speaker 1: Just harmless tech, right. Just.
- 2:58Speaker 2: Text injection happens when an attacker manages to trick the
- 3:02Speaker 2: application into treating that input as executable code.
- 3:05Speaker 1: Ah, so it's a context switcher. It's basically telling the system, hey,
- 3:09Speaker 1: don't just read this text, actually execute it.
- 3:11Speaker 2: Precisely. Let's visualize the classic example SQL injection.
- 3:16Speaker 1: Okay, SQL, the language databases.
- 3:18Speaker 2: Use, right. Imagine a standard login screen. Behind the scenes,
- 3:22Speaker 2: the code runs a query that looks something like select user,
- 3:27Speaker 2: where a username equals the input and password equals.
- 3:29Speaker 1: The input standard logic, the database checks if the name
- 3:32Speaker 1: and password I typed match what's on file in the
- 3:35Speaker 1: system exactly.
- 3:36Speaker 2: But what if instead of typing my actual name, I
- 3:39Speaker 2: type the word admin, and then I type an apostrophe
- 3:42Speaker 2: and then two dashes.
- 3:43Speaker 1: Okay? So the apostrophe would close the data field that
- 3:45Speaker 1: the database is expecting, and.
- 3:47Speaker 2: In SQL, those two dashes mean comment. It literally tells
- 3:50Speaker 2: the database engine, Hey, ignore everything that comes after this point.
- 3:54Speaker 1: Wow. So the query just becomes select user where user
- 3:57Speaker 1: name equals admin.
- 3:58Speaker 2: Yep, the whole second half. If the part that actually
- 4:00Speaker 2: checks the password it gets commented out, it effectively vanishes
- 4:04Speaker 2: from the execution logic.
- 4:05Speaker 1: So the database just looks at the query, says, oh, okay,
- 4:08Speaker 1: you want the admin user account, here you go, and
- 4:11Speaker 1: logs you straight in without ever asking for a password.
- 4:14Speaker 2: That is the raw power of injection. And the scary
- 4:17Speaker 2: part is it's not just SQL. This happens with no
- 4:20Speaker 2: SQL databases, LDFP directories, even raw operating system commands.
- 4:26Speaker 1: So if an app takes what you type and passes
- 4:28Speaker 1: it directly to any system interpreter without scrubbing it clean first,
- 4:33Speaker 1: you could potentially take over the entire host.
- 4:35Speaker 2: You could. It's terrifyingly simple. You're just manipulating the grammar
- 4:39Speaker 2: of the request.
- 4:40Speaker 1: That is wild. Okay, let's move to number two, which,
- 4:43Speaker 1: looking at this feels a bit more like a process
- 4:45Speaker 1: failure than a sneaky code trick. Broken authentication.
- 4:48Speaker 2: Yeah. In the cybersecurity education spase, we often call this
- 4:51Speaker 2: the keys end of the mat problem.
- 4:53Speaker 1: I like that analogy.
- 4:54Speaker 2: It's very distinct from injection. In injection, the code itself
- 4:58Speaker 2: is being tricked. In broken authentication, the code might be
- 5:01Speaker 2: functioning and exactly is written, but the underlying logic of
- 5:05Speaker 2: how we handle human identity is just flawed.
- 5:08Speaker 1: We're mostly talking about session management here, right, keeping track
- 5:11Speaker 1: of who is logged in.
- 5:12Speaker 2: That's the bedrock of it. When you log into your
- 5:14Speaker 2: online bank, the server gives your browser a session.
- 5:18Speaker 1: ID, like a digital token exactly.
- 5:21Speaker 2: Think of it like a Neon risk band. At a concert.
- 5:23Speaker 2: That risk band proves who you are to the bouncer,
- 5:25Speaker 2: so you don't have to pull out your driver's license
- 5:27Speaker 2: at every single door inside the venue.
- 5:29Speaker 1: But if that wristband is say, super easy to fake,
- 5:33Speaker 1: or if I just find someone else's wrist band lying
- 5:35Speaker 1: on the ground.
- 5:36Speaker 2: You become that person you inherit their access. This category
- 5:39Speaker 2: covers things like session hijacking, where an attacker actually steals
- 5:43Speaker 2: that session ID token, right, but it also deeply covers
- 5:46Speaker 2: something called credential stuffing, which is a huge deal.
- 5:49Speaker 1: Right now, which is where the sheer volume of modern
- 5:53Speaker 1: data breaches comes into play, right because of password reuse.
- 5:57Speaker 2: You nailed it. Attackers had these massive databases with billions,
- 6:01Speaker 2: literally billions of username and password combinations from old hacks.
- 6:06Speaker 1: Like that old fitness app that got breached five years ago.
- 6:08Speaker 2: Exactly. They don't sit there trying to mathematically crack your password.
- 6:12Speaker 2: They just use an automated bot to try your elite
- 6:14Speaker 2: fitness app password on your bank account, and then your
- 6:17Speaker 2: email and then your corporate VPN login.
- 6:20Speaker 1: Because humans are creatures of habit, and we reuse the
- 6:23Speaker 1: exact same password.
- 6:24Speaker 2: Everywhere we do. And if the application you're logging into
- 6:27Speaker 2: isn't enforcing multi factor authentication MFA, or if it has
- 6:31Speaker 2: incredibly weak session timeouts, like letting you stay logged in
- 6:35Speaker 2: forever on a public library computer, you fall right into
- 6:38Speaker 2: this category.
- 6:39Speaker 1: And the impact there is usually total identity theft or
- 6:43Speaker 1: massive financial fraud almost always, which leads perfectly into number three,
- 6:47Speaker 1: sensitive data exposure. Now this sounds super broad, isn't this
- 6:51Speaker 1: just a fancy way of saying getting hacked?
- 6:53Speaker 2: It sounds broad, but it's actually quite specific. It's about
- 6:56Speaker 2: the failure to protect data at rest or in Transit
- 6:59Speaker 2: is really the domain of cryptography and encryption.
- 7:02Speaker 1: Okay, so the classic example here would be the man
- 7:04Speaker 1: in the middle attack.
- 7:05Speaker 2: Right. Picture this scenario. You're sitting at a local coffee
- 7:09Speaker 2: shop using their free.
- 7:10Speaker 1: WiFi, always a risky move, very and.
- 7:13Speaker 2: You decide to send credit card data to a shopping site.
- 7:17Speaker 2: You think it's secure, but an attacker is sitting two
- 7:21Speaker 2: tables away on the exact same network intercepting the traffic.
- 7:25Speaker 1: Just scooping it out of the air.
- 7:27Speaker 2: Yeah, and if the shopping website allows it, the attacker
- 7:30Speaker 2: can force your connection to downgrade. They strip it from HTTPS,
- 7:34Speaker 2: which is the secure encrypted tunnel, down to HTTP, which
- 7:38Speaker 2: is completely plain text.
- 7:39Speaker 1: So they basically strip away the secure envelope, read your
- 7:42Speaker 1: private letter, copy down your credit card number, and then
- 7:45Speaker 1: send the letter along to the stores. You never even
- 7:47Speaker 1: realize anything was intercepted exactly.
- 7:49Speaker 2: It's seamless. Yeah, but this category also covers data at rest, Like,
- 7:53Speaker 2: how are passwords actually stored on the server?
- 7:56Speaker 1: Oh? Right?
- 7:56Speaker 2: If a company stores your password as plaintext in their database,
- 8:00Speaker 2: that is a critical failure. But even if they hash it,
- 8:03Speaker 2: which means scrambling it using an outdated weak algorithm like
- 8:07Speaker 2: MD five, it's still highly.
- 8:09Speaker 1: Vulnerable because attackers have those things called brainbow tables, right,
- 8:14Speaker 1: giant dictionaries of pre computed hashes.
- 8:17Speaker 2: Yes, they can reverse those simple scrambles almost instantly.
- 8:20Speaker 1: That's why we need salting exactly.
- 8:22Speaker 2: Adding random junk data the salt, to the password before
- 8:25Speaker 2: you scramble it creates a unique cryptographic fingerprint that means
- 8:29Speaker 2: it can't just be looked up in a massive cheat sheet.
- 8:31Speaker 1: Okay, moving on to number four. Now, this one always
- 8:34Speaker 1: sounds the most intimidatingly technical to me. XML External entities
- 8:39Speaker 1: or XX.
- 8:40Speaker 2: Yeah, XX is a fascinating one because it actually targets
- 8:43Speaker 2: older technology that just happens to still be the backbone
- 8:47Speaker 2: of countless enterprise systems.
- 8:49Speaker 1: Right, because XML is just a format for structuring data
- 8:52Speaker 1: like JSON.
- 8:53Speaker 2: Correct. The flaw here exists in how older unpatched XML
- 8:57Speaker 2: processors handle something called external entities.
- 9:00Speaker 1: Okay, keep it simple for us, What exactly is an
- 9:02Speaker 1: external entity.
- 9:04Speaker 2: Think of it like a dynamic shortcut or a variable encode.
- 9:07Speaker 2: In an XML file, you can divine a tag that
- 9:09Speaker 2: basically says, hey, for the value of this specific tag,
- 9:13Speaker 2: don't read what's here, go fetch the contents of this
- 9:15Speaker 2: other file over there instead.
- 9:16Speaker 1: Oh, I see where this is going.
- 9:18Speaker 2: Yeah. So, an attacker sends an XML document to the server.
- 9:22Speaker 2: It looks completely innocent on the surface, but buried inside
- 9:25Speaker 2: it says, for the value of user description, go fetch
- 9:28Speaker 2: the core system password file from the server's own hard drive, and.
- 9:32Speaker 1: The server, just trying to be helpful and do its job,
- 9:35Speaker 1: parses the XML, goes to its own restricted hard drive,
- 9:39Speaker 1: reads the highly sensitive file, and then pastes the contents
- 9:42Speaker 1: right into the response it sends back to the attacker exactly.
- 9:45Speaker 2: It's called local file inclusion, and attackers can use it
- 9:48Speaker 2: to steal sensitive data or even use the server itself
- 9:51Speaker 2: to map out the internal corporate network from the inside.
- 9:54Speaker 1: Brutal all right. Number five broken access controls. Now, this
- 9:59Speaker 1: sounds a lot like broken authentication, which we just talked about,
- 10:02Speaker 1: But there's a major nuance here, right, a huge nuance.
- 10:05Speaker 2: Think of it this way, authentication is the system answering
- 10:08Speaker 2: the question who are you? Access control is the system
- 10:11Speaker 2: answering the question what are you actually allowed to do?
- 10:14Speaker 1: So I can be successfully authenticated the system knows I
- 10:17Speaker 1: am User Ray. But if the system has a flaw
- 10:20Speaker 1: that lets me read userb's private messages.
- 10:23Speaker 2: That is broken access control. In cybersecurity circles, we often
- 10:27Speaker 2: call this force browsing or insecure direct object references.
- 10:32Speaker 1: Walk us through a force browsing scenario. How does that
- 10:34Speaker 1: actually look?
- 10:35Speaker 2: Sure? Imagine you log into a web portal and you
- 10:38Speaker 2: look up at the URL in your browser bar, and
- 10:40Speaker 2: it says something like website dot com for matter what
- 10:43Speaker 2: pusor one hundred. Oh okay, you can reasonably assume that
- 10:47Speaker 2: one hundred is your unique account ID, right? What happens
- 10:50Speaker 2: if you just click the url bar, delete THEE hundred,
- 10:53Speaker 2: and type one oh one.
- 10:54Speaker 1: If the application logic is poorly written, it might just say, well,
- 10:58Speaker 1: you are legally logged in, therefore you can see this
- 11:00Speaker 1: page and it serves up user one on one's private
- 11:03Speaker 1: dashboard exactly.
- 11:04Speaker 2: The system thoroughly verifies that you have a valid key
- 11:06Speaker 2: to get into the front door of the building, but
- 11:08Speaker 2: it completely forgot to check if you have the key
- 11:11Speaker 2: to that specific private office inside.
- 11:13Speaker 1: It's shockingly common, isn't it. Oh, it's everywhere, which brings
- 11:16Speaker 1: us to number six. And I want to pause here
- 11:18Speaker 1: because the industry data claims this is actually the most
- 11:20Speaker 1: common issue found in the wild security misconfiguration.
- 11:24Speaker 2: It is the most common, and that's simply because modern
- 11:27Speaker 2: web environments are just unbelievably complex.
- 11:30Speaker 1: Have many moving parts.
- 11:31Speaker 2: Exactly. You have the operating system, the database, the web
- 11:35Speaker 2: server software, the application framework, the cloud containers, and every
- 11:40Speaker 2: single one of those layers has hundreds of individual.
- 11:43Speaker 1: Settings, and the default settings are rarely secure.
- 11:46Speaker 2: Never, vendors want their software to work perfectly out of
- 11:50Speaker 2: the box, so developers don't get frustrated, so they leave
- 11:52Speaker 2: ports wide open and permissions extremely.
- 11:55Speaker 1: Loose, make it easy to use figure out security later.
- 11:58Speaker 2: Right. This vulnerable ability covers things like leaving default admin
- 12:03Speaker 2: accounts enabled, you know, logging in with the username admin
- 12:06Speaker 2: and the password admin, or leaving directory listings enabled on
- 12:10Speaker 2: a web server.
- 12:10Speaker 1: Oh, I've seen that. That's where you navigate to a
- 12:13Speaker 1: URL and instead of a pretty web page loading, you
- 12:15Speaker 1: just see a raw, plaintext list of files and folders.
- 12:18Speaker 1: Sitting on the server.
- 12:19Speaker 2: Yeah, it is an absolute gold mine for attack reconnaissance.
- 12:23Speaker 2: But this category also includes something called verbose error messages.
- 12:26Speaker 2: You've probably seen this too. You do something weird, you
- 12:29Speaker 2: crash a website, and instead of a friendly oops page,
- 12:32Speaker 2: it spits out a massive wall of technical code.
- 12:34Speaker 1: A stack trace just lines and lines back end gibberish.
- 12:38Speaker 2: Right. To a developer trying to fix a bug, that
- 12:41Speaker 2: stack trace is super helpful debugging info. But to an
- 12:45Speaker 2: attacker that is a highly detailed treasure.
- 12:48Speaker 1: Map because it reveals too much exactly.
- 12:50Speaker 2: It tells them the exact version of the database you're running,
- 12:53Speaker 2: the specific server software, the internal file structure. It tells
- 12:56Speaker 2: them exactly which known exploits they should try first.
- 12:59Speaker 1: It's basically handing over the blueprints. Okay. Number seven is
- 13:02Speaker 1: another massive name in the space. Cross site scripting or XSS.
- 13:07Speaker 2: XSS is pervasive. It's historically been found in roughly two
- 13:11Speaker 2: thirds of all web applications.
- 13:13Speaker 1: Wow, two thirds.
- 13:14Speaker 2: Yeah. The key difference with XSS is that we aren't
- 13:17Speaker 2: actually attacking the server directly. We are using this server
- 13:21Speaker 2: as an unwitting accomplice to attack the end user.
- 13:23Speaker 1: So the application itself becomes the weapon.
- 13:26Speaker 2: Correct. Imagine a standard blog site with a comment section
- 13:30Speaker 2: at the bottom. The application takes whatever text you type
- 13:33Speaker 2: into that box and displays it permanently for everyone else
- 13:36Speaker 2: to read. Simple enough, But if the application doesn't strictly
- 13:39Speaker 2: sanitize or clean that input, an attacker composed a comment
- 13:43Speaker 2: that isn't text at all. It's actually a malicious snippet
- 13:46Speaker 2: of JavaScript code.
- 13:48Speaker 1: And when my browser loads that blog post to read
- 13:50Speaker 1: the comments.
- 13:51Speaker 2: Your browser implicitly trusts the website it's visiting, so it
- 13:55Speaker 2: sees the script in the comments and just blindly executes it.
- 13:58Speaker 1: And what can that script do?
- 13:59Speaker 2: It can silently steal your session cookies, It can forcibly
- 14:03Speaker 2: redirect you to a malicious fishing site that looks identical.
- 14:06Speaker 2: Or it can even force your browser to perform administrative
- 14:09Speaker 2: actions on your behalf without you ever clicking a thing.
- 14:12Speaker 1: Terrifying, absolutely terrifying. All right. Number eight insecure de serialization.
- 14:18Speaker 1: Now this sounds like straight up science fiction. What does
- 14:20Speaker 1: that actually mean? In plain English?
- 14:23Speaker 2: It does sound like sci fi. To understand this, you
- 14:25Speaker 2: really have to understand the concept of serialization first. Think
- 14:29Speaker 2: of serialization like freeze drying food for astronauts. You take
- 14:33Speaker 2: a highly complex object in code, let's say a user
- 14:37Speaker 2: profile that contains all their preferences, data and system permissions,
- 14:41Speaker 2: and you turn it into a flat stream of bytes,
- 14:44Speaker 2: like turning food.
- 14:45Speaker 1: Into powder, so you can easily send it across a
- 14:47Speaker 1: network or save it to a hard disk.
- 14:49Speaker 2: Exactly, and de serialization is simply just adding water to
- 14:52Speaker 2: turn that powder back into a real functional object in
- 14:56Speaker 2: the system's memory.
- 14:57Speaker 1: Got it, So where's the vulnerability?
- 14:59Speaker 2: The vulnerable happens when the application rehydrates that data from
- 15:03Speaker 2: an untrusted source without rigorously checking it first. Imagine if
- 15:07Speaker 2: I handed you a packet a freeze dried meal, but
- 15:10Speaker 2: I had secretly injected poison into the powder before sealing it.
- 15:13Speaker 1: When I add the water and eat it, the poison
- 15:15Speaker 1: activates exactly.
- 15:16Speaker 2: In code, the attacker intercepts and maliciously modifies the serialized
- 15:20Speaker 2: object before it gets to the server. They might tweak
- 15:23Speaker 2: a hidden field to say is admin true, or they
- 15:26Speaker 2: might inject a shell script that executes the exact millisecond
- 15:29Speaker 2: the object is recreated in memory.
- 15:31Speaker 1: Which leads to remote code execution.
- 15:33Speaker 2: Yes, which is basically game over for the server. Yeah.
- 15:36Speaker 2: The attacker owns it.
- 15:37Speaker 1: Okay, number nine. This one feels like common sense, but
- 15:41Speaker 1: I know it's a massive logistical nightmare for developers using
- 15:45Speaker 1: components with known vulnerabilities.
- 15:47Speaker 2: This is often affectionately called dependency hell in the industry. Right,
- 15:51Speaker 2: modern web applications are built like massive Lego towers. An
- 15:55Speaker 2: in house developer might only write maybe ten percent of
- 15:58Speaker 2: the actual custom code. The other ninety percent is imported
- 16:01Speaker 2: from pre built open source libraries, frameworks, and modules.
- 16:05Speaker 1: Because why reinvent the wheel?
- 16:07Speaker 2: Right?
- 16:07Speaker 1: If someone already rode a great tool for handling image uploads,
- 16:11Speaker 1: you just plug.
- 16:11Speaker 2: It in exactly. But if one of those imported lego
- 16:14Speaker 2: bricks has a deep crack.
- 16:15Speaker 1: In it, the whole tower is compromise.
- 16:17Speaker 2: Right. A perfect example is the infamous structs two vulnerability.
- 16:21Speaker 1: Oh CVE twenty seventeen five six three eight.
- 16:24Speaker 2: Yes, that's the one. That single flaw in a widely
- 16:27Speaker 2: used open source framework was the root cause behind the
- 16:30Speaker 2: massive Equifax data breach few years ago.
- 16:32Speaker 1: And the scary part is that these third party components
- 16:35Speaker 1: often run with the exact same high level privileges as
- 16:38Speaker 1: the main application itself.
- 16:39Speaker 2: Right, That's the kicker. If you use a tiny third
- 16:42Speaker 2: party library just to handle compressing files, and that library
- 16:46Speaker 2: has a known bug. The attacker doesn't just break the
- 16:49Speaker 2: compression feature, they use it to get root level administrative
- 16:52Speaker 2: access to your entire primary server.
- 16:55Speaker 1: And keeping track of thousands of these tiny dependencies and
- 16:59Speaker 1: constantly updating them is just one of the hardest jobs
- 17:02Speaker 1: in security.
- 17:03Speaker 2: It's relentless, yeah, which brings us to the final one
- 17:06Speaker 2: on the top ten list, number ten. Insufficient logging and monitoring. Now,
- 17:11Speaker 2: this isn't a flaw on the code itself. It's more
- 17:13Speaker 2: of an operational blindness.
- 17:15Speaker 1: It's the silent failure.
- 17:16Speaker 2: Completely silent. The industry statistics on this are just chilling.
- 17:20Speaker 2: The average time it takes an organization to even detect
- 17:22Speaker 2: that a major breach has occurred is often well over
- 17:25Speaker 2: two hundred days.
- 17:26Speaker 1: Over two hundred days, that is over six months of
- 17:29Speaker 1: a hostile attacker just freely roaming through your digital house.
- 17:33Speaker 2: Imagine a professional burglar secretly living in your attic for
- 17:36Speaker 2: six straight months. If you don't have security cameras logs,
- 17:40Speaker 2: you can't see them entering, you can't see them testing
- 17:42Speaker 2: the locks on the bedrooms, and when you finally realize
- 17:45Speaker 2: your jewelry is missing half a year later, you have
- 17:48Speaker 2: absolutely no forensic trail to figure out how they got in,
- 17:52Speaker 2: what else they touched, or what exactly they took.
- 17:54Speaker 1: So that is the landscape of the major threats and
- 17:57Speaker 1: it is formidable. But we promised the list listeners we
- 18:00Speaker 1: wouldn't just leave them terrified and paranoid.
- 18:03Speaker 2: Right, we have to talk solutions exactly.
- 18:04Speaker 1: We need to talk about the defense, specifically the web
- 18:08Speaker 1: application security testing methodologies.
- 18:11Speaker 2: This is where we have to fundamentally shift our mindset.
- 18:15Speaker 2: If you want to effectively defend a fortress, you have
- 18:17Speaker 2: to start thinking exactly like the person actively trying to
- 18:20Speaker 2: break into it, right, And the testing guide provides a
- 18:23Speaker 2: very rigorous step by step framework for doing exactly that.
- 18:28Speaker 2: It's not just random, chaotic hacking. It's a highly structured methodology.
- 18:32Speaker 1: And it starts right at the perimeter with information gathering
- 18:35Speaker 1: essentially reconnaissance.
- 18:36Speaker 2: Right long before you ever actively touch the target server.
- 18:39Speaker 2: You map it out from afar. We use techniques like
- 18:42Speaker 2: Google hacking Google hacking, yeah, using highly advanced search operators
- 18:46Speaker 2: in standard Google to find exposed system configuration files or
- 18:50Speaker 2: hidden error pages that Google's bots have accidentally indexed.
- 18:54Speaker 1: Ah.
- 18:54Speaker 2: We also look for standard robots dot txt files to
- 18:57Speaker 2: see exactly which private directory is this server admins are
- 19:01Speaker 2: desperately trying to hide from search.
- 19:02Speaker 1: Engines, because whatever they want to hide is exactly what
- 19:05Speaker 1: you want to look at exactly.
- 19:07Speaker 2: We deeply fingerprint the web server to know if it's
- 19:09Speaker 2: running a patche in jinks ISA, we would know exactly
- 19:13Speaker 2: what we're up against.
- 19:14Speaker 1: Once we have that detailed map, the methodology moves into
- 19:17Speaker 1: configuration and identity management testing.
- 19:20Speaker 2: This is the phase where we start quietly shaking the
- 19:22Speaker 2: door handles. We actively look for old backup files. You'd
- 19:26Speaker 2: be amazed. Developers constantly leave files named dot old or
- 19:29Speaker 2: dot back sitting directly on the live server, which often
- 19:32Speaker 2: contain unencrypted source.
- 19:33Speaker 1: Code just sitting there in public.
- 19:34Speaker 2: Yeah. We also test the underlying HTTP methods like can
- 19:38Speaker 2: I send a raw delete request to a critical system
- 19:41Speaker 2: file instead of a standard get to you request?
- 19:43Speaker 1: And what about the identity piece of that?
- 19:45Speaker 2: For identity, we aggressively test the user registration process. For example,
- 19:50Speaker 2: can I easily figure out if a target username already
- 19:53Speaker 2: exists just based on the applications error messages?
- 19:56Speaker 1: Oh?
- 19:56Speaker 2: Right?
- 19:56Speaker 1: Like if I type a password for an email address
- 19:58Speaker 1: and it specifically says word incorrect, I instantly know that
- 20:02Speaker 1: email address has a valid.
- 20:04Speaker 2: Account exactly, But if it says user not found, I
- 20:07Speaker 2: know they don't. That tiny difference in phrasing helps an
- 20:11Speaker 2: attack or build a massive verified target list for credential stuffing.
- 20:15Speaker 2: Secure apps should always return generic error messages, make them
- 20:19Speaker 2: guess okay.
- 20:20Speaker 1: Then comes the real heavy lifting, authentication and authorization testing.
- 20:24Speaker 2: Here we try to completely bypass the login schema. We
- 20:28Speaker 2: exhaustively check for default administrative credentials. You would be absolutely
- 20:32Speaker 2: stunned how often admin and admin still works on enterprise hardware.
- 20:36Speaker 1: Unbelievable.
- 20:37Speaker 2: We also test for things like directory reversal.
- 20:39Speaker 1: That's where you try to systematically walk backwards up the
- 20:42Speaker 1: server's filepath.
- 20:43Speaker 2: Right, yes, typing dot dot slash dot dot slash into
- 20:47Speaker 2: the UR parameters to try and illegally escape the public
- 20:50Speaker 2: web folder and access the operating system's root directory, right,
- 20:54Speaker 2: and we heavily test for that force browsing we talked
- 20:56Speaker 2: about earlier, simply changing numerical IDs in the URL to
- 21:00Speaker 2: see if we can view other user's private data.
- 21:02Speaker 1: And then we move to input validation. This is where
- 21:05Speaker 1: we rigorously test for all those massive injections. We talked
- 21:08Speaker 1: about at the top of the session.
- 21:09Speaker 2: Yes, and the core technique here is called fuzzing. Fuzzing,
- 21:14Speaker 2: we basically throw absolute garbage at every single input field
- 21:17Speaker 2: on the app. We aggressively inject SQL command characters, broken
- 21:22Speaker 2: XML structures, and just massive, multi megabyte strings of random
- 21:26Speaker 2: text to try and forcefully trigger buffer overflows.
- 21:29Speaker 1: Now, a buffer overflow that's basically sending more raw data
- 21:33Speaker 1: than the system's allocated memory block can physically hold.
- 21:36Speaker 2: Right exactly if the application code doesn't strictly enforce length limits,
- 21:40Speaker 2: that extra garbage data spills over into adjacent memory spaces.
- 21:44Speaker 1: Which can completely crash the system.
- 21:46Speaker 2: It crashes it, or worse it maliciously overwrites legitimate executable code.
- 21:52Speaker 2: With the attacker zone instructions, we are basically stress testing
- 21:55Speaker 2: every single text box that accepts user data.
- 21:58Speaker 1: The testing guide also has a really section on business
- 22:01Speaker 1: logic testing. Now this feels the most human out of
- 22:04Speaker 1: all of them. You can't really just automate this with
- 22:06Speaker 1: the script, can you not easily know?
- 22:09Speaker 2: Because business logic flaws aren't syntax errors in the code,
- 22:13Speaker 2: they are fundamental flaws in the human rules the application enforces.
- 22:17Speaker 1: Give me an example of that.
- 22:18Speaker 2: Imagine a standard e commerce website. You put a laptop
- 22:21Speaker 2: in your cart. What happens if I use a proxy
- 22:24Speaker 2: tool to intercept that final checkout request and I manually
- 22:27Speaker 2: change the price of the item from one thousand dollars
- 22:30Speaker 2: down to zero dollars.
- 22:31Speaker 1: If the server lazily relies on the price data sent
- 22:34Speaker 1: by the browser instead of checking its own secure database, you.
- 22:37Speaker 2: Get a free laptop. Wow? Or what if I try
- 22:40Speaker 2: to purchase a negative quantity of items like negative five laptops?
- 22:44Speaker 2: Does the system glitch out and actually credit my bank
- 22:47Speaker 2: account for the cost of five laptops? That is wild?
- 22:49Speaker 2: It is This phase requires deeply understanding what the application
- 22:53Speaker 2: is actually supposed to do in a real world and
- 22:56Speaker 2: creatively trying to use its own economic rules against it.
- 22:59Speaker 1: And finally, we wrap up with client side testing.
- 23:01Speaker 2: Which is all about protecting the end user's personal browser environment.
- 23:05Speaker 2: We heavily look for dom based cross site scripting. We
- 23:08Speaker 2: deeply check for things like clickjacking.
- 23:10Speaker 1: Clickjacking that's the invisible frame attack right exactly.
- 23:13Speaker 2: An attacker essentially puts a fully transparent, invisible layer over
- 23:17Speaker 2: a legitimate website. You visit the page, you think you
- 23:21Speaker 2: are safely clicking a play video button.
- 23:24Speaker 1: But you are actually clicking a hidden trancefer All Funds
- 23:27Speaker 1: button on your banking site, which the attacker has loaded
- 23:30Speaker 1: in a completely invisible window right underneath your cursor. Man,
- 23:34Speaker 1: this really highlights that cybersecurity is entirely fractal every single
- 23:39Speaker 1: level you zoom in, from the broad network down to
- 23:41Speaker 1: the code, to the human business logic, to the user's
- 23:44Speaker 1: local browser. There's just more and more complexity.
- 23:48Speaker 2: And that is the absolute biggest takeaway for anyone learning
- 23:50Speaker 2: this stuff. Security is not a product you can just
- 23:53Speaker 2: buy off a shelf. Yeah, you don't just install a
- 23:55Speaker 2: fancy firewall and go home for the weekend.
- 23:58Speaker 1: It's a continuous loop.
- 23:59Speaker 2: It is you build, you relentlessly, test, you diligently log,
- 24:03Speaker 2: you actively monitor, and then you wake up and do
- 24:06Speaker 2: it all over again.
- 24:06Speaker 1: I really want to leave you the listener with a
- 24:09Speaker 1: specific educational audio exercise to cement all these concepts, a
- 24:14Speaker 1: sort of personal mental audit that you can do right now.
- 24:17Speaker 2: I love that idea. Let's do it.
- 24:18Speaker 1: Pick one application that you use heavily for your work
- 24:21Speaker 1: or just in your daily life. Open it up first,
- 24:24Speaker 1: look up at the urlbar. Is it running on HTTPS. Now,
- 24:28Speaker 1: look at the standard input fields. Ask yourself mentally, if
- 24:31Speaker 1: I put a single sequel quote right here, what does
- 24:33Speaker 1: the system do if I change this account ID number
- 24:36Speaker 1: in the address bar? Whose private data do I suddenly see?
- 24:40Speaker 2: And honestly, don't just wonder about the front end, think
- 24:42Speaker 2: critically about the back end. Ask yourself, if I did
- 24:46Speaker 2: something actively malicious on this platform right now, would any
- 24:50Speaker 2: human being actually know check your internal logs. If the
- 24:53Speaker 2: honest answer is no, you have serious work to do.
- 24:56Speaker 1: It brings us right back to that terrifying asymmetry of
- 24:59Speaker 1: modern cyber warfare. Attackers only ever need to get lucky
- 25:02Speaker 1: one single time, but defenders, defenders need to be right
- 25:06Speaker 1: every single time.
- 25:07Speaker 2: That is the fundamental, harsh truth of the industry. One
- 25:11Speaker 2: unpatched third party library, one week reuse password, one unlocked
- 25:16Speaker 2: bathroom window is literally all it takes. And that is
- 25:19Speaker 2: exactly why structured frameworks like o wasper are so incredibly essential.
- 25:23Speaker 2: They give us the rigorous checklist we need to help
- 25:26Speaker 2: us be right as often as humanly possible.
- 25:28Speaker 1: So, whether you are the architect actively building the digital fortress,
- 25:31Speaker 1: or you're the guard carefully watching the security monitors keep
- 25:35Speaker 1: checking those windows.
- 25:36Speaker 2: Stay curious, and stay secure.
- 25:38Speaker 1: Thanks for diving in with us today. We'll catch you
- 25:40Speaker 1: on the next deep dive