Brad: And we are back with OWASP Top 10 Part 8 from 2025. Yes, we know it is almost 2027. Don't blame us. We just take a long time to do things. back here with with Jordan, the cat with the ears. If you're not on YouTube, you should check it out. It's kind of goofy looking, but we don't hold it against her. So welcome, Jordan.
Jordan Natter: Howdy, howdy. Glad to be back.
Brad: So, so right. All right. We're we finally made it to part eight of 10. We have two more to go after this, and we will finally have finished the entire OWASP top 10. and then next, I guess we do the OWASP web testing guide. Was that like 175 episodes? No, I'm kidding. We're not doing that.
Jordan Natter: Yeah, I
Brad: I would love to. That would be super fun. so so this is this particular one, I think, is timely, right? We almost could have done this on purpose. and and I and I say that because I might argue that if there were a 2026 OWASP top 10, this one would be at the top. I think this thing would fly to number one overnight for the reasons we talked about in the pre-show, which we'll get to, right?
Jordan Natter: Yes, completely, completely agree.
Brad: so so let's let's talk about it, right? It it's it's been at position eight for at least two renditions of the OWASP top 10. Like I said, the next one might change. We'll have to reach out to Dave and see what he thinks about that. I don't think Dave cares what we think, but even if he did, I think it would be interesting to have that conversation. So this is software or data integrity failures. So, what does that actually translate to in plain language? It's basically just using software code that is untrusted. it could be, you know, lacking from an integrity perspective. It could, and this can take a million different forms, right? It could be that you imported a library in your mobile app and you know it's got vulnerabilities in it, or maybe it's been compromised by a threat actor upstream somewhere. you know, could also be using or you could also be trusting the importation of things. So when we start talking about firmware updates on appliances. I actually have a lot of experience with that. I used to do a lot of IoT pen testing on health, how would we describe that? Like healthcare devices. and and so, you know, so so there's a lot, a lot of stuff to cover here. so what what is your perspective on this? So so what like if you had to describe this to someone, what how would you explain it?
Jordan Natter: Ooh, okay. So I think how I would describe it is just pretty much any third party resource that you're importing without any verification at all, right? Whether that third party is n maybe something that you're doing or something that you're importing from somewhere else, or something that you're maybe like building in-house and you didn't validate and validate it in any capacity, just some other thing that you're now importing into your application and being like, cool. We're not gonna validate it at all. We're just gonna see what happens.
Brad: So so you use the word resource. I think that's probably the best word for this because it it's it
Jordan Natter: He
Brad: more accurately describes the breadth of what could be going on. And so, for example, I'm gonna skip ahead just a little bit to the the first war story because it's interesting to me, right? and so there are a lot of scenarios where we have to trust third party domains. All right. And what what's an example of that? Well, if you use Okta, you trust their domain to handle your OAuth. If you're using, SSO for Azure, then you're trusting really both parties at that point, because neither of those are yours, right? Let's say you have a SaaS application somewhere. And so you have to trust that, Microsoft's going to do a good job. And then you also have to trust that when you hand this OAuth token back over to this to this third party, that you can trust them and they may have domains. you know, that are assigned to you as subdomains. And so, for example, when we start talking about scoping session cookies, we're trusting all of these different moving parts because we're having to re-scope or cast a broad enough scope for those cookies. If that is done wrong or an upstream or downstream resource is compromised, then that could lead to a compromise of multiple user sessions, i.e., account takeover. and so so that was an interesting one that I wanted to kind of start with. It might be one of the most abstract, so maybe not the best one to start with,
Jordan Natter: Ha.
Brad: but I won I like I like using that story because what we're trusting is we're trusting all of the parent domains that any incorrectly scoped cookie trusts. And that means that if an attacker hits something that's not even yours, but you have a resource on a subdomain, they could potentially take it over. So that's really interesting to me because you said resource and and that's a good one because it could be firmware, it could be a library, it could be code, but it could also just be a domain that we're trusting
Jordan Natter: Yes.
Brad: and then maybe that we shouldn't be from a cookie scoping perspective. So I, you know, that one actually kind of works well with with the way you were describing.
Jordan Natter: Yeah, I just genuinely believe this category, the areas of of effect that is affected, is just so much wider than it sounds initially. Because like
Brad: It is.
Jordan Natter: you said, it's just like it's not just libraries, it's not just like your third party sort resources, like it just it just continues. The more you look into it, it's pretty much literally anything that you're not validating beforehand before putting it into your web application.
Brad: Yeah, right. Yeah. And and it's you're absolutely right about that. And and it's everything that can interact with your web application too, right? If you're exposing API endpoints and you're you're scoping API keys, you have to trust that up to upstream, user of the API keys that you're issuing. So so yeah, no, I completely agree with that. do you have any you want to any war stories you want to talk about first? Or because I've got I've got the healthcare one that I want to get into after you.
Jordan Natter: I wanna bring up my idea from the show notes.
Brad: gosh. All right. So we're we're not doing any more topics after this one because it's gonna eat the n the rest of the episode. No, I'm kidding. I'm totally kidding. But but honestly, listen, I
Jordan Natter: Well, do you wanna do yours then first? How was like I mean
Brad: let you you go into it because I think this is probably what the listeners would get the most value from is talking about this. and and I and I think it is absolutely the purpose of number eight. So so hit us with it.
Jordan Natter: So in the show notes, I was coming up with a couple of ideas, right? And one of the biggest ideas that I proposed was the fact that AI is a relatively new thing, right? But and and this was made before AI was such a huge thing, but how many people are having their developers now vibe coding, right? How many other companies yeah,
Brad: Everybody.
Jordan Natter: like almost everyone. How many outside companies that you're using or GitHub repos are that you're using and pulling down normally are now using vibe coding too? You might not know, right? But that is like a really great example of this. you can't just trust AI to do the right thing. no matter how much you sit there and go, no, don't do that. Sometimes they just go off the rails. So you're
Brad: Yeah, we've seen that a lot.
Jordan Natter: yeah, it's so bad. It's so bad. They have their own personalities.
Brad: Yeah. So all right. So they do, right? And you could be using the same model, the same name model, same version, same everything, and you just get one that's absolutely wild out of the gate for no reason, right? and so but but let let's talk about this for a minute, right? Because if you if you're not do if you tell me your organization is not vibe coding, you just don't know that you are.
Jordan Natter: Yes.
Brad: Everyone is doing it. I've I've got like VP of sales at all at at S three sixty. That are writing applications, which is insane, right? these people
Jordan Natter: Mm-hmm.
Brad: are not developers. They have absolutely no idea how to write a single line of code. And they are building, we're gonna call them enterprise. We're building SaaS and enterprise applications. Now, most of the stuff will never see a light of day, right? Most of it's internal, but it's still connecting to stuff. And
Jordan Natter: Yes.
Brad: so, you know, what what libraries are they using in these applications? Right. They have no idea. And so, so that's the kind of stuff we're talking about, right? That's that's almost precisely what this particular, item number eight on the list really is talking about. And it's gonna get worse, folks. So it's it's already bad with vibe coded applications. It's only gonna get worse. and so so what do we mean? What how how would a scenario like this play out, right? So let's say I want to build a web application that does, you know, that pulls in data from email, from CRM from I don't know what whatever. What just make up whatever things make sense, but you want to interconnect a couple of different systems. Well, this new AI vibe coded system that you're building that does this interconnection is going to be made up of libraries. We're not writing this code from scratch. We're pulling in, I need an API. I'm going to pull in the Python API library. I want to be able to do like advanced, you know, financials. Okay, there are libraries for that. I'm going to import into Python to do that. Where are those libraries coming from? So I'll tell you a story. When I first started getting into vibe coding, this is like summer of 2025. So well over a year ago, I was working on something. I don't even remember what the app was, but my console started talking to me in Mandarin. And I was like,
Jordan Natter: Yeah.
Brad: whoa, what are you doing? Why are you talking to me in Chinese right now? And so, and it was like, my bad. I downloaded a library that I thought we were going to use. And it overwrote the the built. So I was, I literally pulled down a compromised package, or I pulled AI pulled down a compromised package, and it actually poisoned the entire project. And so, it was literally an intentional compromise upstream. But the moral of the story was it found it on GitHub and it was a fork that was compromised. It wasn't even the real package. And AI made that decision on its own. And so Now take that and multiply that times however many packages are in your application times however many applications you have. And it doesn't just affect you if you're not vibe coding. And I still don't believe you if you say you're not, but it affects your vendors because they are, and their vendors, because they are too. So very few manual lines of code are being written right now. And
Jordan Natter: Yes.
Brad: so this is going to become one of the biggest problems that we have. And so, yeah. I I think it's huge. I I I think it absolutely, embodies the the whole point of this episode.
Jordan Natter: No, I completely agree. Especially because again, even if you're not doing it in-house, maybe for example, like and this is maybe partly far fetched, but it it could be a great point. Let's say like Okta is now vibe coding, right? And you're and they push an update and you're like, Cool, that's gonna be just fine, because I trust them, right? Well, you don't know if what they're using internally it can actually be trusted. Cause you're just inherently trusting them because they've always been pretty good, right? So now you're running into the problem that they are now pulling things via their own AI model wherever they're it's getting stuff. And so it just kinda trickles like like a waterfall. It the further down you go, the more you're realizing everything trusts something else and it can just keep stacking until you have so many issues.
Brad: You're right. You're absolutely right. This has happened to us in the last two weeks twice with two different clients. And so these are clients that we do pen testing with all the time. We got looped in because I think we had pen tested some of the stuff that ended up getting compromised. but one of the applications was using an old out-of-date out of date piece of software from like 2015. It was it was a a library that was used for like painting grids on the screen or something like that. It was something really overly simplistic. but that particular piece of software was rolled in and this was third party developed, but it was pushed onto a server owned by the client that we were working with. And it ended up getting compromised because they were they were still introducing old packages by mistake. So that they were they were building new software, but when they copied the files over, some of the old packages got copied over with it, which got called in context by the application. That was one example. The other example was a tracking. Vendor. So this was a I'm not going to call them a not for profit, but they take donations. Let me put it that way. and so on the donations page, which was maintained by their vendor, that vendor had actually purchased like these Google tracking libraries. And one of those had two embedded JavaScript files that were payment card scrapers. And so now it's like, this is our client. They're paying a third party to build their software. That client is paying another. So now we're up to like what fourth party, fifth party? I have no idea how to do math. But the so many parties down the road that it was, you know, it was never checked. And now it's being installed by this third party on a client client-controlled system, a web server. now, luckily they got away with it because the way that it worked out, the frames, you know, it it was fine. But at the end of the day, We can't trust the third parties to validate these packages. So what do we do? We have to validate this stuff.
Jordan Natter: Yes.
Brad: That's the challenge. I think that's the lift. And there are lots of great things for that. You know, GitHub Enterprise has some pretty good code scanning capability. We have actually developed something called ChainGuard that is specifically built to solve this problem. And it actually will either pull the source code or it will run as a binary on your web server. And it will review the application as it runs on your system, even if it's built by a third party. And it will actually be like explode DLLs, break down binaries, and inspect everything for vulnerabilities, compromise code, misconfiguration, stuff like that. So if you guys are worried about this, and this is my little plug for this episode, if you guys are worried about this, we do have a solution. it's it's not something that we're really advertising at this point because it's in it's in kind of beta moving into production. But if that's something you guys are interested in, this has really good coverage for you guys. so yeah, vibe coding is scary.
Jordan Natter: It's just terrifying, honestly. Cause
Brad: Yeah.
Jordan Natter: before everything compounded, you mentioned that it was like, you're using this third party, they're using a third party, they're using a third party. You don't really know what where it originally starts, to be honest with you, 'cause it's not like you can be like, tell me exactly where you're getting this code and then you have to keep chasing it until you find out where
Brad: Well they don't know.
Jordan Natter: No, you never know. And now you add in AI and it's even more scary because there's less human interaction that's actually validating things. We just have this inherent trust to be like, Cool, you're gonna do the thing I'm telling you to do, right? 'Cause I told you exactly in the ROEs that you're going to do exactly what I tell you to do. And now it's even more terrifying because who knows? Yeah, good point.
Brad: Old of you to assume they're even using ROEs, man. So for those of you that don't know, when you're vibe coding applications, it's really important that you provide scaffolding and left-right, you know, limits on what it can and can't do. A lot of people are out there. They'll just open a prompt to be like, yo, start building me an app, bro. And then, you know, 10 iterations later, we're importing libraries from China. You know, hey, that was me. So yeah, yeah, absolutely. I mean, all right. So, so, you know. Definitely I think AI is going to compound this problem, which is why I think it's going to start moving up on the list. However, with that said, I want to tell the story about the healthcare systems. So when I say healthcare systems, what I'm describing are actually like medical devices. Right. And one of the ones that I did was was a heart pump for open heart surgery. And so apparently, like you you literally like re reroute the blood. You know, I I'm not a medical doctor today. But but yeah, so you have to basically find it it pumps the blood while you're working on the heart, right? Is what it does. And so what was really cool about it is you you had to be able to update the firmware on it because I guess reasons. And what we found is that there were a couple of ways to do it. One of them was like an exposed USB port that was like two screws, pop a panel out, and there's a USB-C sitting there. And we were able to, it it didn't validate the firmware. Meaning that I could just take a USB stick into the hospital, plug this thing in, and overwrite the firmware with an unsigned version of my own that then I can, cause all kinds of problems with. Now, that's that's a that's a difficult thing to do. most of the time you can't walk into a surgical facility and and start plugging stuff in, but it illustrates the point that we should be looking for signed. Hardware or sign firmware for our hardware. Same thing happened with a really cool group that we work with that makes industrial hardware for warehouses. And all of it's like remote controlled with an app. But what we realized is we could download the firmware, blow it up, and then start adding our own stuff in there. And we could compromise the firmware and push it back up. So if you're going to pull updates, whether it be from firmware or whether you're going to update libraries automatically from your application, They need to be signed and validated and hash validated, by the way, not MD5. Just want to point that out. Yeah. So
Jordan Natter: Please don't please no.
Brad: so yeah. So so it that that's kind of where where this particular item on the list I think originates from.
Jordan Natter: I was gonna say, I w I feel like that would be probably my personal opinion, the second biggest thing within this category is just pushing updates without having a signature on it and inherently trusting where those updates are coming from.
Brad: Yep. Yep. And it's especially bad in web applications, right? More so than it is like operating systems and things like that. It's bad in web apps because like that jQuery version one dot one eight that's vulnerable and you need to update. Make sure you're getting a a valid version of jQuery two point as opposed to grabbing one off a random GitHub because it does happen, especially again if you're vibe coding and or if you're just not paying attention. And you go to GitHub and you search for jQuery two dot and you end up landing on a repo from someone else other than the official jQuery. So that happens all the time. All the time. all right. So l you want me to do the deserialization one? Or you got one you want to tackle first?
Jordan Natter: No, you do that one and I can add my tidbits and do the next one. 'Cause you s accidentally stole one of mine.
Brad: All right, perfect. Did I really? I'm sorry, I didn't mean to. Probably. so, so insecure deserialization. This is, I'm gonna say, more of an input validation issue.
Jordan Natter: I agree.
Brad: you're you're technically trusting untrusted input or what what should be untrusted input. so I'm gonna roll with it. and and I and I think it's an important thing to talk about. I think we've mentioned it on one of the previous OWASP top 10 episodes as well. the first thing I want to do is tell you what de what deserialization is, and then we'll talk about how it can be done poorly. the way I like to describe deserialization is sending a letter in the mail. Right. So I'm gonna take my little message, I'm gonna fold it up, stick it in an envelope. It is now serialized or it is packed, if you will. And then I'm gonna send that over to you. And then when you receive that envelope, you're gonna open it and you're gonna read the message. And so the important thing about that is we're changing. The format of it so that it really can't be viewed or or messed with in transit. and so anyone viewing it in transit is just gonna see the envelope. They're not gonna know what the what the content is. And we don't really do this for security, we do it for performance reasons, right? It's easier for computers to talk to each other when they're speaking computer code. And that's effectively what we do when we when we pack something into serialize it and then deserialize it on the other end, right? The issue is. A lot of the input validation occurs on user input that is kind of freeform, or it it will maybe occurs on the client side in JavaScript. And so once it's serialized and sent over to the server, we make the mistake of trusting that it's valid and safe. And that's where deserialization vulnerabilities come from, right? When we unpack that message and we open that envelope, it turns out to be a bomb, right? Then Then now
Jordan Natter: no.
Brad: we're in trouble because we didn't verify that before we actually took it and tried to use it. And so that's really what insecure it comes again, comes down to we're trusting that that message when it unpacks is safe. And then we immediately move into processing it instead of validating it first.
Jordan Natter: I was saying if you guys have not figured out the thing that relates everything is trust. So maybe don't trust anything. Yeah no.
Brad: Trust nothing. Not nothing. Nothing. So
Jordan Natter: It's a bad idea.
Brad: yeah. Agreed. Agreed.
Jordan Natter: All right, if you're okay, I have one now.
Brad: Yeah, send it.
Jordan Natter: So quick and easy one to kind of explain. We're gonna kind of move into APIs a little bit more than web on this one, but so all right, so a couple of things, right? So with an API, normally there's like domain objects that are saved within the database and like or there's entities, whatever however you wish to describe it, right? So pretty much I have a role for something and I have an object that I can call that falls within that role. Even if on that endpoint I'm not specifically calling for this thing, if it's not per purposely handled and controlled, I can add things to that request, right? So I can go into
Brad: I know what you're talking about.
Jordan Natter: yes. So I can go into the JSON body and be like, okay, cool, I see that this specific request that I'm going to make is not calling for, let's say, an account ID, right? Or Is it like let's say is admin? Yes. Yeah, exactly.
Brad: Is admin true. Yeah, yeah, yeah. I love that one.
Jordan Natter: So like this one doesn't specifically say is admin. Well, if it's not sitting there and binding everything and controlling it, I can now go, okay, is admin equals true on this request. Send it. And since it wasn't already it wasn't limiting what it allows to be accepted for that specific request, it's now like cool. Is it is admin? You are admin now. And it's like, I've now escalated my privileges because on this specific request and on this endpoint, it was not required to see if I was an admin. I've now forced it to l say that it will accept whether it is an admin or isn't, and I just say that I am because it has no way to validate that. So I've now escalated my privileges and now I am is admin. Because it equals true.
Brad: Yep. I love that one, dude. And we were actually just testing that. I think either yesterday afternoon or this morning.
Jordan Natter: Is this
Brad: We were looking at that for one of our client applications. And so the yeah, so mass assignment is a real thing. and usually when we see this occur, it's because people are copy pasting code for to create multiple endpoints that all have similar but slightly different functionality. And and it is a legitimate vulnerability. And and there have been some serious data breaches as a result of that. So again, we're trusting the user input. But we're not validating it on the on the server side. And and so yeah, no, I think that's a great one. I think that's a really good one. the only other thing I want to mention before we wrap here is when we're start talking about images, all right. And there there's a there's some notes in here with regard to like build artifacts and scripts and things like that. There are a lot of cases when you're building, especially enterprise level applications that You'll call for a particular library, maybe during CI CD automated builds or whatever it may be. And that system, if it does not have a pinned version of that library, will just go grab a library that fits the bill for that. And and this this happens whether you're vibe coding or not. It's just part of the CI C D process. and and in that case, I have seen a lot of insecure, outdated, not usually compromised, but but you know. problematic libraries get pulled in if we're not explicitly defining their source. And so so pinning libraries and pinning images is really important, especially when we start talking about Kubernetes clusters and and large scale enterprise SaaS applications. So all right, Jordan, I think we have crushed another one.
Jordan Natter: I just think this one went quite swimmingly.
Brad: Yeah, yeah, I'm super happy with it. I I do, like I said, this one, this one's gonna rise. I if if this one stays at number eight on the next release of the OWASP top ten, I will eat some crow, but I'll be very surprised. Yeah. All
Jordan Natter: I would be too.
Brad: right, folks, that's all we have time for today. If you enjoyed this episode, please like, share, subscribe. The biggest thing you can do for us is really just comment on these, interact with these videos wherever you might see them. Or if you're listening on Spotify, you can leave messages there. Same thing with iTunes. and we really appreciate that. That really helps push us up in the algorithm. And we'll see you guys next week. There'll probably be a re a a re what do we want to call it? A rerun for next week, since it's Thanksgiving
Jordan Natter: Yes.
Brad: week and we'll probably either be working way too much or not at all. Either one is fine. All
Jordan Natter: Working for me.
Brad: right, folks. Have a good one.