SV.USE.POLICYCode inspection rule. SV.USE.POLICY occurs when code uses getPolicy or setPolicy from java.security.Policy. Vulnerability and riskUsually 'security.Policy' should not be changed within the application. Cases where it is accessed and changed require an inspection. Klocwork security vulnerability (SV) checkers identify calls that create potentially dangerous data; these calls are considered unsafe sources. An unsafe source can be any data provided by the user, since the user could be an attacker or has the potential for introducing human error. Mitigation and preventionDetermined by organization policy. Example 111 void setPolicy(Policy newPolicy) { 12 Policy.setPolicy(newPolicy); 13 } SV.USE.POLICY is reported for call on line 12: Method 'setPolicy' from 'java.security.Policy' is used directly. |