Security reports
Security reports give you the big picture of your application’s security. They allow you to know where you stand compared to the most common security mistakes.
Security reports are available starting in Enterprise Edition.
What do security reports show?
Security reports quickly give you the big picture of your application’s security. They allow you to know where you stand compared to the most common security mistakes made in the past:
OWASP Top 10 (versions 2021 and 2017)
OWASP Top 10 security standards covered by Sonar for version 2021
Category
Python
JS/TS
Java
C#
C/C++
PHP
A01:Broken Access Control
A02: Cryptographic Failures
A03: Injection
A04: Insecure Design
A05: Security Misconfiguration
A06: Vulnerable and Outdated Components
A07: Identification and Authentication Failures
A08: Software and Data Integrity Failures
A09: Security Logging and Monitoring Failures
A10: Server-Side Request Forgery
CWE Top 25 (versions 2023, 2022, and 2021)
CWE Top 25 security standards covered by Sonar for version 2023
Category
Python
JS/TS
Java
C#
C/C++
PHP
CWE-787: Out-of-bounds Write
CWE-79: Improper Neutralization of Input During Web Page Generation (‘Cross-site Scripting’)
CWE-89: Improper Neutralization of Special Elements used in an SQL Command (‘SQL Injection’)
CWE-416: Use After Free
CWE-78: Improper Neutralization of Special Elements used in an OS Command (‘OS Command Injection’)
CWE-20: Improper Input Validation
CWE-125: Out-of-bounds Read
CWE-22: Improper Limitation of a Pathname to a Restricted Directory (‘Path Traversal’)
CWE-352: Cross-Site Request Forgery (CSRF)
CWE-434: Unrestricted Upload of File with Dangerous Type
CWE-862: Missing Authorization
CWE-476: NULL Pointer Dereference
CWE-287: Improper Authentication
CWE-190: Integer Overflow or Wraparound
CWE-502: Deserialization of Untrusted Data
CWE-77: Improper Neutralization of Special Elements used in a Command (‘Command Injection’)
CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
CWE-798: Use of Hard-coded Credentials
CWE-918: Server-Side Request Forgery (SSRF)
CWE-306: Missing Authentication for Critical Function
CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization (‘Race Condition’)
CWE-269: Improper Privilege Management
CWE-94: Improper Control of Generation of Code (‘Code Injection’)
CWE-863: Incorrect Authorization
CWE-276: Incorrect Default Permissions
PCI DSS (versions 4.0 and 3.2.1)
They represent the bare minimum to comply with for anyone putting in place a secure development lifecycle.
Security reports rely on the rules activated in your quality profile to raise security issues. If there are no rules corresponding to a given OWASP category activated in your quality profile, you won’t get issues linked to that specific category and the rating displayed will be A. That doesn’t mean you are safe for that category, it implies that you need to activate more rules (assuming some exist) in your quality profile.
What’s the difference between a security hotspot and a vulnerability?
Security hotspots and vulnerabilities differ in that:
A security hotspot is a security-sensitive piece of code that is highlighted but doesn’t necessarily impact the overall application security. It’s up to the developer to review the code and determine whether or not a fix is needed to secure the code.
A vulnerability is a problem that impacts the application’s security that needs to be fixed immediately.
For more details, see the Managing security hotspots page.
Why don’t I see any vulnerabilities or security hotspots?
You might not see any vulnerabilities or security hotspots for the following reasons:
Your code has been written without using any security-sensitive API.
Vulnerability or security hotspot rules are available but not activated in your quality profile so no security hotspots or vulnerabilities are raised.
SonarQube might not currently have many rules for your language, so it won’t raise any issues or only a few vulnerabilities or security hotspots will be recognized.
Downloading a PDF copy
You can download a PDF copy of your security reports by selecting the Download as PDF button in the upper-right corner of the Security reports page.
The PDF contains:
the number of open vulnerabilities and the security rating on both overall code and new code.
the number of security hotspots, the percentage of reviewed security hotspots, and the security review rating on both overall and new code.
your Sonar, OWASP Top 10, and CWE Top 25 2020 reports.
Related pages
Last updated
Was this helpful?

