What are the types of security testing?
There are three main types of testing: 1.
Functional testing: To evaluate the operation of your system/s after a specific attack has occurred. 2. Vulnerability analysis: To identify the bugs that can be exploited to gain unauthorized access. 3. Penetration testing: To evaluate the security of your systems and network by simulating an attack.
Types of Vulnerabilities. It's always good to get familiar with all types of vulnerabilities, even though we often rely on blacklists or know-hows for fixing them. Here are some of the most common issues with the most common solutions.
Categories of Vulnerabilities. Authentication weaknesses: These are the weakest links in the authentication chain because they allow a potential attacker to use stolen credentials or change credentials to compromise another part of the system. Authentication Weaknesses Example: Using stored user credentials Insecure password policy: This problem is not really a weakness as it only affects your users (or you, if you're the password police). But it can result in unauthorized access and therefore does need to be addressed. However, this type of issue can also give attackers another point of entry to a compromised system. Insecure Password Policy Example: Not changing passwords on annual basis Insecure database authentication: Another weak link in the authentication chain, and one that is easily forgotten or overlooked. Insecure database authentication could be the result of a malicious SQL injection. Attackers can inject data that's never used, or they can insert queries to change other data within a database. The first attack results in a security breach; the second causes a much slower system. Insecure Database Authentication Example: Connecting to a remote or unknown database Insecure access controls: When weak access control gives attackers additional access to a system, this is a vulnerability. Depending on how the attacker accesses the system and the systems he compromises, this is known as lateral movement, internal movement, external movement, or blind attacks. Insecure Access Controls Example: Having an account with unrestricted privileges, such as admin or root. Incorrect/malformed headers: Malformed HTTP headers are also called spoofing or traffic sniffing. Attackers can send the wrong headers for a page so that it thinks the site is another IP address, causing misconfigured browsers to load the malicious site.
What is an example of security testing for a website?
In your opinion, ?
My first attempt would be to go over it with the eyes of a hacker, but there is only so much you can do. I'm just looking for an example of what I'm supposed to be testing and how you'd go about doing it.
Thanks. The security test you're probably going to want to conduct includes many different aspects that are not usually covered in one test. If you're starting a new website, the most common security test is going to be to determine if you're vulnerable to cross-site scripting (XSS) attacks. A simple example of a XSS attack could be to replace your welcome message on a signup page with the following JavaScript: . This will show up as "You were hacked!" to the user when they log in, because the script tag was interpreted by the browser. There are plenty of ways to make a website vulnerable to XSS attacks, and any XSS vulnerability in your site means you'll have an opening for an attacker to exploit.
There's lots of ways an XSS attack could be used, but the common ones are login pages, user registration pages, comment forms, forms to create new pages or other data, etc. So, when you're starting a site, you'll want to make sure it's impossible for an attacker to perform an XSS attack on your site.
Other important things to test are things like session management (where do users log in and out?), CSRF tokens (to prevent hackers from manipulating form posts or cookie values), SQL injection (you should have a mechanism to validate input data to prevent hackers from replacing values with their own text), etc. It's also important to review your code for common vulnerabilities like buffer overflows, file system access, open redirects, etc. That kind of stuff's harder to catch unless you're looking for it specifically.
I think those are some good examples of what you're talking about, and I'm not sure you'll find a single test to cover everything you need.
Related Answers
What is testing tools in software testing?
QA security testing is an activity that looks for security vulnerabilities wit...
How can we use the Selenium tool with HeadSpin?
Selenium is a cross-browser testing automation framework w...
What are the three types of security test?
QA (Quality Assurance) is a function of the project management office (PMO) wh...