JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.2p0 | CONFIDENTIAL | CodeSecure Inc |
The categories list for each CodeSonar warning includes any relevant members of the OWASP® Top Ten Application Security Risks - 2021.
A broader set of correspondences is shown in Broad Mapping: OWASP Top Ten 2021.
CSV tables of warning classes by OWASP-2021 rule are provided in OWASP-2021-mapping.csv.
"OWASP-2021" is shorthand for the OWASP Top 10 2021.
See the OWASP Top 10 2021 website for more information.
The following table shows the CodeSonar warning classes that are associated with OWASP-2021 top ten security risks.
The predefined OWASP Top Ten 2021 Report management report template allows you to automatically generate a report summarizing all the warnings from a particular analysis that are closely mapped to one or more of the OWASP Top 10 2021.
You can generate this report from the GUI Analysis page for the analysis of interest. For general instructions, see Task: Generate a Management Report
Because the rules are strongly tied to web application development, many of the associated checks are disabled by default.
CodeSonar ships with a taxonomy preset for OWASP-2021 checks:
| owasp2021 |
Enables warning classes such that a given class C is
enabled if all of the following are true.
|
You can apply the owasp2021 preset to the CodeSonar build/analysis as shown in the following table.
| Command Line |
Specify -preset owasp2021 as part of your
build/analysis command. For example:
codesonar analyze MyProj -preset owasp2021 localhost:7340 make
|
|---|---|
| Define as a default preset | Copy owasp2021.conf from $CSONAR/codesonar/presets/ to $CSONAR/codesonar/default_presets/. OR Use the CodeSonar Configuration Tool Modify Analysis Settings option. |
| Windows Build Wizard | Select owasp2021 from the Preset list on screen 2. |
| Eclipse Plug-In | Select owasp2021 from the Presets list in the Properties dialog. |
| Visual Studio Plug-In | Select owasp2021 from the Presets list in the Project Properties dialog. |
To enable checks for all the warning classes associated with a specific OWASP-2021 security risk, include the following in the project configuration file:
WARNING_FILTER += allow categories:"OWASP-2021:Anum"
To enable a single warning class check, follow the instructions in the documentation for the corresponding warning class. Warning class documentation links are provided above.
To report problems with this documentation, please visit https://support.codesecure.com/.