Hello and welcome to the cyber very secure coding course.
My name is anywhere in. This is CNN's Top 25 category. Porous defenses, mitigations, countermeasures and defenses.
Now the defense's overview.
Because we have so many different issues in this category, I'm going to address the mitigation techniques separately. Ranking of five c W e three of six missing authentication for critical resource.
So in the example in that we saw previously, we never want to leave any kind of default password settings or blank values for passwords for any of our accounts that we use in our application code.
Also, we want to make sure that we read any secure settings in documentation. If we have to be using any back end as a service cloud providers,
these cloud providers should provide ways to more securely handle
the keys and default settings that come with the operations whenever we have to synchronize with those back in systems.
And, of course, we want to ensure that we do not have any passwords that are hard coded into our application code. The next issue area is ranked 10 c w e eight of seven reliance on untrusted inputs in a security decision. Now the mitigations for this issue
Do not rely on any client side values such as last modified header or any include values for making any decisions until these values have been vetted on the service side First. Also do not rely on any job script validation
because we know that these checks can be easily bypassed.
Now, if you are checking the HTP requests, refer.
Make sure that you validate that. Refer through some sort of white list. Use input validation on your server side
before you, then act upon that information now continuing with the same issue area. I did go into H two p response splitting, and I explained what that is. Also, you'll be having a loud with this.
What you should do in regards to this to prevent http response. Splitting attacks
is to make sure that all input values from the client side are vetted against a white list,
and this would include checks, four carriage returns, lying feeds, etcetera,
going hand in hand. With that mitigation, you want to always perform your output in coding For all http responses,
and if you are unfamiliar or have forgotten about what this is. Please refer back to module three for the cross site scripting mitigations.
Now in regards to issue ranked 11 c W E. 250 execution with unnecessary privileges.
We know that here we want to employ the principle of least privilege.
This is to ensure that the execution of any scripts or programs are performed by a role that's powerful enough to perform that job, but no more.
The two examples that I gave explanations video included files that are uploaded by the user and the batch process user account. So make sure that you have accounts that are lower in privilege
and really only have enough grants to perform the duty or the task that's necessary
Now. Regarding issue ranked. 15 c W E 8 63 Incorrect authorization.
We want to make sure that we perform all of our authorization checks on the server side
and not to rely on any data that may be set on the client side without verifying that first
and realize that this includes if you have some sort of workflow or subsequent screen showing based on a previous action, so just make sure that you're actually validating those actions on your server side and not on the client side.
Ranking. 17 c W E 732. Incorrect permission Assignment for critical resource Here you want to explicitly set default permissions to be the most restrictive setting possible.
Now you can do this a lot of times at Program's startup bypassing in arguments to your program
could also be done, for example, in the instance of a file system
where the system administrator can lock down that system so that it's already set up to be secure. So if either of these air a viable choice, this is what I would recommend.
Either of these make reliance upon programmers remembering, too,
have the correct permission assignment
less so you would be relying less on programmers to remember and just be able to use a more locked down environment from the get go