Why context matters in penetration testing risk assessments
A penetration test can identify vulnerabilities ranging from low-risk configuration issues to critical security weaknesses. But how do penetration testers determine the severity of a finding, and does that rating always reflect the actual risk to an organisation?
Penetration testing risk assessments consider more than the vulnerability itself. The systems affected, access required, existing security controls and potential impact of exploitation all influence how a finding is assessed.
During a penetration test, we don’t discover a vulnerability, take a Proof-of-Concept, and move on; we ask ourselves questions such as, but not limited to:
- For an attacker to detect and exploit this issue, is authentication required?
- What level of access is required to perform the attack?
- Are accounts with the appropriate level of access protected by additional authentication controls such as Multi-Factor authentication? (MFA)
- Was IP whitelisting required to access a target?
- Is the vulnerable service exposed to the internet?
- Can the issue be chained with additionally detected issues?
These questions can each have an impact on the finding itself, potentially reducing, increasing or keeping the assigned risk the same.
Read our guide if you’re confused about the difference between penetration testing and vulnerability scanning.
How are vulnerabilities rated during a penetration test?
During a penetration test, identified vulnerabilities are assessed to determine their severity and potential impact. A common framework is the Common Vulnerability Scoring System (CVSS).
CVSS provides a standardised method for scoring vulnerabilities based on factors such as exploitability and the potential impact on confidentiality, integrity and availability.
However, a CVSS score alone doesn’t always reflect the risk to a particular organisation. Penetration testers must also consider the environment in which the vulnerability exists, including existing security controls, access restrictions and potential attack paths.
To illustrate how this works in practice, we’ll look at a SQL injection vulnerability identified during a recent penetration test and explain why its assessed severity was lower than might initially be expected.
Why vulnerability severity doesn’t always reflect risk
This isn’t about disregarding established vulnerability scoring systems. Frameworks such as CVSS provide testers with a baseline, whilst providing consistency when assessing detected risks. Rather, it’s about recognising that each and every target we assess is different from one another, each having its own environment and infrastructure defences; therefore, scoring is adapted based on the current system being analysed.
This is why context matters during a penetration test. By considering how a vulnerability could be exploited within the specific environment, testers can provide a more realistic assessment of the risk and help organisations prioritise remediation accordingly.
Case study: Assessing the risk of a SQL injection vulnerability
In a recent engagement, one of our testers detected SQL Injection within a web application which was being assessed.
SQL Injection falls under the Injection section (A05:2025) of the OWASP Top 10, a widely recognised awareness document from the security community, highlighting some of the most critical security risks affecting web applications. SQL Injection can have large security implications, potentially allowing attackers to access or manipulate underlying database information.
More information can be found regarding SQL Injection from OWASP directly here.
However, this specific case of SQL injection was found within an area of a web application which required administrator-level access and could not be exploited by generic user accounts. Additionally, the administrator account was protected by MFA and the database access was restricted. Additionally, there was no self-registration on the web application; therefore, the test accounts had to be directly provided.
With all of the above taken into consideration, we can recalculate the initial risk as follows:
- No user registration
- Administrator account is required
- Administrator accounts are protected by MFA
- Database access wasn’t an administrator therefore modification or deletion of data within the database was restricted.
Therefore, it isn’t impossible that a malicious user could perform this attack, but it is a lot less likely due to the number of hoops required to be able to execute it.
How we calculated the CVSS score
Our penetration testers use a risk calculation matrix known as CVSS to calculate the severity of a detected issue. Here, we have the following:
How could an attacker reach it: N (Network)
The vulnerable input was detected on the application; therefore, an attacker would have to interact with it over the network.
How difficult is the attack to perform: L (Low)
The vulnerability was found within a basic input field with no unusual conditions.
What level of access would they need: H (High)
The vulnerable input field was only available to administrator accounts; therefore, an attack would require access to one of these accounts. There was also no public self-registration, and administrator accounts were protected by MFA, making unauthorised access more difficult.
User Interaction: N (None)
This attack did not require any other user to exploit it, as the attack was launched from the provided account.
Scope: U (Unchanged)
Any damage caused by exploiting the issue is expected to remain within the same application environment.
Confidentiality: L (Low)
The assumed impact of the attack is limited due to database access being restricted.
Integrity: N (None)
Data could not be modified; only observed; therefore, the integrity of the data remained.
Availability: N (None)
Exploiting the issue did not disrupt the application’s availability
The above equated to the following score based on the CVSS 3.1 Risk Matrix:
Risk: Low
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
The above method is used by all our penetration testers here at Evalian to provide meaningful and realistic scorings for issues detected on a variety of our penetration testing services. With that being said, confidence can be had that each engagement is approached as a blank slate and that all of our scorings for identified risks are based on the environment and context as a whole and not on default scorings from the security community.
Speak to us about penetration testing
A penetration test should do more than identify vulnerabilities and assign severity ratings. It should help you understand the risks in your environment, what an attacker could realistically exploit, and where to prioritise remediation. You can read more about what you should expect to find in a good pen test report here.
At Evalian, our penetration testers consider the wider context behind every finding, providing clear, practical advice to help you make informed security decisions. Speak to our penetration testing team to discuss your testing requirements and how we can help you identify and address the risks that matter most.
For more information on budgeting for penetration testing as part of your security strategy, read our comprehensive guide to penetration testing costs.
Luke Dawson
Security Consultant & Tester
Luke is one of our Penetration Testers, specialising primarily in web application testing. Luke has experience in Cloud Infrastructure, External Infrastructure and API testing. He started a short career within the gas industry before taking on more tech-oriented roles, which led to university. Among his qualifications is a First Class Honours Degree in Cyber Security & Digital Forensics.



