Latest / CyberCode Academy / Course 27 - Hacking Web Applications, Penetration Testing, CTF | Episode 14: Web Essentials: Files, Extensions, and Enumeration
Transcript
- 0:00Speaker 1: Have you ever eaten a like a really high end restaurant.
- 0:03Speaker 2: Oh yeah, like the ones with the tiny portions.
- 0:05Speaker 1: Yeah, exactly. You know the vibe I'm talking about. The
- 0:07Speaker 1: dining room is pristine, the lighting is well, it's dim
- 0:11Speaker 1: and perfect. The music is subtle. It feels completely effortless.
- 0:15Speaker 1: But if you happen to catch a glimpse of the
- 0:18Speaker 1: kitchen when those swinging doors fly open, it's a totally
- 0:23Speaker 1: different reality.
- 0:24Speaker 2: Oh. Absolutely, it's chaos in there. Yeah, I mean it's loud,
- 0:27Speaker 2: there are half prepped ingredients scattered all over the counters,
- 0:30Speaker 2: maybe a mop bucket sitting in the corner. It's where
- 0:32Speaker 2: the actual work happens.
- 0:34Speaker 1: Yah, exactly. And that image, the contrast between the polished
- 0:39Speaker 1: front of house and the really messy back of house,
- 0:41Speaker 1: that is the perfect analogy for the World Wide Web.
- 0:44Speaker 1: It really is, because we spend so much time looking
- 0:46Speaker 1: at the dining room, right, the user interface, the beautiful CSS,
- 0:49Speaker 1: the curated homepage. But today we are we're pushing through
- 0:54Speaker 1: those swinging doors, We're going into the kitchen.
- 0:56Speaker 2: We are looking at the server file system, the place
- 0:59Speaker 2: where the digital sausage gets made, and honestly, it is
- 1:03Speaker 2: often messy. Chaotic and just full of stuff that was
- 1:08Speaker 2: supposed to be thrown away or hidden.
- 1:10Speaker 1: Yeah, we're not talking about the code meant for you,
- 1:12Speaker 1: the user to see. We're talking about the files hidden
- 1:15Speaker 1: in plane sight, the forgotten backups, the instruction manuals for bots,
- 1:20Speaker 1: and the maps that accidentally reveal the entire architecture of
- 1:23Speaker 1: a site.
- 1:24Speaker 2: This is a really important deep dive. If you're a developer,
- 1:27Speaker 2: you need to consider this a lesson in hygiene. You
- 1:29Speaker 2: know how to keep your kitchen clean. But if you're
- 1:32Speaker 2: into cybersecurity, are just generally curious. This is all about reconnaissance.
- 1:36Speaker 2: Today we're going to learn how to identify, enumerate, and
- 1:39Speaker 2: interact with these digital leftovers.
- 1:41Speaker 1: You just use that word enumerate. I want to pause
- 1:43Speaker 1: on that for a second, because, well, it comes up
- 1:45Speaker 1: a lot in security context.
- 1:47Speaker 2: It does. Yeah, numeration sounds complex, but it's actually a
- 1:49Speaker 2: really simple key concept. It just means systematically listing out
- 1:53Speaker 2: what is there. Because on a web server you can't
- 1:55Speaker 2: always see a nice, neat list of files like you
- 1:58Speaker 2: do on your own computer desktop. You have to guess
- 2:01Speaker 2: or you have to know exactly where to look to
- 2:02Speaker 2: find them.
- 2:03Speaker 1: So today is basically a guide on where to look.
- 2:06Speaker 1: And here is our roadmap for the deep dive. We're
- 2:09Speaker 1: going to start with the do not enter sign of
- 2:11Speaker 1: the Internet, a file called robots dot txt. Then we'll
- 2:15Speaker 1: look at the layout of the building with sitemap dot xml.
- 2:19Speaker 1: We'll talk about default pages and how they betray a
- 2:22Speaker 1: server's identity. And finally we're getting into the heavy.
- 2:25Speaker 2: Hitters, the loot yes, compressed archives, exposed databases, and the
- 2:30Speaker 2: total time machine that is the get folder.
- 2:32Speaker 1: It honestly sounds like a list of unforced errors.
- 2:34Speaker 2: It is exactly what it is, just pure human error.
- 2:36Speaker 1: All right, let's start with the most famous one, robots
- 2:39Speaker 1: dot txt. I feel like I see this reference constantly
- 2:43Speaker 1: in tech circles, but let's unpack what it actually is. Fundamentally,
- 2:46Speaker 1: is just a simple text file sitting at the root
- 2:48Speaker 1: of a domain.
- 2:48Speaker 2: Right, that's right. It's a standard that has been around forever.
- 2:51Speaker 2: Its entire job is to communicate with user agents. Now,
- 2:55Speaker 2: user agent is just technical shorthand for webcrawlers or spiders
- 2:59Speaker 2: like Google. Exactly, software like the Google bot or BingBot
- 3:03Speaker 2: that traverses the Internet to index content.
- 3:07Speaker 1: So it's basically a set of house rules for search engines.
- 3:10Speaker 2: Precisely, it's a negotiation. The file uses directives, and the
- 3:14Speaker 2: most common one you'll see is disallow. You are literally
- 3:18Speaker 2: telling about, hey, please do not look inside this specific folder.
- 3:22Speaker 1: Okay, but why would I want to do that? Why
- 3:24Speaker 1: hide from Google?
- 3:25Speaker 2: Well, maybe you have a folder for your admin panel
- 3:27Speaker 2: images or a script folder that doesn't have any readable
- 3:30Speaker 2: content for regular users. You don't want Google wasting its
- 3:33Speaker 2: time indexing that stuff. Or you can also set a
- 3:36Speaker 2: crawl delay.
- 3:36Speaker 1: A crawl delay.
- 3:37Speaker 2: Yeah, imagine you're running a server on a very small,
- 3:40Speaker 2: cheap machine, a potato server as we call it. If
- 3:43Speaker 2: Google sends a thousand requests a second to index your site,
- 3:47Speaker 2: it might actually crash your server. So robots dot TXD
- 3:50Speaker 2: can say, hey, wait one second between requests please.
- 3:52Speaker 1: Oh that makes a lot of sense. I also saw
- 3:54Speaker 1: in our notes that it uses pattern matching. It's not
- 3:56Speaker 1: just a hard coded list of files, right.
- 3:58Speaker 2: It uses basic expressions or rejects. You'll see asterisks used
- 4:02Speaker 2: as wild cards, and asterisk matches any sequence of text.
- 4:06Speaker 2: So if I write just allow colon slash private slash asterisk,
- 4:09Speaker 2: I'm saying block access to everything inside.
- 4:12Speaker 1: The private folder and the dollar sign.
- 4:13Speaker 2: The dollar sign usually matches the end of a URL.
- 4:16Speaker 2: It allows the developer to write broad rules without having
- 4:19Speaker 2: to list every single file individually.
- 4:21Speaker 1: Okay, so that all sounds very functional and honestly very polite.
- 4:24Speaker 1: But here is the part that always gets me, and
- 4:26Speaker 1: I think this is where the security angle comes in.
- 4:29Speaker 1: We put this file up to keep things private, But
- 4:32Speaker 1: isn't listing the exact places you don't want.
- 4:33Speaker 2: People to go incredibly revealing?
- 4:35Speaker 1: Yes, yeah, it seems totally counterproductive.
- 4:38Speaker 2: You have hit on the central irony of web security
- 4:40Speaker 2: right there. Robots dot txt relies entirely on the honor system.
- 4:45Speaker 2: It asks polite robots like Google or Bang to stay away,
- 4:50Speaker 2: but a hacker, a hacker isn't polite.
- 4:53Speaker 1: Right to a hacker, robots dot txt isn't a do
- 4:56Speaker 1: not enter sign, It's a treasure map exactly.
- 4:59Speaker 2: Think about if a developer explicitly writes disallow colon slash
- 5:05Speaker 2: admin dash backups. They've just told the entire world that
- 5:10Speaker 2: a folder called admin backups exists. They've revealed the directory
- 5:15Speaker 2: structure they were trying so hard to hide.
- 5:17Speaker 1: It's the stressand effect of web files by saying don't
- 5:20Speaker 1: look here. You're practically guaranteeing everyone is going to look there.
- 5:23Speaker 2: You are leaking information by trying to suppress it. You're
- 5:26Speaker 2: telling an attacker exactly where your most sensitive endpoints are located.
- 5:30Speaker 1: So, practically speaking, if I want to see this map,
- 5:33Speaker 1: how hard is it? Do I need to be some
- 5:35Speaker 1: sort of coding wizard.
- 5:36Speaker 2: Not at all. That is the beauty or the horror
- 5:38Speaker 2: of it. Go to your browser right now, type a
- 5:40Speaker 2: website URL, adds slash robots dot txt to the very end,
- 5:45Speaker 2: and hit enter. That's it. That is manual enumeration.
- 5:48Speaker 1: Wow, that's disturbingly easy. But let's say I'm a security
- 5:51Speaker 1: researcher and I need to stand at thousand sites to
- 5:53Speaker 1: see if they are exposing something they shouldn't. I assume
- 5:55Speaker 1: I'm not typing that manually into Chrome A thousand times.
- 5:58Speaker 2: No, definitely not. That's when you bring in automation. You
- 6:00Speaker 2: use a tool like endmap enmap.
- 6:01Speaker 1: That's the network mapper, right. We've touched on that in
- 6:03Speaker 1: previous deep doves.
- 6:04Speaker 2: See Absolute gold Standard. Endmap has a scripting engine called NSE,
- 6:09Speaker 2: and there is a script literally called httpdash robots dot txt.
- 6:15Speaker 2: You pointed at a server or a list of servers,
- 6:17Speaker 2: and it pulls the file and parses the disallowed entries
- 6:20Speaker 2: for you automatically.
- 6:21Speaker 1: And for the penetration testers listening. I saw metasploit mentioned
- 6:24Speaker 1: as well.
- 6:25Speaker 2: Of course, Metasplate is a massive framework for testing security.
- 6:29Speaker 2: It is a module specifically for this. It's scanner slash,
- 6:31Speaker 2: http slash, robots underscore TXD. You set your target host,
- 6:35Speaker 2: you're rhos's maybe toggless is sell to it true if
- 6:38Speaker 2: it's an HTTTS site and let it rip. It indexes
- 6:41Speaker 2: the forbid zones for you and generates a nice, clean report.
- 6:44Speaker 1: So the real lesson here for developers is don't put
- 6:47Speaker 1: sensitive paths and robots dot txt if you actually want
- 6:51Speaker 1: them to stay secret correct.
- 6:52Speaker 2: Security through obscurity is generally a bad idea, but security
- 6:55Speaker 2: through please don't look here's even worse. If you really
- 6:58Speaker 2: want to block a folder, use password protection or server
- 7:01Speaker 2: side rules, not a text file that just asks nicely.
- 7:04Speaker 1: Okay, let's shift gears. Let's move from the do not
- 7:06Speaker 1: enter sign to the building directory the sitemap dot xml.
- 7:10Speaker 2: This is the exact flip side of the coin. If
- 7:13Speaker 2: robots dot txt is about hiding things, sitemap dot xml
- 7:17Speaker 2: is about shouting here, I am look at me.
- 7:20Speaker 1: This is purely for SEO right search engine optimization, ensuring
- 7:24Speaker 1: Google finds every obscure blog post on your.
- 7:26Speaker 2: Site right, because sometimes internal linking on a site is
- 7:29Speaker 2: just terrible. Maybe you have a page that isn't linked
- 7:31Speaker 2: anywhere in the main menu, A crawler might get stuck
- 7:34Speaker 2: and never find it. The sitemap is an XML file,
- 7:37Speaker 2: a structured text file that lists every single URL the
- 7:40Speaker 2: developer wants indexed. Really large sites will have multiples of these,
- 7:43Speaker 2: one for products, one for the blog, one for user profiles.
- 7:47Speaker 1: But the risk seems identical to robots dot txt. If
- 7:50Speaker 1: it's just a list of pages, where's the actual danger?
- 7:52Speaker 2: The danger is an oversight. Developers often use plugins or
- 7:55Speaker 2: automated scripts to generate these maps. They just click a button.
- 7:58Speaker 2: This s as build sitemap. But if you have a
- 8:00Speaker 2: drafts folder, or a staging page, or a clientless V
- 8:03Speaker 2: two dot HTML that isn't password protected and the script
- 8:07Speaker 2: just blindly adds it to the sitemap.
- 8:09Speaker 1: Then it goes straight to Google, and.
- 8:10Speaker 2: If it's on Google, it is public record. I have
- 8:12Speaker 2: seen staging environments and half innish pages pop up in
- 8:16Speaker 2: site maps just because nobody bothered to check the outdo
- 8:19Speaker 2: generated file before publishing it.
- 8:21Speaker 1: And I assume finding this file is just as easy
- 8:23Speaker 1: as finding the robots file.
- 8:25Speaker 2: Oh yeah, slash sitemap dot XMML or use the nmap
- 8:30Speaker 2: script http sitemap dash generator. It's really all about checking
- 8:35Speaker 2: the standard locations. It's like checking the pockets of the
- 8:37Speaker 2: website to see what falls out.
- 8:39Speaker 1: Okay, so those are the files that tell us about
- 8:41Speaker 1: the site structure. Now let's talk about the files that
- 8:43Speaker 1: tell us about the server itself. Default pages.
- 8:46Speaker 2: Ah, yes, the hello world of the Internet.
- 8:49Speaker 1: We have all seen them. You spin up a new
- 8:51Speaker 1: server and before you even upload your code, there's a
- 8:53Speaker 1: placeholder index dot HTML, default dot htm, index dot php.
- 8:59Speaker 1: It usually says some thing incredibly generic. Why does a
- 9:02Speaker 1: security pro actually care about a blank page?
- 9:05Speaker 2: Because that blank page usually has a logo on it.
- 9:07Speaker 1: A logo what do you mean?
- 9:09Speaker 2: Well, if you see the default ICE's Windows server page,
- 9:12Speaker 2: it's very distinctive, usually a big blue graphic, you know
- 9:16Speaker 2: instantly that the operating system behind the site is Windows.
- 9:19Speaker 2: If you see the default apatche it works page, you
- 9:21Speaker 2: know it's likely Linux.
- 9:23Speaker 1: Oh I see it's finger printing.
- 9:24Speaker 2: Exactly, it's digital fingerprinting. You are profiling the target. It
- 9:28Speaker 2: tells you the technology stack, and sometimes even the specific
- 9:32Speaker 2: version number is printed right there in small text on
- 9:34Speaker 2: the page.
- 9:35Speaker 1: And if a site is supposedly live but it's still
- 9:37Speaker 1: showing a default page somewhere in a subdirectory, it.
- 9:41Speaker 2: Heavily implies negligence. Maybe it's an abandoned project. Maybe it's
- 9:44Speaker 2: a test server someone forgot to turn off. And let
- 9:46Speaker 2: me tell you, abandoned servers usually mean unpatched servers.
- 9:50Speaker 1: Which are basically the easiest servers to break into.
- 9:53Speaker 2: Precisely to an attacker, a default page looks like a
- 9:56Speaker 2: four rents sign on an unlocked door. It screams nobody
- 10:00Speaker 2: is watching this house.
- 10:01Speaker 1: It's amazing how much you can learn without ever actually
- 10:04Speaker 1: hacking anything. You're literally just reading the public signs.
- 10:07Speaker 2: That is ninety percent of reconnaissance. Yeah, before you ever
- 10:10Speaker 2: type a line of malicious code, you just look at
- 10:12Speaker 2: what the server is freely telling you.
- 10:14Speaker 1: All right, let's get into the scary stuff. The outline
- 10:17Speaker 1: calls this next section the loot. We're transitioning from configuration
- 10:21Speaker 1: files to actual data, things that are strictly not supposed
- 10:25Speaker 1: to be public.
- 10:25Speaker 2: Yes, this is where we move from mere information disclosure
- 10:29Speaker 2: to critical vulnerability.
- 10:31Speaker 1: Let's start with compressed archives, or as I like to
- 10:34Speaker 1: call them, the lazy backup.
- 10:36Speaker 2: Oh, we have all been there. You're a developer. It's
- 10:38Speaker 2: two am and you need to update a plug in
- 10:41Speaker 2: or change some core code on the live site. You think,
- 10:43Speaker 2: I better back this up first, just in case I
- 10:45Speaker 2: bray something.
- 10:46Speaker 1: Which is a responsible thing to do. We always encourage backups.
- 10:49Speaker 2: Is a totally responsible thing to do. But then in
- 10:51Speaker 2: a rush, you zip up the whole directory. You name
- 10:55Speaker 2: it backup dot ZIPA or site dot dot goz, and
- 10:59Speaker 2: you leave it inside the public web folder.
- 11:01Speaker 1: And then you just forget to delete it.
- 11:03Speaker 2: And you forget, you go to sleep, and it stays
- 11:05Speaker 2: there forever.
- 11:06Speaker 1: So if I'm an attacker, do I just start guessing
- 11:08Speaker 1: filenames www dot example, dot com, slash, backup dot zip.
- 11:13Speaker 2: That is exactly what fuzzing tools do. They run through
- 11:16Speaker 2: thousands of common file names in seconds, and if they
- 11:19Speaker 2: hit it, they download your entire source code, database, passwords, apikeys,
- 11:24Speaker 2: customer logs. It's all just sitting inside that archive.
- 11:28Speaker 1: Let's talk about the extensions, because this is often where
- 11:30Speaker 1: people get tripped up. Everyone knows dot zip and dot rare,
- 11:34Speaker 1: but in the Linux world and most of the web
- 11:37Speaker 1: runs on Linux, we see dot tr dot ga. What
- 11:42Speaker 1: is that exactly?
- 11:44Speaker 2: It's a two step process, which is why confuses people.
- 11:47Speaker 2: TAR stands for tape archive. It's a throwback to the
- 11:49Speaker 2: old days of magnetic tape reels. TAR bundles a bunch
- 11:52Speaker 2: of files together into one single file, but it doesn't
- 11:55Speaker 2: compress them. It just glues them together into a block.
- 11:58Speaker 1: Okay, so that's the dot tar part. It's just a bundle.
- 12:00Speaker 2: Right. Then you have g zip which does the squashing,
- 12:02Speaker 2: the actual compression.
- 12:03Speaker 1: Ye.
- 12:04Speaker 2: So dot tr dot ga is a bundle that has
- 12:06Speaker 2: been squashed down to save space.
- 12:07Speaker 1: The notes have a specific call out for the command
- 12:10Speaker 1: line here. If you find one of these, or if
- 12:12Speaker 1: you're the developer making one, you need to know your tarflags.
- 12:15Speaker 1: I feel like everyone forgets these and has to search
- 12:18Speaker 1: for them every single time.
- 12:19Speaker 2: It is arguably the most searched command in Linux history.
- 12:23Speaker 2: But there is a great mnemonic. The command is tar,
- 12:26Speaker 2: followed by c ZVF CZVF.
- 12:29Speaker 1: Okay, walk us through what those letters mean.
- 12:31Speaker 2: C is for create. You are making a new archive.
- 12:35Speaker 2: Z is for zip, you were telling it to use
- 12:37Speaker 2: g zip compression. V is for verbos. This is important.
- 12:41Speaker 2: It means tell me what you were doing. It lists
- 12:44Speaker 2: the files on the screen as they are added, so
- 12:45Speaker 2: you aren't just staring at a blinking cursor wondering for
- 12:48Speaker 2: froze and F is for file. It means the very
- 12:50Speaker 2: next thing I type is going to be the file.
- 12:52Speaker 1: Name create, zip, verbose file CZVF. That is actually really helpful.
- 12:57Speaker 2: It sticks with you and if you find a file
- 12:59Speaker 2: and you want to open it to extract it, you
- 13:01Speaker 2: just swap the C for create with an X for
- 13:03Speaker 2: XRAC so tardash XCVF.
- 13:06Speaker 1: Simple enough. Now, finding a backup is bad, but finding
- 13:09Speaker 1: a database file that feels like game over, Oh, that is.
- 13:11Speaker 2: The holy grail. If you grab the database usually on
- 13:13Speaker 2: the company.
- 13:14Speaker 1: What exactly are we looking for here? Dot sesqua files.
- 13:17Speaker 2: Dottes quile is common for database dumps, like a backup
- 13:20Speaker 2: of a huge myschool database. But the really sneaky ones
- 13:24Speaker 2: are this self contained databases like Squillite. You'll see extensions
- 13:29Speaker 2: like Dot's light, dots quite three or just dot TB.
- 13:32Speaker 1: Why would a database be a single file sitting in
- 13:35Speaker 1: a web directory. Ourn't database is usually these big, complex
- 13:38Speaker 1: services running independently in the background.
- 13:40Speaker 2: Usually yes, but for mobile apps or smaller web apps,
- 13:44Speaker 2: developers love steel Light because it's serverless. The entire database
- 13:48Speaker 2: is literally just one file on the disc. It's super convenient.
- 13:51Speaker 2: But if you put that file in a public folder
- 13:53Speaker 2: so your app can read it, and you don't tell
- 13:55Speaker 2: the server to block external users from downloading.
- 13:58Speaker 1: It, anyone can just grab it.
- 13:59Speaker 2: Anyone just type the URL and it downloads to their desktop.
- 14:02Speaker 1: And once you have it, how do you read it?
- 14:04Speaker 1: I assume it's not clear text if I open.
- 14:06Speaker 2: It in notepad, not entirely. If you open it a notepad,
- 14:08Speaker 2: it looks like alien gibberous with a few words scattered around.
- 14:11Speaker 2: You'd eat a dedicated tool. If you are a visual person,
- 14:13Speaker 2: there's a fantastic open source tool called dB browser for Squale.
- 14:17Speaker 1: Oh I've used that. It looks almost exactly like Excel exactly.
- 14:20Speaker 2: You open the dot dB file on it and you
- 14:22Speaker 2: can just click to the tables, see the columns, read
- 14:25Speaker 2: the data. It's incredibly intuitive.
- 14:27Speaker 1: And for those who prefer the terminal the command line folks, you.
- 14:30Speaker 2: Use the squite three command You just pass it the
- 14:33Speaker 2: file name. Then you are speaking SQL structured query.
- 14:36Speaker 1: Language, the language of data.
- 14:38Speaker 2: Right, you type dot tables to see what's in there,
- 14:41Speaker 2: usually things like users orders, credit cards. And then you
- 14:44Speaker 2: use the command that every single security pro knows by heart,
- 14:48Speaker 2: select star from table.
- 14:50Speaker 1: Name select star. The star means everything, right, give me everything.
- 14:53Speaker 2: Every row, every column. It is immediate data exfiltration.
- 14:56Speaker 1: It's chilling how easy that is if the file is
- 14:59Speaker 1: left exposed.
- 15:00Speaker 2: It really is. It emphasizes exactly why access control is
- 15:03Speaker 2: so vital. You have to explicitly tell the web server, hey,
- 15:06Speaker 2: serve the HTML files, but under no circumstances should you
- 15:10Speaker 2: ever serve the dot dB file.
- 15:11Speaker 1: There is one last item in our loot category, and
- 15:14Speaker 1: this one is specifically for the developers in the audience.
- 15:16Speaker 1: The dot get folder.
- 15:17Speaker 2: Oh, this is the most dangerous one because it is
- 15:20Speaker 2: invisible by.
- 15:21Speaker 1: Default for the listener who might not know. Get is
- 15:24Speaker 1: a version control system. It tracks changes in your code
- 15:27Speaker 1: over time.
- 15:28Speaker 2: Right. It allows you to save snapshots of your project
- 15:31Speaker 2: as you work. To do that, it creates a hidden
- 15:34Speaker 2: folder called dot get at the very root of your project.
- 15:38Speaker 2: This folder contains everything, and I mean everything. The entire
- 15:42Speaker 2: history of the project, every change, every deletion, every comment
- 15:46Speaker 2: you've ever made since day one.
- 15:47Speaker 1: So if a server is misconfigured and exposes this hidden
- 15:50Speaker 1: folder to the public web, it is.
- 15:52Speaker 2: A time machine. I can't just see your code right now.
- 15:55Speaker 2: I can see your code from two years ago.
- 15:57Speaker 1: But why does that matter? If I deleted code two
- 15:59Speaker 1: years ago, so surely I don't care about it anymore.
- 16:02Speaker 2: You might not care, but a hacker definitely does, because
- 16:05Speaker 2: maybe two years ago you accidentally hard coded an AWS
- 16:08Speaker 2: password or a master apikey into a file. You realize
- 16:12Speaker 2: your mistake five minutes later, panicked and deleted it. In
- 16:15Speaker 2: the current live version of the site, it's gone, but
- 16:18Speaker 2: in the dot get folder, get remembers forever. If I
- 16:22Speaker 2: can access your dot get folder, I can use simple
- 16:24Speaker 2: commands like get log to read all your commit messages,
- 16:27Speaker 2: and developers often write incredibly helpful messages like whips removed atikey.
- 16:32Speaker 1: Oh no. That is basically painting a target on it.
- 16:35Speaker 2: That points me exactly to the point in history where
- 16:37Speaker 2: the key exists. I can check out that old version,
- 16:39Speaker 2: grab a key, and I am in your AWS environment.
- 16:42Speaker 1: That is terrifying. It's like someone digging through your trash,
- 16:45Speaker 1: but your trash is perfectly indexed and searchable.
- 16:48Speaker 2: By date exactly. Attackers look for this specifically, they constantly
- 16:51Speaker 2: scan for slash dot get slash canfig. If they can
- 16:54Speaker 2: reach that file, they can essentially download the whole repository
- 16:57Speaker 2: and reconstruct your site's entire history locally.
- 17:00Speaker 1: So bringing this all together, we have covered robots, dot txt,
- 17:03Speaker 1: the confession sitemap, dot xml, the map defaults, the fingerprint,
- 17:10Speaker 1: and the loot which is backups and databases.
- 17:12Speaker 2: The common thread here is that the web is just files.
- 17:15Speaker 2: It feels magical when you use a browser you see
- 17:18Speaker 2: buttons and slick animations, but underneath all of that, it's
- 17:20Speaker 2: just folders, text files and permissions.
- 17:23Speaker 1: And for you, our listener, whether you are learning to
- 17:26Speaker 1: defend systems or you're just curious about how the Internet
- 17:28Speaker 1: actually works, what is the big takeaway here?
- 17:31Speaker 2: Don't trust the hidden attribute. Just because a link isn't
- 17:34Speaker 2: directly on the homepage doesn't mean it's inaccessible. If you
- 17:38Speaker 2: are a developer, audit your files, check your permissions religiously.
- 17:42Speaker 2: If you are a learner, stay curious. These files are
- 17:45Speaker 2: public for a reason. You need to understand why.
- 17:48Speaker 1: We like to leave you with a challenge, a way
- 17:49Speaker 1: to get your hands dirty. Legally, of course.
- 17:52Speaker 2: Always legally, do not scan servers you do not own
- 17:55Speaker 2: or have permission to test. But here is your mental
- 17:58Speaker 2: lab for the week.
- 17:59Speaker 1: What's step one?
- 18:00Speaker 2: First, basic reconnaissance. Pick a major website you use every day,
- 18:03Speaker 2: a new site or retailer, whatever type slash robots dot
- 18:07Speaker 2: txt after their URL. Just read it. See what they're disallowing.
- 18:11Speaker 2: It's a really fascinating glimpse into what they consider sensitive
- 18:15Speaker 2: or what parts of their site are just meant for
- 18:17Speaker 2: back end maintenance.
- 18:18Speaker 1: That's easy enough Step two.
- 18:19Speaker 2: Step two requires a small download. Go search the web
- 18:23Speaker 2: for a sample schoolight database. There are plenty of dummy
- 18:26Speaker 2: files online for testing data sets of movies or geography,
- 18:30Speaker 2: things like that. Download one to your computer and do
- 18:33Speaker 2: what with it. Crack it open, download dB browser and
- 18:36Speaker 2: click through the table so you can see the visual representation.
- 18:39Speaker 2: Then try to do the exact same thing in your
- 18:42Speaker 2: command line using quite three. Compare the experience. Feel the
- 18:46Speaker 2: difference between clicking a friendly button and typing select star
- 18:49Speaker 2: from users.
- 18:50Speaker 1: I love that it completely changes your perspective on the data.
- 18:53Speaker 1: It makes it feel much more tangible exactly.
- 18:56Speaker 2: It stops being abstract data floating in the cloud and
- 18:59Speaker 2: becomes the file you can manipulate with your own hands,
- 19:02Speaker 2: and that really is the first step to understanding how
- 19:04Speaker 2: to protect it, which.
- 19:05Speaker 1: Brings us to a final thought for you to chew on.
- 19:08Speaker 1: We spend so much time securing the front door of
- 19:10Speaker 1: our applications with complex passwords and multi factor authentication, But
- 19:15Speaker 1: if you leave the blueprints to the house sitting on
- 19:17Speaker 1: the front lawn, does the lock on the door really matter?
- 19:21Speaker 2: The side door is usually unlocked if you know where
- 19:23Speaker 2: to look.
- 19:24Speaker 1: Keep thinking. Thanks for joining us on this deep dive.
- 19:26Speaker 1: We'll see in the next one.