Rules
| Content by Label | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Risk Assessment Summary
Rule | Severity | Likelihood | Detectable | Repairable | Priority | Level |
|---|---|---|---|---|---|---|
| ERR00-J | Low | Probable | Yes | No | P4 | L3 |
| ERR01-J | Medium | Probable | No | Yes | P8 | L2 |
| ERR02-J | Medium | Likely | Yes | No | P12 | L1 |
| ERR03-J | Low | Probable | No | No | P2 | L3 |
| ERR04-J | Low | Probable | Yes | Yes | P6 | L2 |
| ERR05-J | Low | Unlikely | Yes | No | P2 | L3 |
| ERR06-J | Low | Unlikely | No | No | P1 | L3 |
| ERR07-J | Low | Likely | Yes | No | P6 | L2 |
| ERR08-J | Medium | Likely | Yes | No | P12 | L1 |
| ERR09-J | Low | Unlikely | No | No | P1 | L3 |
...
Guidelines
EXC00-J. Do not suppress or ignore checked exceptions
EXC01-J. Use a class dedicated to reporting exceptions
EXC02-J. Use exceptions only for exceptional conditions
EXC03-J. Use a logging API to log critical security exceptions
EXC04-J. Do not exit abruptly from a finally block
EXC05-J. Handle checked exceptions that can be thrown within a finally block
EXC06-J. Do not allow exceptions to transmit sensitive information
EXC07-J. Prevent exceptions while logging data
EXC08-J. Try to gracefully recover from system errors
EXC09-J. Prevent inadvertent calls to System.exit() or forced shutdown
EXC10-J. Do not let code throw undeclared checked exceptions
EXC11-J. Restore prior object state on method failure
EXC12-J. Do not allow unsanitized user input to be logged
EXC13-J. Throw specific exceptions as opposed to the more general RuntimeException or Exception
EXC14-J. Catch specific exceptions as opposed to the more general RuntimeException
EXC15-J. Do not catch NullPointerException
Risk Assessment Summary
Recommendations
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level |
|---|---|---|---|---|---|
EXC00- J | low | probable | medium | P4 | L3 |
EXC01- J | medium | probable | high | P4 | L3 |
EXC02- J | medium | likely | high | P6 | L2 |
EXC03- J | low | unlikely | medium | P2 | L3 |
EXC04- J | low | unlikely | medium | P2 | L3 |
EXC05- J | medium | likely | high | P6 | L2 |
EXC06- J | low | unlikely | high | P1 | L3 |
EXC07- J | low | probable | high | P2 | L3 |
EXC08- J | low | probable | low | P6 | L2 |
EXC09- J | medium | unlikely | medium | P4 | L3 |
EXC10- J | low | unlikely | medium | P2 | L3 |
Rules
Rules | Severity | Likelihood | Remediation Cost | Priority | Level |
|---|---|---|---|---|---|
EXC30- J | low | probable | medium | P4 | L3 |
EXC31- J | low | unlikely | medium | P2 | L3 |
EXC32- J | low | likely | medium | P6 | L2 |
EXC33- J | low | likely | medium | P6 | L2 |
EXC34- J | medium | probable | medium | P8 | L2 |
MET08-J. Do not use the clone method to copy untrusted method parameters The CERT Sun Microsystems Secure Coding Standard for Java EXC00-J. Do not suppress or ignore checked exceptions