Time
4 hours 39 minutes
Difficulty
Beginner
CEU/CPE
5

Video Transcription

00:00
lesson 5.3. It's a little bit of a catch All. I just want talk about logic, flaws, automation, defect, tracking. Just a weekend. I kind of tie up some of the loose ends here.
00:12
The objectives. I wanna discuss the need for a privilege. Testing s We could test authorization and find. Find some of these business logic flaws.
00:22
Take a look at secure code box integration. Just another one of tools you could use we're using. I guess I mentioned
00:30
Jenkins, but this is another option. You could use a few for doing your dynamic scanning and then take a look at defect. Does Joe for integration, for identifying issues, things like that tracking them.
00:43
We talk about business logic.
00:45
The issue with the dynamic analysis tools is a really good at testing pattern sequel, injection, cross site, scripting things like that. But they're not good at testing for authorization. So can I.
00:59
If I'm logged in this issues or I should only be able to do these type of actions, I shouldn't be able to. I could only read. Or maybe I could only edit.
01:06
And these may these tests may be performed in the functional testing. But
01:11
tests by non security people are usually made to fail. Are sorry made to pass, not to fail just because that's the That's the nature. They're trying to make sure that the patterns they put in our what they expected versus when we do security testing. We're looking for negative. We were really one. Identify vulnerabilities and
01:30
root around and try to find bad things.
01:34
So we want to automate test cases again for, like, testing In what data can you access? What actions? Maybe if it's an a P I what endpoints cannot hit. Which ones of my getting failed access to if I don't have a from not logged in as the right account?
01:51
So there's There's a block here from Rapid seven. You can go take a look at it. It's the top 10 business logic flaws, attack vectors. They rank them not gonna go through all of these, but you can see authentication, flag privilege, escalation, maybe issues with the cookie tampering because it's not set correctly.
02:08
LDA parameters aren't correct. The business flow
02:13
bypassed, so, expecting that they go through with this step this step. But they may be little jump step and it didn't actually verify that they were allowed to do that, or any time a type of file or all unauthorized. You are all access or kind of like I mentioned with the A P I certain user shouldn't be able to get a p I, but they are.
02:31
He was just expecting the user of the end,
02:34
Uh, that said, from a client to respect the rules as their defined in the application versus going off in a different path.
02:43
I have a question for you. Do. Do you understand why business logic is so difficult to test?
02:53
So as I mentioned, the tools are meant for security test patterns, not really testing cause for data access. And it's not that there's limitation in the tools or that they're incapable of it. It's just how can they understand, especially your very
03:07
customized application. They don't understand which, what, what is supposed to be able to access. You know what limitations are set,
03:15
so you need to add test using different authenticated users. So
03:21
if you're using a tool that can record authentication made, that's what you want. May want to run at multiple times with different authenticated users to test these these capabilities.
03:30
So as I mentioned, there's, ah, interesting tool out there called secure code box.
03:37
It has this tool chain to automatically scan applications. And if you're interested inside it, actually running its own Jenkins, uh,
03:45
tool that that creates this automated pipeline that uses Commander for the Business Process flow.
03:52
And it has these oldies micro services that are running, zap and map Nick tore acne, all these different types of tools. You don't need to see that from the outside. But if you're looking, if you're interested, how it's running in there and it can in just integrate with Travis Jenkins all these other tools,
04:09
everything is exposed via either web. You I or arrest a P I.
04:14
So what's going on is it has all these tools, and what you do is say, I want to scan, give and you give it a whirl, and then it creates a job within the tone pipeline to then
04:25
the
04:26
launch. Each one of these micro services what are ready but launch an attack using each one of these micro services so that you don't have to install your own zap your own Brackney version. It'll run all those for you present results. And again, if you integrate it
04:41
with Jenkins or whatever pipeline you're doing, it'll it'll say, Run the attacks or run that the test. And here's the result back,
04:48
and there's another option you can use again we're using in our demo. We're using Jenkins and integrating that
04:56
the results that way. But if you're if you get your using Jiro, you might have your own issue tracking. But there's a free tool that Lost created a project for called defects does defect. Oh, Joe,
05:08
and you can use it within ah, your two phases so you can do it in the integration phase and off the delivery phase.
05:15
Um, because it might be against we mentioned a while back. You may see some tests and certain phase, but till they get put into the application server and you might have some environment drift where there's different settings in the configuration for each of the APP server or the server that's running on, you might discover vulnerabilities differently,
05:35
um,
05:36
and has bidirectional integration with zero so you can use even if using gear, and you want to track your security vulnerabilities in a different area.
05:44
Um,
05:45
so in a wasp as these benchmarks that that that they've integrated So the application security verification standard requirements so they'll match it to that within defect. Jo Jo. And that's what this is really doing is again you'll. You'll be running these tools and creating these vulnerability issues so that they could be tracked
06:03
and you contract them within defect. Jo Jo and give you ah, tracking tool.
06:09
How have vulnerabilities air fixed over time? Different qualifications like that?
06:15
Here's a quick quiz
06:17
to defect. Oh, dough is applicable. To which phases is it continuous integration? Is it continuous delivery or is it C i N c D.
06:29
So, as I mentioned, defects in the APP can be discovered during both phases and defect. Oh, Joe can provide the ability to associate the phase where the defect was discovered so you can actually tag it so that you can see through time. Maybe it was fixed here and it wasn't fixed. You was fixed later on, and you understand where the vulnerability is or if it's in both. You know,
06:46
it's a vulnerability that hasn't been fixed yet.
06:50
So in this lesson, we kind of is a catch also hit a couple of the ideas. A business logic flow. Look how you contract vulnerabilities. If you want to run an external scanner using the secure code box into that,
07:04
so next we'll just we'll we'll start the other fun. One that the Jenkins demo. We're gonna add the dynamic application scanning to our pipeline and and complete the next phase.

Up Next

DevSecOps Fundamentals

DevSecOps certification training helps students learn to incorporate security features in every step of the development process and navigate distinct security challenges in custom software and web applications.

Instructed By

Instructor Profile Image
Philip Kulp
Instructor