[{"data":1,"prerenderedAt":4091},["ShallowReactive",2],{"global-navigation":3,"page-\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec05-j":28,"surround-\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec05-j":2521,"sidebar-sei-cert-oracle-coding-standard-for-java":2528},[4,8],{"title":5,"path":6,"_path":6,"fromAppConfig":7},"Home","\u002F",true,{"title":9,"path":10,"children":11,"_path":27,"fromAppConfig":7},"Coding Standards","\u002Fcoding-standards\u002F",[12,15,18,21,24],{"title":13,"path":14},"Android Coding Standard","\u002Fandroid-secure-coding-standard\u002F",{"title":16,"path":17},"C Coding Standard","\u002Fsei-cert-c-coding-standard\u002F",{"title":19,"path":20},"C++ Coding Standard","\u002Fsei-cert-cpp-coding-standard\u002F",{"title":22,"path":23},"Java Coding Standard","\u002Fsei-cert-oracle-coding-standard-for-java\u002F",{"title":25,"path":26},"Perl Coding Standard","\u002Fsei-cert-perl-coding-standard\u002F","\u002Fcoding-standards",{"id":29,"title":30,"body":31,"description":2509,"extension":2510,"meta":2511,"navigation":7,"path":2517,"seo":2518,"stem":2519,"__hash__":2520},"content\u002F6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F07.sec05-j.md","SEC05-J. Do not use reflection to increase accessibility of classes, methods, or fields",{"type":32,"value":33,"toc":2493},"minimark",[34,38,62,226,229,275,290,297,305,382,409,412,415,423,428,449,455,478,910,914,917,971,985,989,997,1106,1109,1134,1351,1370,1377,1381,1397,1491,1495,1511,1734,1739,1745,1753,1762,1902,1911,1915,1934,2146,2161,2165,2168,2229,2233,2399,2403,2427,2431,2434,2438,2465,2468,2489],[35,36,30],"h1",{"id":37},"sec05-j-do-not-use-reflection-to-increase-accessibility-of-classes-methods-or-fields",[39,40,41,42,47,48,52,53,57,58,61],"p",{},"Reflection enables a Java program to analyze and modify itself. In particular, a program can discover the values of field variables and change them [ ",[43,44,46],"a",{"href":45},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-Forman05","Forman 2005"," ], [ ",[43,49,51],{"href":50},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-Sun02","Sun 2002"," ]. The Java reflection API includes a method that enables fields that are normally inaccessible to be accessed under reflection. The following code prints out the names and values of all fields of an object ",[54,55,56],"code",{},"someObject"," of class ",[54,59,60],{},"SomeClass"," :",[63,64,69],"pre",{"className":65,"code":66,"language":67,"meta":68,"style":68},"language-java shiki shiki-themes github-light github-dark monokai","Field fields[] = SomeClass.class.getDeclaredFields();\nfor (Field field : fields) {\n  if ( !Modifier.isPublic(field.getModifiers())) {\n    field.setAccessible(true);\n  }\n  System.out.print(\"Field: \" + field.getName());\n  System.out.println(\", value: \" + field.get(someObject));\n}\n","java","",[54,70,71,98,118,145,164,170,197,220],{"__ignoreMap":68},[72,73,76,80,84,88,91,95],"span",{"class":74,"line":75},"line",1,[72,77,79],{"class":78},"sk8M1","Field",[72,81,83],{"class":82},"sMOD_"," fields[] ",[72,85,87],{"class":86},"sC2Qs","=",[72,89,90],{"class":82}," SomeClass.class.",[72,92,94],{"class":93},"srTi1","getDeclaredFields",[72,96,97],{"class":82},"();\n",[72,99,101,104,107,109,112,115],{"class":74,"line":100},2,[72,102,103],{"class":86},"for",[72,105,106],{"class":82}," (",[72,108,79],{"class":78},[72,110,111],{"class":82}," field ",[72,113,114],{"class":86},":",[72,116,117],{"class":82}," fields) {\n",[72,119,121,124,127,130,133,136,139,142],{"class":74,"line":120},3,[72,122,123],{"class":86},"  if",[72,125,126],{"class":82}," ( ",[72,128,129],{"class":86},"!",[72,131,132],{"class":82},"Modifier.",[72,134,135],{"class":93},"isPublic",[72,137,138],{"class":82},"(field.",[72,140,141],{"class":93},"getModifiers",[72,143,144],{"class":82},"())) {\n",[72,146,148,151,154,157,161],{"class":74,"line":147},4,[72,149,150],{"class":82},"    field.",[72,152,153],{"class":93},"setAccessible",[72,155,156],{"class":82},"(",[72,158,160],{"class":159},"s7F3e","true",[72,162,163],{"class":82},");\n",[72,165,167],{"class":74,"line":166},5,[72,168,169],{"class":82},"  }\n",[72,171,173,176,179,181,185,188,191,194],{"class":74,"line":172},6,[72,174,175],{"class":82},"  System.out.",[72,177,178],{"class":93},"print",[72,180,156],{"class":82},[72,182,184],{"class":183},"sstjo","\"Field: \"",[72,186,187],{"class":86}," +",[72,189,190],{"class":82}," field.",[72,192,193],{"class":93},"getName",[72,195,196],{"class":82},"());\n",[72,198,200,202,205,207,210,212,214,217],{"class":74,"line":199},7,[72,201,175],{"class":82},[72,203,204],{"class":93},"println",[72,206,156],{"class":82},[72,208,209],{"class":183},"\", value: \"",[72,211,187],{"class":86},[72,213,190],{"class":82},[72,215,216],{"class":93},"get",[72,218,219],{"class":82},"(someObject));\n",[72,221,223],{"class":74,"line":222},8,[72,224,225],{"class":82},"}\n",[39,227,228],{},"A field could be set to a new value as follows:",[63,230,232],{"className":65,"code":231,"language":67,"meta":68,"style":68},"String newValue = reader.readLine();\nfield.set(someObject, returnValue(newValue, field.getType()));\n",[54,233,234,252],{"__ignoreMap":68},[72,235,236,239,242,244,247,250],{"class":74,"line":75},[72,237,238],{"class":78},"String",[72,240,241],{"class":82}," newValue ",[72,243,87],{"class":86},[72,245,246],{"class":82}," reader.",[72,248,249],{"class":93},"readLine",[72,251,97],{"class":82},[72,253,254,257,260,263,266,269,272],{"class":74,"line":100},[72,255,256],{"class":82},"field.",[72,258,259],{"class":93},"set",[72,261,262],{"class":82},"(someObject, ",[72,264,265],{"class":93},"returnValue",[72,267,268],{"class":82},"(newValue, field.",[72,270,271],{"class":93},"getType",[72,273,274],{"class":82},"()));\n",[39,276,277,278,281,282,285,286,289],{},"When the default security manager is used, it prevents fields that are normally inaccessible from being accessed under reflection. The default security manager throws a ",[54,279,280],{},"java.security.AccessControlException"," in these circumstances. However, ",[54,283,284],{},"java.lang.reflect.ReflectPermission"," can be granted with action ",[54,287,288],{},"suppressAccessChecks"," to override this default behavior.",[39,291,292,293,296],{},"For example, the Java Virtual Machine (JVM) normally protects private members of a class from being accessed by an object of a different class. When a method uses reflection to access class members (that is, uses the APIs belonging to the ",[54,294,295],{},"java.lang.reflect"," package), the reflection uses the same restrictions. That is, a foreign object that cannot access private members of a class normally also cannot use reflection to access those members. However, a class with private members but also with a public method that uses reflection to indirectly access those members can inadvertently enable a foreign object to access those private members using the public method, bypassing the intended accessibility restrictions. Consequently, unwary programmers can create an opportunity for a privilege escalation attack by untrusted callers.",[39,298,299,300,304],{},"The following table lists the APIs that should be used with care [ ",[43,301,303],{"href":302},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-SCG09","SCG 2009"," ].",[306,307,308,317],"table",{},[309,310,311],"thead",{},[312,313,314],"tr",{},[315,316],"th",{},[318,319,320,326,333,340,347,354,361,368,375],"tbody",{},[312,321,322],{},[323,324,325],"td",{},"APIs That Mirror Language Checks",[312,327,328],{},[323,329,330],{},[54,331,332],{},"java.lang.Class.newInstance()",[312,334,335],{},[323,336,337],{},[54,338,339],{},"java.lang.reflect.Constructor.newInstance()",[312,341,342],{},[323,343,344],{},[54,345,346],{},"java.lang.reflect.Field.get*()",[312,348,349],{},[323,350,351],{},[54,352,353],{},"java.lang.reflect.Field.set*()",[312,355,356],{},[323,357,358],{},[54,359,360],{},"java.lang.reflect.Method.invoke()",[312,362,363],{},[323,364,365],{},[54,366,367],{},"java.util.concurrent.atomic.AtomicIntegerFieldUpdater.newUpdater()",[312,369,370],{},[323,371,372],{},[54,373,374],{},"java.util.concurrent.atomic.AtomicLongFieldUpdater.newUpdater()",[312,376,377],{},[323,378,379],{},[54,380,381],{},"java.util.concurrent.atomic.AtomicReferenceFieldUpdater.newUpdater()",[39,383,384,385,388,389,392,393,396,397,401,402,388,405,408],{},"Because the ",[54,386,387],{},"setAccessible()"," and ",[54,390,391],{},"getAccessible()"," methods of class ",[54,394,395],{},"java.lang.reflect.Field"," are used to instruct the JVM to override the language access checks, they perform standard (and more restrictive) security manager checks and consequently lack the ",[43,398,400],{"href":399},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-v","vulnerability"," discussed in this rule. Nevertheless, these methods should be used only with extreme caution. The remaining ",[54,403,404],{},"set*()",[54,406,407],{},"get*()"," field reflection methods perform only the language access checks and are vulnerable.",[39,410,411],{},"Use of reflection complicates security analysis and can easily introduce security vulnerabilities. Consequently, programmers should avoid using the reflection APIs when it is feasible to do so. Exercise extreme caution when the use of reflection is necessary.",[39,413,414],{},"In particular, reflection must not be used to provide access to classes, methods, and fields unless those items are already accessible without the use of reflection. For example, the use of reflection to access or modify fields is not allowed unless those fields are already accessible and modifiable by other means, such as through getter and setter methods.",[39,416,417,418,422],{},"This rule is similar to ",[43,419,421],{"href":420},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet04-j","MET04-J. Do not increase the accessibility of overridden or hidden methods"," , but it warns against using reflection, rather than inheritance, to subvert accessibility.",[424,425,427],"h2",{"id":426},"noncompliant-code-example","Noncompliant Code Example",[39,429,430,431,388,434,437,438,440,441,444,445,448],{},"In this noncompliant code example, the private fields ",[54,432,433],{},"i",[54,435,436],{},"j"," can be modified using reflection via a ",[54,439,79],{}," object. Furthermore, any class can modify these fields using reflection via the ",[54,442,443],{},"zeroField()"," method. However, only class ",[54,446,447],{},"FieldExample"," can modify these fields without the use of reflection.",[39,450,451,452,454],{},"Allowing hostile code to pass arbitrary field names to the ",[54,453,443],{}," method can",[456,457,458,467],"ul",{},[459,460,461,462,466],"li",{},"Leak information about field names by throwing an exception for invalid or inaccessible field names (see ",[43,463,465],{"href":464},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr01-j","ERR01-J. Do not allow exceptions to expose sensitive information"," for additional information). This example complies with ERR01-J by catching the relevant exceptions at the end of the method.",[459,468,469,470,474,475,477],{},"Access potentially ",[43,471,473],{"href":472},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-sens","sensitive data"," that is visible to ",[54,476,443],{}," but is hidden from the attacking method. This privilege escalation attack can be difficult to find during code review because the specific field or fields being accessed are controlled by strings in the attacker's code rather than by locally visible source code.",[479,480,482],"code-block",{"quality":481},"bad",[63,483,485],{"className":65,"code":484,"language":67,"meta":68,"style":68},"class FieldExample {\n  private int i = 3;\n  private int j = 4;\n\n  public String toString() {\n    return \"FieldExample: i=\" + i + \", j=\" + j;\n  }\n\n  public void zeroI() {\n    this.i = 0;\n  }\n\n  public void zeroField(String fieldName) {\n    try {\n      Field f = this.getClass().getDeclaredField(fieldName);\n      \u002F\u002F Subsequent access to field f passes language access checks\n      \u002F\u002F because zeroField() could have accessed the field via\n      \u002F\u002F ordinary field references\n      f.setInt(this, 0);\n      \u002F\u002F Log appropriately or throw sanitized exception; see EXC06-J\n    } catch (NoSuchFieldException ex) {\n      \u002F\u002F Report to handler\n    } catch (IllegalAccessException ex) {\n      \u002F\u002F Report to handler\n    }\n  }\n\n  public static void main(String[] args) {\n    FieldExample fe = new FieldExample();\n    System.out.println(fe.toString());\n    for (String arg : args) {\n      fe.zeroField(arg);\n      System.out.println(fe.toString());\n    }\n  }\n}\n",[54,486,487,499,519,535,540,554,577,581,585,598,615,620,625,646,654,683,690,696,702,724,730,749,755,771,776,782,787,792,817,835,851,869,881,895,900,905],{"__ignoreMap":68},[72,488,489,492,496],{"class":74,"line":75},[72,490,491],{"class":86},"class",[72,493,495],{"class":494},"sz2Vg"," FieldExample",[72,497,498],{"class":82}," {\n",[72,500,501,504,508,511,513,516],{"class":74,"line":100},[72,502,503],{"class":86},"  private",[72,505,507],{"class":506},"sq6CD"," int",[72,509,510],{"class":82}," i ",[72,512,87],{"class":86},[72,514,515],{"class":159}," 3",[72,517,518],{"class":82},";\n",[72,520,521,523,525,528,530,533],{"class":74,"line":120},[72,522,503],{"class":86},[72,524,507],{"class":506},[72,526,527],{"class":82}," j ",[72,529,87],{"class":86},[72,531,532],{"class":159}," 4",[72,534,518],{"class":82},[72,536,537],{"class":74,"line":147},[72,538,539],{"emptyLinePlaceholder":7},"\n",[72,541,542,545,548,551],{"class":74,"line":166},[72,543,544],{"class":86},"  public",[72,546,547],{"class":78}," String",[72,549,550],{"class":93}," toString",[72,552,553],{"class":82},"() {\n",[72,555,556,559,562,564,566,569,572,574],{"class":74,"line":172},[72,557,558],{"class":86},"    return",[72,560,561],{"class":183}," \"FieldExample: i=\"",[72,563,187],{"class":86},[72,565,510],{"class":82},[72,567,568],{"class":86},"+",[72,570,571],{"class":183}," \", j=\"",[72,573,187],{"class":86},[72,575,576],{"class":82}," j;\n",[72,578,579],{"class":74,"line":199},[72,580,169],{"class":82},[72,582,583],{"class":74,"line":222},[72,584,539],{"emptyLinePlaceholder":7},[72,586,588,590,593,596],{"class":74,"line":587},9,[72,589,544],{"class":86},[72,591,592],{"class":506}," void",[72,594,595],{"class":93}," zeroI",[72,597,553],{"class":82},[72,599,601,605,608,610,613],{"class":74,"line":600},10,[72,602,604],{"class":603},"sP7S_","    this",[72,606,607],{"class":82},".i ",[72,609,87],{"class":86},[72,611,612],{"class":159}," 0",[72,614,518],{"class":82},[72,616,618],{"class":74,"line":617},11,[72,619,169],{"class":82},[72,621,623],{"class":74,"line":622},12,[72,624,539],{"emptyLinePlaceholder":7},[72,626,628,630,632,635,637,639,643],{"class":74,"line":627},13,[72,629,544],{"class":86},[72,631,592],{"class":506},[72,633,634],{"class":93}," zeroField",[72,636,156],{"class":82},[72,638,238],{"class":78},[72,640,642],{"class":641},"sTHNf"," fieldName",[72,644,645],{"class":82},") {\n",[72,647,649,652],{"class":74,"line":648},14,[72,650,651],{"class":86},"    try",[72,653,498],{"class":82},[72,655,657,660,663,665,668,671,674,677,680],{"class":74,"line":656},15,[72,658,659],{"class":78},"      Field",[72,661,662],{"class":82}," f ",[72,664,87],{"class":86},[72,666,667],{"class":603}," this",[72,669,670],{"class":82},".",[72,672,673],{"class":93},"getClass",[72,675,676],{"class":82},"().",[72,678,679],{"class":93},"getDeclaredField",[72,681,682],{"class":82},"(fieldName);\n",[72,684,686],{"class":74,"line":685},16,[72,687,689],{"class":688},"s8-w5","      \u002F\u002F Subsequent access to field f passes language access checks\n",[72,691,693],{"class":74,"line":692},17,[72,694,695],{"class":688},"      \u002F\u002F because zeroField() could have accessed the field via\n",[72,697,699],{"class":74,"line":698},18,[72,700,701],{"class":688},"      \u002F\u002F ordinary field references\n",[72,703,705,708,711,713,716,719,722],{"class":74,"line":704},19,[72,706,707],{"class":82},"      f.",[72,709,710],{"class":93},"setInt",[72,712,156],{"class":82},[72,714,715],{"class":603},"this",[72,717,718],{"class":82},", ",[72,720,721],{"class":159},"0",[72,723,163],{"class":82},[72,725,727],{"class":74,"line":726},20,[72,728,729],{"class":688},"      \u002F\u002F Log appropriately or throw sanitized exception; see EXC06-J\n",[72,731,733,736,739,741,744,747],{"class":74,"line":732},21,[72,734,735],{"class":82},"    } ",[72,737,738],{"class":86},"catch",[72,740,106],{"class":82},[72,742,743],{"class":78},"NoSuchFieldException",[72,745,746],{"class":641}," ex",[72,748,645],{"class":82},[72,750,752],{"class":74,"line":751},22,[72,753,754],{"class":688},"      \u002F\u002F Report to handler\n",[72,756,758,760,762,764,767,769],{"class":74,"line":757},23,[72,759,735],{"class":82},[72,761,738],{"class":86},[72,763,106],{"class":82},[72,765,766],{"class":78},"IllegalAccessException",[72,768,746],{"class":641},[72,770,645],{"class":82},[72,772,774],{"class":74,"line":773},24,[72,775,754],{"class":688},[72,777,779],{"class":74,"line":778},25,[72,780,781],{"class":82},"    }\n",[72,783,785],{"class":74,"line":784},26,[72,786,169],{"class":82},[72,788,790],{"class":74,"line":789},27,[72,791,539],{"emptyLinePlaceholder":7},[72,793,795,797,800,802,805,807,809,812,815],{"class":74,"line":794},28,[72,796,544],{"class":86},[72,798,799],{"class":86}," static",[72,801,592],{"class":506},[72,803,804],{"class":93}," main",[72,806,156],{"class":82},[72,808,238],{"class":506},[72,810,811],{"class":82},"[] ",[72,813,814],{"class":641},"args",[72,816,645],{"class":82},[72,818,820,823,826,828,831,833],{"class":74,"line":819},29,[72,821,822],{"class":78},"    FieldExample",[72,824,825],{"class":82}," fe ",[72,827,87],{"class":86},[72,829,830],{"class":86}," new",[72,832,495],{"class":93},[72,834,97],{"class":82},[72,836,838,841,843,846,849],{"class":74,"line":837},30,[72,839,840],{"class":82},"    System.out.",[72,842,204],{"class":93},[72,844,845],{"class":82},"(fe.",[72,847,848],{"class":93},"toString",[72,850,196],{"class":82},[72,852,854,857,859,861,864,866],{"class":74,"line":853},31,[72,855,856],{"class":86},"    for",[72,858,106],{"class":82},[72,860,238],{"class":78},[72,862,863],{"class":82}," arg ",[72,865,114],{"class":86},[72,867,868],{"class":82}," args) {\n",[72,870,872,875,878],{"class":74,"line":871},32,[72,873,874],{"class":82},"      fe.",[72,876,877],{"class":93},"zeroField",[72,879,880],{"class":82},"(arg);\n",[72,882,884,887,889,891,893],{"class":74,"line":883},33,[72,885,886],{"class":82},"      System.out.",[72,888,204],{"class":93},[72,890,845],{"class":82},[72,892,848],{"class":93},[72,894,196],{"class":82},[72,896,898],{"class":74,"line":897},34,[72,899,781],{"class":82},[72,901,903],{"class":74,"line":902},35,[72,904,169],{"class":82},[72,906,908],{"class":74,"line":907},36,[72,909,225],{"class":82},[424,911,913],{"id":912},"compliant-solution-private","Compliant Solution (Private)",[39,915,916],{},"When you must use reflection, make sure that the immediate caller (method) is isolated from hostile code by declaring it private or final, as in this compliant solution:",[479,918,920],{"quality":919},"good",[63,921,923],{"className":65,"code":922,"language":67,"meta":68,"style":68},"class FieldExample {\n  \u002F\u002F ...\n\n  private void zeroField(String fieldName) {\n    \u002F\u002F ...\n  }\n}\n",[54,924,925,933,938,942,958,963,967],{"__ignoreMap":68},[72,926,927,929,931],{"class":74,"line":75},[72,928,491],{"class":86},[72,930,495],{"class":494},[72,932,498],{"class":82},[72,934,935],{"class":74,"line":100},[72,936,937],{"class":688},"  \u002F\u002F ...\n",[72,939,940],{"class":74,"line":120},[72,941,539],{"emptyLinePlaceholder":7},[72,943,944,946,948,950,952,954,956],{"class":74,"line":147},[72,945,503],{"class":86},[72,947,592],{"class":506},[72,949,634],{"class":93},[72,951,156],{"class":82},[72,953,238],{"class":78},[72,955,642],{"class":641},[72,957,645],{"class":82},[72,959,960],{"class":74,"line":166},[72,961,962],{"class":688},"    \u002F\u002F ...\n",[72,964,965],{"class":74,"line":172},[72,966,169],{"class":82},[72,968,969],{"class":74,"line":199},[72,970,225],{"class":82},[39,972,973,974,977,978,981,982,984],{},"Note that when language access checks are overridden using ",[54,975,976],{},"java.lang.reflect.Field.setAccessible"," , the immediate caller gains access even to the private fields of other classes. To ensure that the security manager will block attempts to access private fields of other classes, never grant the permission ",[54,979,980],{},"ReflectPermission"," with action ",[54,983,288],{}," .",[424,986,988],{"id":987},"compliant-solution-nonreflection","Compliant Solution (Nonreflection)",[39,990,991,992,996],{},"When a class must use reflection to provide access to fields, it must also provide the same access using a nonreflection interface. This compliant solution provides limited setter methods that grant every caller the ability to zero out its fields without using reflection. If these setter methods comply with all other rules or ",[43,993,995],{"href":994},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-securi","security policies"," , the use of reflection also complies with this rule.",[479,998,999],{"quality":919},[63,1000,1002],{"className":65,"code":1001,"language":67,"meta":68,"style":68},"class FieldExample {\n  \u002F\u002F ...\n\n  public void zeroField(String fieldName) {\n    \u002F\u002F ...\n  }\n\n  public void zeroI() {\n    this.i = 0;\n  }\n  public void zeroJ() {\n    this.j = 0;\n  }\n}\n",[54,1003,1004,1012,1016,1020,1036,1040,1044,1048,1058,1070,1074,1085,1098,1102],{"__ignoreMap":68},[72,1005,1006,1008,1010],{"class":74,"line":75},[72,1007,491],{"class":86},[72,1009,495],{"class":494},[72,1011,498],{"class":82},[72,1013,1014],{"class":74,"line":100},[72,1015,937],{"class":688},[72,1017,1018],{"class":74,"line":120},[72,1019,539],{"emptyLinePlaceholder":7},[72,1021,1022,1024,1026,1028,1030,1032,1034],{"class":74,"line":147},[72,1023,544],{"class":86},[72,1025,592],{"class":506},[72,1027,634],{"class":93},[72,1029,156],{"class":82},[72,1031,238],{"class":78},[72,1033,642],{"class":641},[72,1035,645],{"class":82},[72,1037,1038],{"class":74,"line":166},[72,1039,962],{"class":688},[72,1041,1042],{"class":74,"line":172},[72,1043,169],{"class":82},[72,1045,1046],{"class":74,"line":199},[72,1047,539],{"emptyLinePlaceholder":7},[72,1049,1050,1052,1054,1056],{"class":74,"line":222},[72,1051,544],{"class":86},[72,1053,592],{"class":506},[72,1055,595],{"class":93},[72,1057,553],{"class":82},[72,1059,1060,1062,1064,1066,1068],{"class":74,"line":587},[72,1061,604],{"class":603},[72,1063,607],{"class":82},[72,1065,87],{"class":86},[72,1067,612],{"class":159},[72,1069,518],{"class":82},[72,1071,1072],{"class":74,"line":600},[72,1073,169],{"class":82},[72,1075,1076,1078,1080,1083],{"class":74,"line":617},[72,1077,544],{"class":86},[72,1079,592],{"class":506},[72,1081,1082],{"class":93}," zeroJ",[72,1084,553],{"class":82},[72,1086,1087,1089,1092,1094,1096],{"class":74,"line":622},[72,1088,604],{"class":603},[72,1090,1091],{"class":82},".j ",[72,1093,87],{"class":86},[72,1095,612],{"class":159},[72,1097,518],{"class":82},[72,1099,1100],{"class":74,"line":627},[72,1101,169],{"class":82},[72,1103,1104],{"class":74,"line":648},[72,1105,225],{"class":82},[424,1107,427],{"id":1108},"noncompliant-code-example-1",[39,1110,1111,1112,1115,1116,1119,1120,1123,1124,1127,1128,1130,1131,1133],{},"In this noncompliant code example, the programmer intends that code outside the ",[54,1113,1114],{},"Safe"," package should be prevented from creating a new instance of an arbitrary class. Consequently, the ",[54,1117,1118],{},"Trusted"," class uses a package-private constructor. However, because the API is public, an attacker can pass ",[54,1121,1122],{},"Trusted.class"," itself as an argument to the ",[54,1125,1126],{},"create()"," method and bypass the language access checks that prevent code outside the package from invoking the package-private constructor. The ",[54,1129,1126],{}," method returns an unauthorized instance of the ",[54,1132,1118],{}," class.",[479,1135,1136],{"quality":481},[63,1137,1139],{"className":65,"code":1138,"language":67,"meta":68,"style":68},"package Safe;\npublic class Trusted {\n  Trusted() { } \u002F\u002F Package-private constructor\n  public static \u003CT> T create(Class\u003CT> c)\n      throws InstantiationException, IllegalAccessException {\n    return c.newInstance();\n  }\n}\n\npackage Attacker;\nimport Safe.Trusted;\n\npublic class Attack {\n  public static void main(String[] args)\n      throws InstantiationException, IllegalAccessException {\n    System.out.println(Trusted.create(Trusted.class)); \u002F\u002F Succeeds\n  }\n}\n",[54,1140,1141,1156,1169,1180,1218,1232,1244,1248,1252,1256,1268,1278,1282,1293,1313,1325,1343,1347],{"__ignoreMap":68},[72,1142,1143,1146,1150,1154],{"class":74,"line":75},[72,1144,1145],{"class":86},"package",[72,1147,1149],{"class":1148},"st05x"," S",[72,1151,1153],{"class":1152},"s-ngx","afe",[72,1155,518],{"class":82},[72,1157,1158,1161,1164,1167],{"class":74,"line":100},[72,1159,1160],{"class":86},"public",[72,1162,1163],{"class":86}," class",[72,1165,1166],{"class":494}," Trusted",[72,1168,498],{"class":82},[72,1170,1171,1174,1177],{"class":74,"line":120},[72,1172,1173],{"class":93},"  Trusted",[72,1175,1176],{"class":82},"() { } ",[72,1178,1179],{"class":688},"\u002F\u002F Package-private constructor\n",[72,1181,1182,1184,1186,1189,1192,1195,1197,1200,1202,1205,1208,1210,1212,1215],{"class":74,"line":147},[72,1183,544],{"class":86},[72,1185,799],{"class":86},[72,1187,1188],{"class":82}," \u003C",[72,1190,1191],{"class":506},"T",[72,1193,1194],{"class":82},"> ",[72,1196,1191],{"class":78},[72,1198,1199],{"class":93}," create",[72,1201,156],{"class":82},[72,1203,1204],{"class":78},"Class",[72,1206,1207],{"class":82},"\u003C",[72,1209,1191],{"class":506},[72,1211,1194],{"class":82},[72,1213,1214],{"class":641},"c",[72,1216,1217],{"class":82},")\n",[72,1219,1220,1223,1226,1228,1230],{"class":74,"line":166},[72,1221,1222],{"class":86},"      throws",[72,1224,1225],{"class":78}," InstantiationException",[72,1227,718],{"class":82},[72,1229,766],{"class":78},[72,1231,498],{"class":82},[72,1233,1234,1236,1239,1242],{"class":74,"line":172},[72,1235,558],{"class":86},[72,1237,1238],{"class":82}," c.",[72,1240,1241],{"class":93},"newInstance",[72,1243,97],{"class":82},[72,1245,1246],{"class":74,"line":199},[72,1247,169],{"class":82},[72,1249,1250],{"class":74,"line":222},[72,1251,225],{"class":82},[72,1253,1254],{"class":74,"line":587},[72,1255,539],{"emptyLinePlaceholder":7},[72,1257,1258,1260,1263,1266],{"class":74,"line":600},[72,1259,1145],{"class":86},[72,1261,1262],{"class":1148}," A",[72,1264,1265],{"class":1152},"ttacker",[72,1267,518],{"class":82},[72,1269,1270,1273,1276],{"class":74,"line":617},[72,1271,1272],{"class":86},"import",[72,1274,1275],{"class":1152}," Safe.Trusted",[72,1277,518],{"class":82},[72,1279,1280],{"class":74,"line":622},[72,1281,539],{"emptyLinePlaceholder":7},[72,1283,1284,1286,1288,1291],{"class":74,"line":627},[72,1285,1160],{"class":86},[72,1287,1163],{"class":86},[72,1289,1290],{"class":494}," Attack",[72,1292,498],{"class":82},[72,1294,1295,1297,1299,1301,1303,1305,1307,1309,1311],{"class":74,"line":648},[72,1296,544],{"class":86},[72,1298,799],{"class":86},[72,1300,592],{"class":506},[72,1302,804],{"class":93},[72,1304,156],{"class":82},[72,1306,238],{"class":506},[72,1308,811],{"class":82},[72,1310,814],{"class":641},[72,1312,1217],{"class":82},[72,1314,1315,1317,1319,1321,1323],{"class":74,"line":656},[72,1316,1222],{"class":86},[72,1318,1225],{"class":78},[72,1320,718],{"class":82},[72,1322,766],{"class":78},[72,1324,498],{"class":82},[72,1326,1327,1329,1331,1334,1337,1340],{"class":74,"line":685},[72,1328,840],{"class":82},[72,1330,204],{"class":93},[72,1332,1333],{"class":82},"(Trusted.",[72,1335,1336],{"class":93},"create",[72,1338,1339],{"class":82},"(Trusted.class)); ",[72,1341,1342],{"class":688},"\u002F\u002F Succeeds\n",[72,1344,1345],{"class":74,"line":692},[72,1346,169],{"class":82},[72,1348,1349],{"class":74,"line":698},[72,1350,225],{"class":82},[39,1352,1353,1354,1357,1358,1361,1362,1365,1366,1369],{},"In the presence of a security manager ",[54,1355,1356],{},"s"," , the ",[54,1359,1360],{},"Class.newInstance()"," method throws a security exception when (a) ",[54,1363,1364],{},"  s.checkMemberAccess(this, Member.PUBLIC) "," denies creation of new instances of this class or (b) the caller's class loader is not the same class loader or an ancestor of the class loader for the current class, and invocation of ",[54,1367,1368],{},"s.checkPackageAccess()"," denies access to the package of this class.",[39,1371,1372,1373,1376],{},"The ",[54,1374,1375],{},"checkMemberAccess"," method allows access to public members and classes that have the same class loader as the caller. However, the class loader comparison is often insufficient; for example, all applets share the same class loader by convention, consequently allowing a malicious applet to pass the security check in this case.",[424,1378,1380],{"id":1379},"compliant-solution-access-reduction","Compliant Solution (Access Reduction)",[39,1382,1383,1384,1386,1387,1389,1390,1392,1393,1396],{},"This compliant solution reduces the access of the ",[54,1385,1126],{}," method to package-private, preventing a caller from outside the package from using that method to bypass the language access checks to create an instance of the ",[54,1388,1118],{}," class. Any caller that can create a ",[54,1391,1118],{}," class instance using reflection can simply call the ",[54,1394,1395],{},"Trusted()"," constructor instead.",[479,1398,1399],{"quality":919},[63,1400,1402],{"className":65,"code":1401,"language":67,"meta":68,"style":68},"package Safe;\npublic class Trusted {\n  Trusted() { } \u002F\u002F Package-private constructor\n  static \u003CT> T create(Class\u003CT> c)\n      throws InstantiationException, IllegalAccessException {\n    return c.newInstance();\n  }\n}\n",[54,1403,1404,1414,1424,1432,1461,1473,1483,1487],{"__ignoreMap":68},[72,1405,1406,1408,1410,1412],{"class":74,"line":75},[72,1407,1145],{"class":86},[72,1409,1149],{"class":1148},[72,1411,1153],{"class":1152},[72,1413,518],{"class":82},[72,1415,1416,1418,1420,1422],{"class":74,"line":100},[72,1417,1160],{"class":86},[72,1419,1163],{"class":86},[72,1421,1166],{"class":494},[72,1423,498],{"class":82},[72,1425,1426,1428,1430],{"class":74,"line":120},[72,1427,1173],{"class":93},[72,1429,1176],{"class":82},[72,1431,1179],{"class":688},[72,1433,1434,1437,1439,1441,1443,1445,1447,1449,1451,1453,1455,1457,1459],{"class":74,"line":147},[72,1435,1436],{"class":86},"  static",[72,1438,1188],{"class":82},[72,1440,1191],{"class":506},[72,1442,1194],{"class":82},[72,1444,1191],{"class":78},[72,1446,1199],{"class":93},[72,1448,156],{"class":82},[72,1450,1204],{"class":78},[72,1452,1207],{"class":82},[72,1454,1191],{"class":506},[72,1456,1194],{"class":82},[72,1458,1214],{"class":641},[72,1460,1217],{"class":82},[72,1462,1463,1465,1467,1469,1471],{"class":74,"line":166},[72,1464,1222],{"class":86},[72,1466,1225],{"class":78},[72,1468,718],{"class":82},[72,1470,766],{"class":78},[72,1472,498],{"class":82},[72,1474,1475,1477,1479,1481],{"class":74,"line":172},[72,1476,558],{"class":86},[72,1478,1238],{"class":82},[72,1480,1241],{"class":93},[72,1482,97],{"class":82},[72,1484,1485],{"class":74,"line":199},[72,1486,169],{"class":82},[72,1488,1489],{"class":74,"line":222},[72,1490,225],{"class":82},[424,1492,1494],{"id":1493},"compliant-solution-security-manager-check","Compliant Solution (Security Manager Check)",[39,1496,1497,1498,1501,1502,1504,1505,1508,1509,984],{},"This compliant solution uses the ",[54,1499,1500],{},"getConstructors()"," method to check whether the class provided as an argument has public constructors. The security issue is irrelevant when public constructors are present because such constructors are already accessible even to malicious code. When public constructors are absent, the ",[54,1503,1126],{}," method uses the security manager's ",[54,1506,1507],{},"checkPackageAccess()"," method to ensure that all callers in the execution chain have sufficient permissions to access classes and their respective members defined in package ",[54,1510,1114],{},[479,1512,1513],{"quality":919},[63,1514,1516],{"className":65,"code":1515,"language":67,"meta":68,"style":68},"import java.beans.Beans;\nimport java.io.IOException;\npackage Safe;\n\npublic class Trusted  {\n  Trusted() { }\n  \n  public static \u003CT> T create(Class\u003CT> c)\n      throws InstantiationException, IllegalAccessException {\n    \n    if (c.getConstructors().length == 0) {  \u002F\u002F No public constructors \n      SecurityManager sm = System.getSecurityManager();    \n      if (sm != null) {\n        \u002F\u002F Throws an exception when access is not allowed          \n        sm.checkPackageAccess(\"Safe\");          \n      }\n    } \n    return c.newInstance(); \u002F\u002F Safe to return     \n  }  \n}\n",[54,1517,1518,1527,1536,1546,1550,1561,1568,1573,1603,1615,1620,1645,1664,1680,1685,1701,1706,1711,1725,1730],{"__ignoreMap":68},[72,1519,1520,1522,1525],{"class":74,"line":75},[72,1521,1272],{"class":86},[72,1523,1524],{"class":1152}," java.beans.Beans",[72,1526,518],{"class":82},[72,1528,1529,1531,1534],{"class":74,"line":100},[72,1530,1272],{"class":86},[72,1532,1533],{"class":1152}," java.io.IOException",[72,1535,518],{"class":82},[72,1537,1538,1540,1542,1544],{"class":74,"line":120},[72,1539,1145],{"class":86},[72,1541,1149],{"class":1148},[72,1543,1153],{"class":1152},[72,1545,518],{"class":82},[72,1547,1548],{"class":74,"line":147},[72,1549,539],{"emptyLinePlaceholder":7},[72,1551,1552,1554,1556,1558],{"class":74,"line":166},[72,1553,1160],{"class":86},[72,1555,1163],{"class":86},[72,1557,1166],{"class":494},[72,1559,1560],{"class":82},"  {\n",[72,1562,1563,1565],{"class":74,"line":172},[72,1564,1173],{"class":93},[72,1566,1567],{"class":82},"() { }\n",[72,1569,1570],{"class":74,"line":199},[72,1571,1572],{"class":82},"  \n",[72,1574,1575,1577,1579,1581,1583,1585,1587,1589,1591,1593,1595,1597,1599,1601],{"class":74,"line":222},[72,1576,544],{"class":86},[72,1578,799],{"class":86},[72,1580,1188],{"class":82},[72,1582,1191],{"class":506},[72,1584,1194],{"class":82},[72,1586,1191],{"class":78},[72,1588,1199],{"class":93},[72,1590,156],{"class":82},[72,1592,1204],{"class":78},[72,1594,1207],{"class":82},[72,1596,1191],{"class":506},[72,1598,1194],{"class":82},[72,1600,1214],{"class":641},[72,1602,1217],{"class":82},[72,1604,1605,1607,1609,1611,1613],{"class":74,"line":587},[72,1606,1222],{"class":86},[72,1608,1225],{"class":78},[72,1610,718],{"class":82},[72,1612,766],{"class":78},[72,1614,498],{"class":82},[72,1616,1617],{"class":74,"line":600},[72,1618,1619],{"class":82},"    \n",[72,1621,1622,1625,1628,1631,1634,1637,1639,1642],{"class":74,"line":617},[72,1623,1624],{"class":86},"    if",[72,1626,1627],{"class":82}," (c.",[72,1629,1630],{"class":93},"getConstructors",[72,1632,1633],{"class":82},"().length ",[72,1635,1636],{"class":86},"==",[72,1638,612],{"class":159},[72,1640,1641],{"class":82},") {  ",[72,1643,1644],{"class":688},"\u002F\u002F No public constructors \n",[72,1646,1647,1650,1653,1655,1658,1661],{"class":74,"line":622},[72,1648,1649],{"class":78},"      SecurityManager",[72,1651,1652],{"class":82}," sm ",[72,1654,87],{"class":86},[72,1656,1657],{"class":82}," System.",[72,1659,1660],{"class":93},"getSecurityManager",[72,1662,1663],{"class":82},"();    \n",[72,1665,1666,1669,1672,1675,1678],{"class":74,"line":627},[72,1667,1668],{"class":86},"      if",[72,1670,1671],{"class":82}," (sm ",[72,1673,1674],{"class":86},"!=",[72,1676,1677],{"class":159}," null",[72,1679,645],{"class":82},[72,1681,1682],{"class":74,"line":648},[72,1683,1684],{"class":688},"        \u002F\u002F Throws an exception when access is not allowed          \n",[72,1686,1687,1690,1693,1695,1698],{"class":74,"line":656},[72,1688,1689],{"class":82},"        sm.",[72,1691,1692],{"class":93},"checkPackageAccess",[72,1694,156],{"class":82},[72,1696,1697],{"class":183},"\"Safe\"",[72,1699,1700],{"class":82},");          \n",[72,1702,1703],{"class":74,"line":685},[72,1704,1705],{"class":82},"      }\n",[72,1707,1708],{"class":74,"line":692},[72,1709,1710],{"class":82},"    } \n",[72,1712,1713,1715,1717,1719,1722],{"class":74,"line":698},[72,1714,558],{"class":86},[72,1716,1238],{"class":82},[72,1718,1241],{"class":93},[72,1720,1721],{"class":82},"(); ",[72,1723,1724],{"class":688},"\u002F\u002F Safe to return     \n",[72,1726,1727],{"class":74,"line":704},[72,1728,1729],{"class":82},"  }  \n",[72,1731,1732],{"class":74,"line":726},[72,1733,225],{"class":82},[39,1735,1736,1737,984],{},"The disadvantage of this compliant solution is that the class must be granted reflection permissions to permit the call to ",[54,1738,1500],{},[39,1740,1741],{},[1742,1743],"img",{"alt":68,"src":1744},"plugins\u002Fservlet\u002Fconfluence\u002Fplaceholder\u002Funknown-macro",[424,1746,1748,1749,1752],{"id":1747},"compliant-solution-javabeans-package","Compliant Solution ( ",[54,1750,1751],{},"java.beans"," Package)",[39,1754,1497,1755,1758,1759,1761],{},[54,1756,1757],{},"java.beans.Beans"," API to check whether the ",[54,1760,1204],{}," object being received has any public constructors:",[479,1763,1764],{"quality":919},[63,1765,1767],{"className":65,"code":1766,"language":67,"meta":68,"style":68},"public class Trusted {\n  Trusted() { }\n  \n  public static \u003CT> T create(Class\u003CT> c)\n      throws IOException, ClassNotFoundException {\n    \n    \u002F\u002F Executes without exception only if there are public constructors\n    ClassLoader cl = new SafeClassLoader();\n    Object b = Beans.instantiate(cl, c.getName());\n    return c.cast(b);      \n  }  \n}\n",[54,1768,1769,1779,1785,1789,1819,1833,1837,1842,1859,1882,1894,1898],{"__ignoreMap":68},[72,1770,1771,1773,1775,1777],{"class":74,"line":75},[72,1772,1160],{"class":86},[72,1774,1163],{"class":86},[72,1776,1166],{"class":494},[72,1778,498],{"class":82},[72,1780,1781,1783],{"class":74,"line":100},[72,1782,1173],{"class":93},[72,1784,1567],{"class":82},[72,1786,1787],{"class":74,"line":120},[72,1788,1572],{"class":82},[72,1790,1791,1793,1795,1797,1799,1801,1803,1805,1807,1809,1811,1813,1815,1817],{"class":74,"line":147},[72,1792,544],{"class":86},[72,1794,799],{"class":86},[72,1796,1188],{"class":82},[72,1798,1191],{"class":506},[72,1800,1194],{"class":82},[72,1802,1191],{"class":78},[72,1804,1199],{"class":93},[72,1806,156],{"class":82},[72,1808,1204],{"class":78},[72,1810,1207],{"class":82},[72,1812,1191],{"class":506},[72,1814,1194],{"class":82},[72,1816,1214],{"class":641},[72,1818,1217],{"class":82},[72,1820,1821,1823,1826,1828,1831],{"class":74,"line":166},[72,1822,1222],{"class":86},[72,1824,1825],{"class":78}," IOException",[72,1827,718],{"class":82},[72,1829,1830],{"class":78},"ClassNotFoundException",[72,1832,498],{"class":82},[72,1834,1835],{"class":74,"line":172},[72,1836,1619],{"class":82},[72,1838,1839],{"class":74,"line":199},[72,1840,1841],{"class":688},"    \u002F\u002F Executes without exception only if there are public constructors\n",[72,1843,1844,1847,1850,1852,1854,1857],{"class":74,"line":222},[72,1845,1846],{"class":78},"    ClassLoader",[72,1848,1849],{"class":82}," cl ",[72,1851,87],{"class":86},[72,1853,830],{"class":86},[72,1855,1856],{"class":93}," SafeClassLoader",[72,1858,97],{"class":82},[72,1860,1861,1864,1867,1869,1872,1875,1878,1880],{"class":74,"line":587},[72,1862,1863],{"class":78},"    Object",[72,1865,1866],{"class":82}," b ",[72,1868,87],{"class":86},[72,1870,1871],{"class":82}," Beans.",[72,1873,1874],{"class":93},"instantiate",[72,1876,1877],{"class":82},"(cl, c.",[72,1879,193],{"class":93},[72,1881,196],{"class":82},[72,1883,1884,1886,1888,1891],{"class":74,"line":600},[72,1885,558],{"class":86},[72,1887,1238],{"class":82},[72,1889,1890],{"class":93},"cast",[72,1892,1893],{"class":82},"(b);      \n",[72,1895,1896],{"class":74,"line":617},[72,1897,1729],{"class":82},[72,1899,1900],{"class":74,"line":622},[72,1901,225],{"class":82},[39,1903,1372,1904,1907,1908,1910],{},[54,1905,1906],{},"Beans.instantiate()"," method succeeds only when the class being instantiated has a public constructor; otherwise, it throws an ",[54,1909,766],{}," . The method uses a class loader argument along with the name of the class to instantiate. Unlike the previous compliant solution, this approach avoids the need for any reflection permissions.",[424,1912,1914],{"id":1913},"related-vulnerabilities","Related Vulnerabilities",[39,1916,1917,1918,1924,1925,1929,1930,1933],{},"CERT Vulnerability ",[43,1919,1923],{"href":1920,"rel":1921},"http:\u002F\u002Fwww.kb.cert.org\u002Fvuls\u002Fid\u002F636312",[1922],"nofollow","#636312"," describes an exploit in Java that allows malicious code to disable any security manager currently in effect. Among other ",[43,1926,1928],{"href":1927},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary","vulnerabilities"," , the attack code exploited the following method defined in ",[54,1931,1932],{},"sun.awt.SunToolkit"," , for Java 7:",[479,1935,1936],{"quality":481},[63,1937,1939],{"className":65,"code":1938,"language":67,"meta":68,"style":68},"public static Field getField(final Class klass, final String fieldName) {\n  return AccessController.doPrivileged(new PrivilegedAction\u003CField>() {\n       public Field run() {\n           try {\n               Field field = klass.getDeclaredField(fieldName);\n               assert (field != null);\n               field.setAccessible(true);\n               return field;\n           } catch (SecurityException e) {\n               assert false;\n           } catch (NoSuchFieldException e) {\n               assert false;\n           }\n           return null;\n       }\u002F\u002Frun\n  });\n}\n",[54,1940,1941,1971,1997,2009,2016,2032,2046,2059,2067,2084,2093,2107,2115,2120,2129,2137,2142],{"__ignoreMap":68},[72,1942,1943,1945,1947,1950,1953,1955,1958,1961,1964,1966,1968],{"class":74,"line":75},[72,1944,1160],{"class":86},[72,1946,799],{"class":86},[72,1948,1949],{"class":78}," Field",[72,1951,1952],{"class":93}," getField",[72,1954,156],{"class":82},[72,1956,1957],{"class":86},"final",[72,1959,1960],{"class":78}," Class",[72,1962,1963],{"class":82}," klass, ",[72,1965,1957],{"class":86},[72,1967,547],{"class":78},[72,1969,1970],{"class":82}," fieldName) {\n",[72,1972,1973,1976,1979,1982,1984,1987,1990,1992,1994],{"class":74,"line":100},[72,1974,1975],{"class":86},"  return",[72,1977,1978],{"class":82}," AccessController.",[72,1980,1981],{"class":93},"doPrivileged",[72,1983,156],{"class":82},[72,1985,1986],{"class":86},"new",[72,1988,1989],{"class":78}," PrivilegedAction",[72,1991,1207],{"class":82},[72,1993,79],{"class":506},[72,1995,1996],{"class":82},">() {\n",[72,1998,1999,2002,2004,2007],{"class":74,"line":120},[72,2000,2001],{"class":86},"       public",[72,2003,1949],{"class":78},[72,2005,2006],{"class":93}," run",[72,2008,553],{"class":82},[72,2010,2011,2014],{"class":74,"line":147},[72,2012,2013],{"class":86},"           try",[72,2015,498],{"class":82},[72,2017,2018,2021,2023,2025,2028,2030],{"class":74,"line":166},[72,2019,2020],{"class":78},"               Field",[72,2022,111],{"class":82},[72,2024,87],{"class":86},[72,2026,2027],{"class":82}," klass.",[72,2029,679],{"class":93},[72,2031,682],{"class":82},[72,2033,2034,2037,2040,2042,2044],{"class":74,"line":172},[72,2035,2036],{"class":86},"               assert",[72,2038,2039],{"class":82}," (field ",[72,2041,1674],{"class":86},[72,2043,1677],{"class":159},[72,2045,163],{"class":82},[72,2047,2048,2051,2053,2055,2057],{"class":74,"line":199},[72,2049,2050],{"class":82},"               field.",[72,2052,153],{"class":93},[72,2054,156],{"class":82},[72,2056,160],{"class":159},[72,2058,163],{"class":82},[72,2060,2061,2064],{"class":74,"line":222},[72,2062,2063],{"class":86},"               return",[72,2065,2066],{"class":82}," field;\n",[72,2068,2069,2072,2074,2076,2079,2082],{"class":74,"line":587},[72,2070,2071],{"class":82},"           } ",[72,2073,738],{"class":86},[72,2075,106],{"class":82},[72,2077,2078],{"class":78},"SecurityException",[72,2080,2081],{"class":641}," e",[72,2083,645],{"class":82},[72,2085,2086,2088,2091],{"class":74,"line":600},[72,2087,2036],{"class":86},[72,2089,2090],{"class":159}," false",[72,2092,518],{"class":82},[72,2094,2095,2097,2099,2101,2103,2105],{"class":74,"line":617},[72,2096,2071],{"class":82},[72,2098,738],{"class":86},[72,2100,106],{"class":82},[72,2102,743],{"class":78},[72,2104,2081],{"class":641},[72,2106,645],{"class":82},[72,2108,2109,2111,2113],{"class":74,"line":622},[72,2110,2036],{"class":86},[72,2112,2090],{"class":159},[72,2114,518],{"class":82},[72,2116,2117],{"class":74,"line":627},[72,2118,2119],{"class":82},"           }\n",[72,2121,2122,2125,2127],{"class":74,"line":648},[72,2123,2124],{"class":86},"           return",[72,2126,1677],{"class":159},[72,2128,518],{"class":82},[72,2130,2131,2134],{"class":74,"line":656},[72,2132,2133],{"class":82},"       }",[72,2135,2136],{"class":688},"\u002F\u002Frun\n",[72,2138,2139],{"class":74,"line":685},[72,2140,2141],{"class":82},"  });\n",[72,2143,2144],{"class":74,"line":692},[72,2145,225],{"class":82},[39,2147,2148,2149,2152,2153,2156,2157,2160],{},"This code operates inside a ",[54,2150,2151],{},"doPrivileged()"," block. It then uses the reflection method ",[54,2154,2155],{},"Class.getDeclaredField()"," to obtain a field given the field's class and name. This method would normally be blocked by a security manager. It then uses the reflection method ",[54,2158,2159],{},"Field.setAccessible()"," to make the field accessible, even if it were protected or private. But this method is public, so anyone can call it.",[424,2162,2164],{"id":2163},"risk-assessment","Risk Assessment",[39,2166,2167],{},"Misuse of APIs that perform language access checks only against the immediate caller can break data encapsulation, leak sensitive information, or permit privilege escalation attacks.",[306,2169,2170,2171,2170,2198],{},"\n  ",[309,2172,2173,2174,2170],{},"\n    ",[312,2175,2176,2177,2176,2180,2176,2183,2176,2186,2176,2189,2176,2192,2176,2195,2173],{},"\n      ",[315,2178,2179],{},"Rule",[315,2181,2182],{},"Severity",[315,2184,2185],{},"Likelihood",[315,2187,2188],{},"Detectable",[315,2190,2191],{},"Repairable",[315,2193,2194],{},"Priority",[315,2196,2197],{},"Level",[318,2199,2173,2200,2170],{},[312,2201,2176,2202,2176,2205,2176,2208,2176,2211,2176,2214,2176,2217,2176,2224,2173],{},[323,2203,2204],{},"SEC05-J",[323,2206,2207],{},"High",[323,2209,2210],{},"Probable",[323,2212,2213],{},"Yes",[323,2215,2216],{},"No",[323,2218,2220],{"style":2219},"color: #e74c3c;",[2221,2222,2223],"b",{},"P12",[323,2225,2226],{"style":2219},[2221,2227,2228],{},"L1",[424,2230,2232],{"id":2231},"automated-detection","Automated Detection",[306,2234,2237],{"className":2235},[2236],"wrapped",[318,2238,2239,2255,2295,2319,2344,2374],{},[312,2240,2243,2246,2249,2252],{"className":2241},[2242],"header",[315,2244,2245],{},"Tool",[315,2247,2248],{},"Version",[315,2250,2251],{},"Checker",[315,2253,2254],{},"Description",[312,2256,2259,2265,2273,2287],{"className":2257},[2258],"odd",[323,2260,2261],{},[43,2262,2264],{"href":2263},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fcodesonar","CodeSonar",[323,2266,2267],{},[2268,2269,2272],"div",{"className":2270},[2271],"content-wrapper","9.0p0",[323,2274,2275],{},[39,2276,2277,2281,2284],{},[2278,2279,2280],"strong",{},"JAVA.CLASS.ACCESS.BYPASS",[2282,2283],"br",{},[2278,2285,2286],{},"JAVA.CLASS.ACCESS.MODIFY",[323,2288,2289],{},[39,2290,2291,2292,2294],{},"Reflection bypasses member accessibility (Java)",[2282,2293],{},"\nReflection modifies member accessibility (Java)",[312,2296,2299,2305,2311,2316],{"className":2297},[2298],"even",[323,2300,2301],{},[43,2302,2304],{"href":2303},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fparasoft","Parasoft Jtest",[323,2306,2307],{},[2268,2308,2310],{"className":2309},[2271],"2025.2",[323,2312,2313],{},[2278,2314,2315],{},"CERT.SEC05.ARM",[323,2317,2318],{},"Avoid using reflection methods",[312,2320,2322,2328,2336,2341],{"className":2321},[2258],[323,2323,2324],{},[43,2325,2327],{"href":2326},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fsecurity-reviewer-static-reviewer","Security Reviewer - Static Reviewer",[323,2329,2330],{},[2268,2331,2333],{"className":2332},[2271],[39,2334,2335],{},"6.02",[323,2337,2338],{},[2278,2339,2340],{},"Injection05",[323,2342,2343],{},"Full Implementation",[312,2345,2347,2353,2359,2369],{"className":2346},[2298],[323,2348,2349],{},[43,2350,2352],{"href":2351},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fsonarqube","SonarQube",[323,2354,2355],{},[2268,2356,2358],{"className":2357},[2271],"9.9",[323,2360,2361],{},[39,2362,2363],{},[2278,2364,2365],{},[43,2366,2368],{"href":2367},"https:\u002F\u002Frules.sonarsource.com\u002Fjava\u002FRSPEC-3011","S3011",[323,2370,2371],{},[43,2372,2373],{"href":2367},"Changing or bypassing accessibility is security-sensitive",[312,2375,2377,2383,2391,2396],{"className":2376},[2258],[323,2378,2379],{},[43,2380,2382],{"href":2381},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fspotbugs","SpotBugs",[323,2384,2385],{},[2268,2386,2388],{"className":2387},[2271],[39,2389,2390],{},"4.6.0",[323,2392,2393],{},[2278,2394,2395],{},"REFL_REFLECTION_INCREASES_ACCESSIBILITY_OF_CLASS",[323,2397,2398],{},"Implemented (since 4.5.0)",[424,2400,2402],{"id":2401},"related-guidelines","Related Guidelines",[306,2404,2405,2413],{},[309,2406,2407],{},[312,2408,2409,2411],{},[315,2410],{},[315,2412],{},[318,2414,2415],{},[312,2416,2417,2424],{},[323,2418,2419],{},[43,2420,2423],{"href":2421,"rel":2422},"http:\u002F\u002Fwww.oracle.com\u002Ftechnetwork\u002Fjava\u002Fseccodeguide-139067.html",[1922],"Secure Coding Guidelines for Java SE, Version 5.0",[323,2425,2426],{},"Guideline 9-10 \u002F ACCESS-10: Be aware of standard APIs that perform Java language access checks against the immediate caller",[424,2428,2430],{"id":2429},"android-implementation-details","Android Implementation Details",[39,2432,2433],{},"Reflection can be used on Android, so this rule is applicable. Also, the use of reflection may allow a developer to access private Android APIs and so requires caution.",[424,2435,2437],{"id":2436},"bibliography","Bibliography",[306,2439,2440,2448],{},[309,2441,2442],{},[312,2443,2444,2446],{},[315,2445],{},[315,2447],{},[318,2449,2450],{},[312,2451,2452,2460],{},[323,2453,2454,2455,2459],{},"[ ",[43,2456,2458],{"href":2457},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-Chan99","Chan 1999"," ]",[323,2461,2462],{},[54,2463,2464],{},"      java.lang.reflect AccessibleObject     ",[2466,2467],"hr",{},[39,2469,2470,2476,2477,2476,2483],{},[43,2471,2473],{"href":2472},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec04-j",[1742,2474],{"src":2475},"\u002Fattachments\u002F88487702\u002F88497198.png"," ",[43,2478,2480],{"href":2479},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002F",[1742,2481],{"src":2482},"\u002Fattachments\u002F88487702\u002F88497196.png",[43,2484,2486],{"href":2485},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec06-j",[1742,2487],{"src":2488},"\u002Fattachments\u002F88487702\u002F88497197.png",[2490,2491,2492],"style",{},"html pre.shiki code .sk8M1, html code.shiki .sk8M1{--shiki-default:#24292E;--shiki-default-font-style:inherit;--shiki-dark:#E1E4E8;--shiki-dark-font-style:inherit;--shiki-sepia:#66D9EF;--shiki-sepia-font-style:italic}html pre.shiki code .sMOD_, html code.shiki .sMOD_{--shiki-default:#24292E;--shiki-dark:#E1E4E8;--shiki-sepia:#F8F8F2}html pre.shiki code .sC2Qs, html code.shiki .sC2Qs{--shiki-default:#D73A49;--shiki-dark:#F97583;--shiki-sepia:#F92672}html pre.shiki code .srTi1, html code.shiki .srTi1{--shiki-default:#6F42C1;--shiki-dark:#B392F0;--shiki-sepia:#A6E22E}html pre.shiki code .s7F3e, html code.shiki .s7F3e{--shiki-default:#005CC5;--shiki-dark:#79B8FF;--shiki-sepia:#AE81FF}html pre.shiki code .sstjo, html code.shiki .sstjo{--shiki-default:#032F62;--shiki-dark:#9ECBFF;--shiki-sepia:#E6DB74}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}html.sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}html pre.shiki code .sz2Vg, html code.shiki .sz2Vg{--shiki-default:#6F42C1;--shiki-default-text-decoration:inherit;--shiki-dark:#B392F0;--shiki-dark-text-decoration:inherit;--shiki-sepia:#A6E22E;--shiki-sepia-text-decoration:underline}html pre.shiki code .sq6CD, html code.shiki .sq6CD{--shiki-default:#D73A49;--shiki-default-font-style:inherit;--shiki-dark:#F97583;--shiki-dark-font-style:inherit;--shiki-sepia:#66D9EF;--shiki-sepia-font-style:italic}html pre.shiki code .sP7S_, html code.shiki .sP7S_{--shiki-default:#005CC5;--shiki-dark:#79B8FF;--shiki-sepia:#FD971F}html pre.shiki code .sTHNf, html code.shiki .sTHNf{--shiki-default:#E36209;--shiki-default-font-style:inherit;--shiki-dark:#FFAB70;--shiki-dark-font-style:inherit;--shiki-sepia:#FD971F;--shiki-sepia-font-style:italic}html pre.shiki code .s8-w5, html code.shiki .s8-w5{--shiki-default:#6A737D;--shiki-dark:#6A737D;--shiki-sepia:#88846F}html pre.shiki code .st05x, html code.shiki .st05x{--shiki-default:#B31D28;--shiki-default-font-style:italic;--shiki-dark:#FDAEB7;--shiki-dark-font-style:italic;--shiki-sepia:#F44747;--shiki-sepia-font-style:inherit}html pre.shiki code .s-ngx, html code.shiki .s-ngx{--shiki-default:#24292E;--shiki-dark:#E1E4E8;--shiki-sepia:#F92672}",{"title":68,"searchDepth":100,"depth":100,"links":2494},[2495,2496,2497,2498,2499,2500,2501,2503,2504,2505,2506,2507,2508],{"id":426,"depth":100,"text":427},{"id":912,"depth":100,"text":913},{"id":987,"depth":100,"text":988},{"id":1108,"depth":100,"text":427},{"id":1379,"depth":100,"text":1380},{"id":1493,"depth":100,"text":1494},{"id":1747,"depth":100,"text":2502},"Compliant Solution ( java.beans Package)",{"id":1913,"depth":100,"text":1914},{"id":2163,"depth":100,"text":2164},{"id":2231,"depth":100,"text":2232},{"id":2401,"depth":100,"text":2402},{"id":2429,"depth":100,"text":2430},{"id":2436,"depth":100,"text":2437},"Reflection enables a Java program to analyze and modify itself. In particular, a program can discover the values of field variables and change them [ Forman 2005 ], [ Sun 2002 ]. The Java reflection API includes a method that enables fields that are normally inaccessible to be accessed under reflection. The following code prints out the names and values of all fields of an object someObject of class SomeClass :","md",{"tags":2512},[2513,2514,2515,2516],"android-implementation-detail-java","sec","android","rule","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec05-j",{"title":30,"description":2509},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F07.sec05-j","POMSxLrPte757J9K4ym16HE4nnSfVlgCfk7ZWIMpgVc",[2522,2525],{"title":2523,"path":2472,"stem":2524,"children":-1},"SEC04-J. Protect sensitive operations with security manager checks","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F06.sec04-j",{"title":2526,"path":2485,"stem":2527,"children":-1},"SEC06-J. Do not rely on the default automatic signature verification provided by URLClassLoader and java.util.jar","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F08.sec06-j",[2529],{"title":2530,"path":2531,"stem":2532,"children":2533},"SEI CERT Oracle Coding Standard for Java","\u002Fsei-cert-oracle-coding-standard-for-java","6.sei-cert-oracle-coding-standard-for-java\u002F1.index",[2534,2535,2675,3500,3899,4067],{"title":2530,"path":2531,"stem":2532},{"title":2536,"path":2537,"stem":2538,"children":2539},"Front Matter","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F1.index",[2540,2541,2545,2549,2553,2599,2637],{"title":2536,"path":2537,"stem":2538},{"title":2542,"path":2543,"stem":2544},"Rules versus Recommendations (Java)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frules-versus-recommendations-java","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F2.rules-versus-recommendations-java",{"title":2546,"path":2547,"stem":2548},"Acknowledgments","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Facknowledgments","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F3.acknowledgments",{"title":2550,"path":2551,"stem":2552},"Deprecations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Fdeprecations","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.deprecations",{"title":2554,"path":2555,"stem":2556,"children":2557},"Rec. Preface","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F01.index",[2558,2559,2563,2567,2571,2575,2579,2583,2587,2591,2595],{"title":2554,"path":2555,"stem":2556},{"title":2560,"path":2561,"stem":2562},"Scope","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fscope","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F02.scope",{"title":2564,"path":2565,"stem":2566},"Audience","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Faudience","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F03.audience",{"title":2568,"path":2569,"stem":2570},"Contents and Organization","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fcontents-and-organization","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F05.contents-and-organization",{"title":2572,"path":2573,"stem":2574},"Guidelines","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fguidelines","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F06.guidelines",{"title":2576,"path":2577,"stem":2578},"Usage","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fusage","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F07.usage",{"title":2580,"path":2581,"stem":2582},"System Qualities","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fsystem-qualities","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F08.system-qualities",{"title":2584,"path":2585,"stem":2586},"Priority and Levels","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fpriority-and-levels","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F09.priority-and-levels",{"title":2588,"path":2589,"stem":2590},"Automatically Generated Code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fautomatically-generated-code","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F10.automatically-generated-code",{"title":2592,"path":2593,"stem":2594},"Source Code Validation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fsource-code-validation","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F11.source-code-validation",{"title":2596,"path":2597,"stem":2598},"Tool Selection and Validation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Ftool-selection-and-validation","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F12.tool-selection-and-validation",{"title":2600,"path":2601,"stem":2602,"children":2603},"Rule. Introduction","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F01.index",[2604,2605,2609,2613,2617,2621,2625,2629,2633],{"title":2600,"path":2601,"stem":2602},{"title":2606,"path":2607,"stem":2608},"Input Validation and Data Sanitization","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Finput-validation-and-data-sanitization","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F02.input-validation-and-data-sanitization",{"title":2610,"path":2611,"stem":2612},"Leaking Sensitive Data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Fleaking-sensitive-data","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F03.leaking-sensitive-data",{"title":2614,"path":2615,"stem":2616},"Type Safety","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Ftype-safety","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F04.type-safety",{"title":2618,"path":2619,"stem":2620},"Leaking Capabilities","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Fleaking-capabilities","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F05.leaking-capabilities",{"title":2622,"path":2623,"stem":2624},"Denial of Service","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Fdenial-of-service","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F06.denial-of-service",{"title":2626,"path":2627,"stem":2628},"Libraries","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Flibraries","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F07.libraries",{"title":2630,"path":2631,"stem":2632},"Concurrency, Visibility, and Memory","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Fconcurrency-visibility-and-memory","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F08.concurrency-visibility-and-memory",{"title":2634,"path":2635,"stem":2636},"Privilege Escalation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Fprivilege-escalation","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F09.privilege-escalation",{"title":2638,"path":2639,"stem":2640,"children":2641},"Rule. Preface","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F01.index",[2642,2643,2646,2649,2652,2656,2659,2662,2665,2668,2672],{"title":2638,"path":2639,"stem":2640},{"title":2560,"path":2644,"stem":2645},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fscope","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F02.scope",{"title":2564,"path":2647,"stem":2648},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Faudience","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F03.audience",{"title":2568,"path":2650,"stem":2651},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fcontents-and-organization","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F04.contents-and-organization",{"title":2653,"path":2654,"stem":2655},"Identifiers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fidentifiers","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F05.identifiers",{"title":2576,"path":2657,"stem":2658},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fusage","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F06.usage",{"title":2580,"path":2660,"stem":2661},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fsystem-qualities","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F07.system-qualities",{"title":2584,"path":2663,"stem":2664},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fpriority-and-levels","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F08.priority-and-levels",{"title":2588,"path":2666,"stem":2667},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fautomatically-generated-code","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F09.automatically-generated-code",{"title":2669,"path":2670,"stem":2671},"Conformance Testing","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fconformance-testing","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F10.conformance-testing",{"title":2596,"path":2673,"stem":2674},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Ftool-selection-and-validation","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F11.tool-selection-and-validation",{"title":2676,"path":2677,"stem":2678,"children":2679},"Rules","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F01.index",[2680,2681,2685,2711,2729,2773,2811,2885,2939,2965,3019,3079,3133,3191,3253,3294,3334,3392,3422,3448,3470],{"title":2676,"path":2677,"stem":2678},{"title":2682,"path":2683,"stem":2684},"Android (DRD)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fandroid-drd","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F02.android-drd",{"title":2686,"path":2687,"stem":2688,"children":2689},"Characters and Strings (STR)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F1.index",[2690,2691,2695,2699,2703,2707],{"title":2686,"path":2687,"stem":2688},{"title":2692,"path":2693,"stem":2694},"STR00-J. Don't form strings containing partial characters from variable-width encodings","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str\u002Fstr00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F2.str00-j",{"title":2696,"path":2697,"stem":2698},"STR01-J. Do not assume that a Java char fully represents a Unicode code point","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str\u002Fstr01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F3.str01-j",{"title":2700,"path":2701,"stem":2702},"STR02-J. Specify an appropriate locale when comparing locale-dependent data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str\u002Fstr02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F4.str02-j",{"title":2704,"path":2705,"stem":2706},"STR03-J. Do not encode noncharacter data as a string","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str\u002Fstr03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F5.str03-j",{"title":2708,"path":2709,"stem":2710},"STR04-J. Use compatible character encodings when communicating string data between JVMs","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str\u002Fstr04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F6.str04-j",{"title":2712,"path":2713,"stem":2714,"children":2715},"Declarations and Initialization (DCL)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fdeclarations-and-initialization-dcl","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F04.declarations-and-initialization-dcl\u002F1.index",[2716,2717,2721,2725],{"title":2712,"path":2713,"stem":2714},{"title":2718,"path":2719,"stem":2720},"DCL00-J. Prevent class initialization cycles","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F04.declarations-and-initialization-dcl\u002F2.dcl00-j",{"title":2722,"path":2723,"stem":2724},"DCL01-J. Do not reuse public identifiers from the Java Standard Library","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F04.declarations-and-initialization-dcl\u002F3.dcl01-j",{"title":2726,"path":2727,"stem":2728},"DCL02-J. Do not modify the collection's elements during an enhanced for statement","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F04.declarations-and-initialization-dcl\u002F4.dcl02-j",{"title":2730,"path":2731,"stem":2732,"children":2733},"Exceptional Behavior (ERR)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F01.index",[2734,2735,2739,2741,2745,2749,2753,2757,2761,2765,2769],{"title":2730,"path":2731,"stem":2732},{"title":2736,"path":2737,"stem":2738},"ERR00-J. Do not suppress or ignore checked exceptions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F02.err00-j",{"title":465,"path":464,"stem":2740},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F03.err01-j",{"title":2742,"path":2743,"stem":2744},"ERR02-J. Prevent exceptions while logging data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F04.err02-j",{"title":2746,"path":2747,"stem":2748},"ERR03-J. Restore prior object state on method failure","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F05.err03-j",{"title":2750,"path":2751,"stem":2752},"ERR04-J. Do not complete abruptly from a finally block","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F06.err04-j",{"title":2754,"path":2755,"stem":2756},"ERR05-J. Do not let checked exceptions escape from a finally block","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F07.err05-j",{"title":2758,"path":2759,"stem":2760},"ERR06-J. Do not throw undeclared checked exceptions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F08.err06-j",{"title":2762,"path":2763,"stem":2764},"ERR07-J. Do not throw RuntimeException, Exception, or Throwable","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F09.err07-j",{"title":2766,"path":2767,"stem":2768},"ERR08-J. Do not catch NullPointerException or any of its ancestors","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F10.err08-j",{"title":2770,"path":2771,"stem":2772},"ERR09-J. Do not allow untrusted code to terminate the JVM","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F11.err09-j",{"title":2774,"path":2775,"stem":2776,"children":2777},"Expressions (EXP)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F1.index",[2778,2779,2783,2787,2791,2795,2799,2803,2807],{"title":2774,"path":2775,"stem":2776},{"title":2780,"path":2781,"stem":2782},"EXP00-J. Do not ignore values returned by methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F2.exp00-j",{"title":2784,"path":2785,"stem":2786},"EXP01-J. Do not use a null in a case where an object is required","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F3.exp01-j",{"title":2788,"path":2789,"stem":2790},"EXP02-J. Do not use the Object.equals() method to compare two arrays","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F4.exp02-j",{"title":2792,"path":2793,"stem":2794},"EXP03-J. Do not use the equality operators when comparing values of boxed primitives","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F5.exp03-j",{"title":2796,"path":2797,"stem":2798},"EXP04-J. Do not pass arguments to certain Java Collections Framework methods that are a different type than the collection parameter type","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F6.exp04-j",{"title":2800,"path":2801,"stem":2802},"EXP05-J. Do not follow a write by a subsequent write or read of the same object within an expression","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F7.exp05-j",{"title":2804,"path":2805,"stem":2806},"EXP06-J. Expressions used in assertions must not produce side effects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F8.exp06-j",{"title":2808,"path":2809,"stem":2810},"EXP07-J. Prevent loss of useful data due to weak references","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F9.exp07-j",{"title":2812,"path":2813,"stem":2814,"children":2815},"Input Output (FIO)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F01.index",[2816,2817,2821,2825,2829,2833,2837,2841,2845,2849,2853,2857,2861,2865,2869,2873,2877,2881],{"title":2812,"path":2813,"stem":2814},{"title":2818,"path":2819,"stem":2820},"FIO00-J. Do not operate on files in shared directories","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F02.fio00-j",{"title":2822,"path":2823,"stem":2824},"FIO01-J. Create files with appropriate access permissions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F03.fio01-j",{"title":2826,"path":2827,"stem":2828},"FIO02-J. Detect and handle file-related errors","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F04.fio02-j",{"title":2830,"path":2831,"stem":2832},"FIO03-J. Remove temporary files before termination","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F05.fio03-j",{"title":2834,"path":2835,"stem":2836},"FIO04-J. Release resources when they are no longer needed","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F06.fio04-j",{"title":2838,"path":2839,"stem":2840},"FIO05-J. Do not expose buffers or their backing arrays methods to untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F07.fio05-j",{"title":2842,"path":2843,"stem":2844},"FIO06-J. Do not create multiple buffered wrappers on a single byte or character stream","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F08.fio06-j",{"title":2846,"path":2847,"stem":2848},"FIO07-J. Do not let external processes block on IO buffers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F09.fio07-j",{"title":2850,"path":2851,"stem":2852},"FIO08-J. Distinguish between characters or bytes read from a stream and -1","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F10.fio08-j",{"title":2854,"path":2855,"stem":2856},"FIO09-J. Do not rely on the write() method to output integers outside the range 0 to 255","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F11.fio09-j",{"title":2858,"path":2859,"stem":2860},"FIO10-J. Ensure the array is filled when using read() to fill an array","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F12.fio10-j",{"title":2862,"path":2863,"stem":2864},"FIO11-J. Do not convert between strings and bytes without specifying a valid character encoding","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F13.fio11-j",{"title":2866,"path":2867,"stem":2868},"FIO12-J. Provide methods to read and write little-endian data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio12-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F14.fio12-j",{"title":2870,"path":2871,"stem":2872},"FIO13-J. Do not log sensitive information outside a trust boundary","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio13-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F15.fio13-j",{"title":2874,"path":2875,"stem":2876},"FIO14-J. Perform proper cleanup at program termination","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio14-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F16.fio14-j",{"title":2878,"path":2879,"stem":2880},"FIO15-J. Do not reset a servlet's output stream after committing it","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio15-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F17.fio15-j",{"title":2882,"path":2883,"stem":2884},"FIO16-J. Canonicalize path names before validating them","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio16-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F18.fio16-j",{"title":2886,"path":2887,"stem":2888,"children":2889},"Input Validation and Data Sanitization (IDS)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F01.index",[2890,2891,2895,2899,2903,2907,2911,2915,2919,2923,2927,2931,2935],{"title":2886,"path":2887,"stem":2888},{"title":2892,"path":2893,"stem":2894},"IDS00-J. Prevent SQL injection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F02.ids00-j",{"title":2896,"path":2897,"stem":2898},"IDS01-J. Normalize strings before validating them","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F03.ids01-j",{"title":2900,"path":2901,"stem":2902},"IDS03-J. Do not log unsanitized user input","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F04.ids03-j",{"title":2904,"path":2905,"stem":2906},"IDS04-J. Safely extract files from ZipInputStream","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F05.ids04-j",{"title":2908,"path":2909,"stem":2910},"IDS06-J. Exclude unsanitized user input from format strings","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F06.ids06-j",{"title":2912,"path":2913,"stem":2914},"IDS07-J. Sanitize untrusted data passed to the Runtime.exec() method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F07.ids07-j",{"title":2916,"path":2917,"stem":2918},"IDS08-J. Sanitize untrusted data included in a regular expression","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F08.ids08-j",{"title":2920,"path":2921,"stem":2922},"IDS11-J. Perform any string modifications before validation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F09.ids11-j",{"title":2924,"path":2925,"stem":2926},"IDS14-J. Do not trust the contents of hidden form fields","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids14-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F10.ids14-j",{"title":2928,"path":2929,"stem":2930},"IDS15-J. Do not allow sensitive information to leak outside a trust boundary","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids15-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F11.ids15-j",{"title":2932,"path":2933,"stem":2934},"IDS16-J. Prevent XML Injection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids16-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F12.ids16-j",{"title":2936,"path":2937,"stem":2938},"IDS17-J. Prevent XML External Entity Attacks","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids17-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F13.ids17-j",{"title":2940,"path":2941,"stem":2942,"children":2943},"Java Native Interface (JNI)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F1.index",[2944,2945,2949,2953,2957,2961],{"title":2940,"path":2941,"stem":2942},{"title":2946,"path":2947,"stem":2948},"JNI00-J. Define wrappers around native methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni\u002Fjni00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F2.jni00-j",{"title":2950,"path":2951,"stem":2952},"JNI01-J. Safely invoke standard APIs that perform tasks using the immediate caller's class loader instance (loadLibrary)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni\u002Fjni01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F3.jni01-j",{"title":2954,"path":2955,"stem":2956},"JNI02-J. Do not assume object references are constant or unique","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni\u002Fjni02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F4.jni02-j",{"title":2958,"path":2959,"stem":2960},"JNI03-J. Do not use direct pointers to Java objects in JNI code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni\u002Fjni03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F5.jni03-j",{"title":2962,"path":2963,"stem":2964},"JNI04-J. Do not assume that Java strings are null-terminated","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni\u002Fjni04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F6.jni04-j",{"title":2966,"path":2967,"stem":2968,"children":2969},"Locking (LCK)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F01.index",[2970,2971,2975,2979,2983,2987,2991,2995,2999,3003,3007,3011,3015],{"title":2966,"path":2967,"stem":2968},{"title":2972,"path":2973,"stem":2974},"LCK00-J. Use private final lock objects to synchronize classes that may interact with untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F02.lck00-j",{"title":2976,"path":2977,"stem":2978},"LCK01-J. Do not synchronize on objects that may be reused","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F03.lck01-j",{"title":2980,"path":2981,"stem":2982},"LCK02-J. Do not synchronize on the class object returned by getClass()","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F04.lck02-j",{"title":2984,"path":2985,"stem":2986},"LCK03-J. Do not synchronize on the intrinsic locks of high-level concurrency objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F05.lck03-j",{"title":2988,"path":2989,"stem":2990},"LCK04-J. Do not synchronize on a collection view if the backing collection is accessible","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F06.lck04-j",{"title":2992,"path":2993,"stem":2994},"LCK05-J. Synchronize access to static fields that can be modified by untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F07.lck05-j",{"title":2996,"path":2997,"stem":2998},"LCK06-J. Do not use an instance lock to protect shared static data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F08.lck06-j",{"title":3000,"path":3001,"stem":3002},"LCK07-J. Avoid deadlock by requesting and releasing locks in the same order","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F09.lck07-j",{"title":3004,"path":3005,"stem":3006},"LCK08-J. Ensure actively held locks are released on exceptional conditions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F10.lck08-j",{"title":3008,"path":3009,"stem":3010},"LCK09-J. Do not perform operations that can block while holding a lock","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F11.lck09-j",{"title":3012,"path":3013,"stem":3014},"LCK10-J. Use a correct form of the double-checked locking idiom","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F12.lck10-j",{"title":3016,"path":3017,"stem":3018},"LCK11-J. Avoid client-side locking when using classes that do not commit to their locking strategy","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F13.lck11-j",{"title":3020,"path":3021,"stem":3022,"children":3023},"Methods (MET)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F01.index",[3024,3025,3029,3033,3037,3041,3043,3047,3051,3055,3059,3063,3067,3071,3075],{"title":3020,"path":3021,"stem":3022},{"title":3026,"path":3027,"stem":3028},"MET00-J. Validate method arguments","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F02.met00-j",{"title":3030,"path":3031,"stem":3032},"MET01-J. Never use assertions to validate method arguments","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F03.met01-j",{"title":3034,"path":3035,"stem":3036},"MET02-J. Do not use deprecated or obsolete classes or methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F04.met02-j",{"title":3038,"path":3039,"stem":3040},"MET03-J. Methods that perform a security check must be declared private or final","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F05.met03-j",{"title":421,"path":420,"stem":3042},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F06.met04-j",{"title":3044,"path":3045,"stem":3046},"MET05-J. Ensure that constructors do not call overridable methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F07.met05-j",{"title":3048,"path":3049,"stem":3050},"MET06-J. Do not invoke overridable methods in clone()","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F08.met06-j",{"title":3052,"path":3053,"stem":3054},"MET07-J. Never declare a class method that hides a method declared in a superclass or superinterface","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F09.met07-j",{"title":3056,"path":3057,"stem":3058},"MET08-J. Preserve the equality contract when overriding the equals() method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F10.met08-j",{"title":3060,"path":3061,"stem":3062},"MET09-J. Classes that define an equals() method must also define a hashCode() method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F11.met09-j",{"title":3064,"path":3065,"stem":3066},"MET10-J. Follow the general contract when implementing the compareTo() method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F12.met10-j",{"title":3068,"path":3069,"stem":3070},"MET11-J. Ensure that keys used in comparison operations are immutable","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F13.met11-j",{"title":3072,"path":3073,"stem":3074},"MET12-J. Do not use finalizers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet12-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F14.met12-j",{"title":3076,"path":3077,"stem":3078},"MET13-J. Do not assume that reassigning method arguments modifies the calling environment","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet13-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F15.met13-j",{"title":3080,"path":3081,"stem":3082,"children":3083},"Miscellaneous (MSC)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F01.index",[3084,3085,3089,3093,3097,3101,3105,3109,3113,3117,3121,3125,3129],{"title":3080,"path":3081,"stem":3082},{"title":3086,"path":3087,"stem":3088},"MSC00-J. Use SSLSocket rather than Socket for secure data exchange","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F02.msc00-j",{"title":3090,"path":3091,"stem":3092},"MSC01-J. Do not use an empty infinite loop","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F03.msc01-j",{"title":3094,"path":3095,"stem":3096},"MSC02-J. Generate strong random numbers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F04.msc02-j",{"title":3098,"path":3099,"stem":3100},"MSC03-J. Never hard code sensitive information","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F05.msc03-j",{"title":3102,"path":3103,"stem":3104},"MSC04-J. Do not leak memory","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F06.msc04-j",{"title":3106,"path":3107,"stem":3108},"MSC05-J. Do not exhaust heap space","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F07.msc05-j",{"title":3110,"path":3111,"stem":3112},"MSC06-J. Do not modify the underlying collection when an iteration is in progress","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F08.msc06-j",{"title":3114,"path":3115,"stem":3116},"MSC07-J. Prevent multiple instantiations of singleton objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F09.msc07-j",{"title":3118,"path":3119,"stem":3120},"MSC08-J. Do not store nonserializable objects as attributes in an HTTP session","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F10.msc08-j",{"title":3122,"path":3123,"stem":3124},"MSC09-J. For OAuth, ensure (a) [relying party receiving user's ID in last step] is same as (b) [relying party the access token was granted to].","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F11.msc09-j",{"title":3126,"path":3127,"stem":3128},"MSC10-J. Do not use OAuth 2.0 implicit grant (unmodified) for authentication","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F12.msc10-j",{"title":3130,"path":3131,"stem":3132},"MSC11-J. Do not let session information leak within a servlet","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F13.msc11-j",{"title":3134,"path":3135,"stem":3136,"children":3137},"Numeric Types and Operations (NUM)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F01.index",[3138,3139,3143,3147,3151,3155,3159,3163,3167,3171,3175,3179,3183,3187],{"title":3134,"path":3135,"stem":3136},{"title":3140,"path":3141,"stem":3142},"NUM00-J. Detect or prevent integer overflow","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F02.num00-j",{"title":3144,"path":3145,"stem":3146},"NUM01-J. Do not perform bitwise and arithmetic operations on the same data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F03.num01-j",{"title":3148,"path":3149,"stem":3150},"NUM02-J. Ensure that division and remainder operations do not result in divide-by-zero errors","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F04.num02-j",{"title":3152,"path":3153,"stem":3154},"NUM03-J. Use integer types that can fully represent the possible range of unsigned data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F05.num03-j",{"title":3156,"path":3157,"stem":3158},"NUM04-J. Do not use floating-point numbers if precise computation is required","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F06.num04-j",{"title":3160,"path":3161,"stem":3162},"NUM07-J. Do not attempt comparisons with NaN","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F07.num07-j",{"title":3164,"path":3165,"stem":3166},"NUM08-J. Check floating-point inputs for exceptional values","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F08.num08-j",{"title":3168,"path":3169,"stem":3170},"NUM09-J. Do not use floating-point variables as loop counters","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F09.num09-j",{"title":3172,"path":3173,"stem":3174},"NUM10-J. Do not construct BigDecimal objects from floating-point literals","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F10.num10-j",{"title":3176,"path":3177,"stem":3178},"NUM11-J. Do not compare or inspect the string representation of floating-point values","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F11.num11-j",{"title":3180,"path":3181,"stem":3182},"NUM12-J. Ensure conversions of numeric types to narrower types do not result in lost or misinterpreted data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum12-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F12.num12-j",{"title":3184,"path":3185,"stem":3186},"NUM13-J. Avoid loss of precision when converting primitive integers to floating-point","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum13-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F13.num13-j",{"title":3188,"path":3189,"stem":3190},"NUM14-J. Use shift operators correctly","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum14-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F14.num14-j",{"title":3192,"path":3193,"stem":3194,"children":3195},"Object Orientation (OBJ)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F01.index",[3196,3197,3201,3205,3209,3213,3217,3221,3225,3229,3233,3237,3241,3245,3249],{"title":3192,"path":3193,"stem":3194},{"title":3198,"path":3199,"stem":3200},"OBJ01-J. Limit accessibility of fields","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F02.obj01-j",{"title":3202,"path":3203,"stem":3204},"OBJ02-J. Preserve dependencies in subclasses when changing superclasses","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F03.obj02-j",{"title":3206,"path":3207,"stem":3208},"OBJ03-J. Prevent heap pollution","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F04.obj03-j",{"title":3210,"path":3211,"stem":3212},"OBJ04-J. Provide mutable classes with copy functionality to safely allow passing instances to untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F05.obj04-j",{"title":3214,"path":3215,"stem":3216},"OBJ05-J. Do not return references to private mutable class members","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F06.obj05-j",{"title":3218,"path":3219,"stem":3220},"OBJ06-J. Defensively copy mutable inputs and mutable internal components","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F07.obj06-j",{"title":3222,"path":3223,"stem":3224},"OBJ07-J. Sensitive classes must not let themselves be copied","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F08.obj07-j",{"title":3226,"path":3227,"stem":3228},"OBJ08-J. Do not expose private members of an outer class from within a nested class","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F09.obj08-j",{"title":3230,"path":3231,"stem":3232},"OBJ09-J. Compare classes and not class names","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F10.obj09-j",{"title":3234,"path":3235,"stem":3236},"OBJ10-J. Do not use public static nonfinal fields","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F11.obj10-j",{"title":3238,"path":3239,"stem":3240},"OBJ11-J. Be wary of letting constructors throw exceptions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F12.obj11-j",{"title":3242,"path":3243,"stem":3244},"OBJ12-J. Respect object-based annotations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj12-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F13.obj12-j",{"title":3246,"path":3247,"stem":3248},"OBJ13-J. Ensure that references to mutable objects are not exposed","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj13-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F14.obj13-j",{"title":3250,"path":3251,"stem":3252},"OBJ14-J. Do not use an object that has been freed.","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj14-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F15.obj14-j",{"title":3254,"path":3255,"stem":3256,"children":3257},"Platform Security (SEC)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F01.index",[3258,3259,3263,3267,3271,3275,3276,3277,3278,3282,3286,3290],{"title":3254,"path":3255,"stem":3256},{"title":3260,"path":3261,"stem":3262},"SEC00-J. Do not allow privileged blocks to leak sensitive information across a trust boundary","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F02.sec00-j",{"title":3264,"path":3265,"stem":3266},"SEC01-J. Do not allow tainted variables in privileged blocks","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F03.sec01-j",{"title":3268,"path":3269,"stem":3270},"SEC02-J. Do not base security checks on untrusted sources","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F04.sec02-j",{"title":3272,"path":3273,"stem":3274},"SEC03-J. Do not load trusted classes after allowing untrusted code to load arbitrary classes","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F05.sec03-j",{"title":2523,"path":2472,"stem":2524},{"title":30,"path":2517,"stem":2519},{"title":2526,"path":2485,"stem":2527},{"title":3279,"path":3280,"stem":3281},"SEC07-J. Call the superclass's getPermissions() method when writing a custom class loader","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F09.sec07-j",{"title":3283,"path":3284,"stem":3285},"SEC08-J Trusted code must discard or clean any arguments provided by untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F10.sec08-j",{"title":3287,"path":3288,"stem":3289},"SEC09-J Never leak the results of certain standard API methods from trusted code to untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F11.sec09-j",{"title":3291,"path":3292,"stem":3293},"SEC10-J Never permit untrusted code to invoke any API that may (possibly transitively) invoke the reflection APIs","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F12.sec10-j",{"title":3295,"path":3296,"stem":3297,"children":3298},"Runtime Environment (ENV)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F1.index",[3299,3300,3304,3308,3312,3322,3326,3330],{"title":3295,"path":3296,"stem":3297},{"title":3301,"path":3302,"stem":3303},"ENV00-J. Do not sign code that performs only unprivileged operations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F2.env00-j",{"title":3305,"path":3306,"stem":3307},"ENV01-J. Place all security-sensitive code in a single JAR and sign and seal it","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F3.env01-j",{"title":3309,"path":3310,"stem":3311},"ENV02-J. Do not trust the values of environment variables","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F4.env02-j",{"title":3313,"path":3314,"stem":3315,"children":3316},"ENV03-J. Do not grant dangerous combinations of permissions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F5.env03-j\u002F1.index",[3317,3318],{"title":3313,"path":3314,"stem":3315},{"title":3319,"path":3320,"stem":3321},"DUMMY ENV03-J","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv03-j\u002Fdummy-env03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F5.env03-j\u002F2.dummy-env03-j",{"title":3323,"path":3324,"stem":3325},"ENV04-J. Do not disable bytecode verification","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F6.env04-j",{"title":3327,"path":3328,"stem":3329},"ENV05-J. Do not deploy an application that can be remotely monitored","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F7.env05-j",{"title":3331,"path":3332,"stem":3333},"ENV06-J. Production code must not contain debugging entry points","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F8.env06-j",{"title":3335,"path":3336,"stem":3337,"children":3338},"Serialization (SER)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F01.index",[3339,3340,3344,3348,3352,3356,3360,3364,3368,3372,3376,3380,3384,3388],{"title":3335,"path":3336,"stem":3337},{"title":3341,"path":3342,"stem":3343},"SER00-J. Enable serialization compatibility during class evolution","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F02.ser00-j",{"title":3345,"path":3346,"stem":3347},"SER01-J. Do not deviate from the proper signatures of serialization methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F03.ser01-j",{"title":3349,"path":3350,"stem":3351},"SER02-J. Sign then seal objects before sending them outside a trust boundary","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F04.ser02-j",{"title":3353,"path":3354,"stem":3355},"SER03-J. Do not serialize unencrypted sensitive data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F05.ser03-j",{"title":3357,"path":3358,"stem":3359},"SER04-J. Do not allow serialization and deserialization to bypass the security manager","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F06.ser04-j",{"title":3361,"path":3362,"stem":3363},"SER05-J. Do not serialize instances of inner classes","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F07.ser05-j",{"title":3365,"path":3366,"stem":3367},"SER06-J. Make defensive copies of private mutable components during deserialization","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F08.ser06-j",{"title":3369,"path":3370,"stem":3371},"SER07-J. Do not use the default serialized form for classes with implementation-defined invariants","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F09.ser07-j",{"title":3373,"path":3374,"stem":3375},"SER08-J. Minimize privileges before deserializing from a privileged context","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F10.ser08-j",{"title":3377,"path":3378,"stem":3379},"SER09-J. Do not invoke overridable methods from the readObject() method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F11.ser09-j",{"title":3381,"path":3382,"stem":3383},"SER10-J. Avoid memory and resource leaks during serialization","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F12.ser10-j",{"title":3385,"path":3386,"stem":3387},"SER11-J. Prevent overwriting of externalizable objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F13.ser11-j",{"title":3389,"path":3390,"stem":3391},"SER12-J. Prevent deserialization of untrusted data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser12-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F14.ser12-j",{"title":3393,"path":3394,"stem":3395,"children":3396},"Thread APIs (THI)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F1.index",[3397,3398,3402,3406,3410,3414,3418],{"title":3393,"path":3394,"stem":3395},{"title":3399,"path":3400,"stem":3401},"THI00-J. Do not invoke Thread.run()","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F2.thi00-j",{"title":3403,"path":3404,"stem":3405},"THI01-J. Do not invoke ThreadGroup methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F3.thi01-j",{"title":3407,"path":3408,"stem":3409},"THI02-J. Notify all waiting threads rather than a single thread","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F4.thi02-j",{"title":3411,"path":3412,"stem":3413},"THI03-J. Always invoke wait() and await() methods inside a loop","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F5.thi03-j",{"title":3415,"path":3416,"stem":3417},"THI04-J. Ensure that threads performing blocking operations can be terminated","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F6.thi04-j",{"title":3419,"path":3420,"stem":3421},"THI05-J. Do not use Thread.stop() to terminate threads","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F7.thi05-j",{"title":3423,"path":3424,"stem":3425,"children":3426},"Thread Pools (TPS)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F1.index",[3427,3428,3432,3436,3440,3444],{"title":3423,"path":3424,"stem":3425},{"title":3429,"path":3430,"stem":3431},"TPS00-J. Use thread pools to enable graceful degradation of service during traffic bursts","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F2.tps00-j",{"title":3433,"path":3434,"stem":3435},"TPS01-J. Do not execute interdependent tasks in a bounded thread pool","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F3.tps01-j",{"title":3437,"path":3438,"stem":3439},"TPS02-J. Ensure that tasks submitted to a thread pool are interruptible","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F4.tps02-j",{"title":3441,"path":3442,"stem":3443},"TPS03-J. Ensure that tasks executing in a thread pool do not fail silently","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F5.tps03-j",{"title":3445,"path":3446,"stem":3447},"TPS04-J. Ensure ThreadLocal variables are reinitialized when using thread pools","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F6.tps04-j",{"title":3449,"path":3450,"stem":3451,"children":3452},"Thread-Safety Miscellaneous (TSM)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F1.index",[3453,3454,3458,3462,3466],{"title":3449,"path":3450,"stem":3451},{"title":3455,"path":3456,"stem":3457},"TSM00-J. Do not override thread-safe methods with methods that are not thread-safe","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F2.tsm00-j",{"title":3459,"path":3460,"stem":3461},"TSM01-J. Do not let the this reference escape during object construction","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F3.tsm01-j",{"title":3463,"path":3464,"stem":3465},"TSM02-J. Do not use background threads during class initialization","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F4.tsm02-j",{"title":3467,"path":3468,"stem":3469},"TSM03-J. Do not publish partially initialized objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F5.tsm03-j",{"title":3471,"path":3472,"stem":3473,"children":3474},"Visibility and Atomicity (VNA)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F1.index",[3475,3476,3480,3484,3488,3492,3496],{"title":3471,"path":3472,"stem":3473},{"title":3477,"path":3478,"stem":3479},"VNA00-J. Ensure visibility when accessing shared primitive variables","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F2.vna00-j",{"title":3481,"path":3482,"stem":3483},"VNA01-J. Ensure visibility of shared references to immutable objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F3.vna01-j",{"title":3485,"path":3486,"stem":3487},"VNA02-J. Ensure that compound operations on shared variables are atomic","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F4.vna02-j",{"title":3489,"path":3490,"stem":3491},"VNA03-J. Do not assume that a group of calls to independently atomic methods is atomic","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F5.vna03-j",{"title":3493,"path":3494,"stem":3495},"VNA04-J. Ensure that calls to chained methods are atomic","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F6.vna04-j",{"title":3497,"path":3498,"stem":3499},"VNA05-J. Ensure atomicity when reading and writing 64-bit values","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F7.vna05-j",{"title":3501,"path":3502,"stem":3503,"children":3504},"Recommendations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F01.index",[3505,3506,3519,3537,3590,3615,3644,3665,3698,3731,3792,3817,3858],{"title":3501,"path":3502,"stem":3503},{"title":2686,"path":3507,"stem":3508,"children":3509},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fcharacters-and-strings-str","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F02.characters-and-strings-str\u002F1.index",[3510,3511,3515],{"title":2686,"path":3507,"stem":3508},{"title":3512,"path":3513,"stem":3514},"STR50-J. Use the appropriate method for counting characters in a string","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F02.characters-and-strings-str\u002F2.str50-j",{"title":3516,"path":3517,"stem":3518},"STR51-J. Use the charset encoder and decoder classes when more control over the encoding process is required","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F02.characters-and-strings-str\u002F3.str51-j",{"title":3520,"path":3521,"stem":3522,"children":3523},"Concurrency (CON)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F1.index",[3524,3525,3529,3533],{"title":3520,"path":3521,"stem":3522},{"title":3526,"path":3527,"stem":3528},"CON50-J. Do not assume that declaring a reference volatile guarantees safe publication of the members of the referenced object","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F2.con50-j",{"title":3530,"path":3531,"stem":3532},"CON51-J. Do not assume that the sleep(), yield(), or getState() methods provide synchronization semantics","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F3.con51-j",{"title":3534,"path":3535,"stem":3536},"CON52-J. Document thread-safety and use annotations where applicable","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F4.con52-j",{"title":2712,"path":3538,"stem":3539,"children":3540},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F01.index",[3541,3542,3546,3550,3554,3558,3562,3566,3570,3574,3578,3582,3586],{"title":2712,"path":3538,"stem":3539},{"title":3543,"path":3544,"stem":3545},"DCL50-J. Use visually distinct identifiers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F02.dcl50-j",{"title":3547,"path":3548,"stem":3549},"DCL51-J. Do not shadow or obscure identifiers in subscopes","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F03.dcl51-j",{"title":3551,"path":3552,"stem":3553},"DCL52-J. Do not declare more than one variable per declaration","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F04.dcl52-j",{"title":3555,"path":3556,"stem":3557},"DCL53-J. Minimize the scope of variables","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F05.dcl53-j",{"title":3559,"path":3560,"stem":3561},"DCL54-J. Use meaningful symbolic constants to represent literal values in program logic","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F06.dcl54-j",{"title":3563,"path":3564,"stem":3565},"DCL55-J. Properly encode relationships in constant definitions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F07.dcl55-j",{"title":3567,"path":3568,"stem":3569},"DCL56-J. Do not attach significance to the ordinal associated with an enum","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F08.dcl56-j",{"title":3571,"path":3572,"stem":3573},"DCL57-J. Avoid ambiguous overloading of variable arity methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl57-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F09.dcl57-j",{"title":3575,"path":3576,"stem":3577},"DCL58-J. Enable compile-time type checking of variable arity parameter types","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl58-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F10.dcl58-j",{"title":3579,"path":3580,"stem":3581},"DCL59-J. Do not apply public final to constants whose value might change in later releases","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl59-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F11.dcl59-j",{"title":3583,"path":3584,"stem":3585},"DCL60-J. Avoid cyclic dependencies between packages","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl60-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F12.dcl60-j",{"title":3587,"path":3588,"stem":3589},"DCL61-J. Do not use raw types","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl61-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F13.dcl61-j",{"title":2730,"path":3591,"stem":3592,"children":3593},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F1.index",[3594,3595,3599,3603,3607,3611],{"title":2730,"path":3591,"stem":3592},{"title":3596,"path":3597,"stem":3598},"ERR50-J. Use exceptions only for exceptional conditions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err\u002Ferr50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F2.err50-j",{"title":3600,"path":3601,"stem":3602},"ERR51-J. Prefer user-defined exceptions over more general exception types","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err\u002Ferr51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F3.err51-j",{"title":3604,"path":3605,"stem":3606},"ERR52-J. Avoid in-band error indicators","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err\u002Ferr52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F4.err52-j",{"title":3608,"path":3609,"stem":3610},"ERR53-J. Try to gracefully recover from system errors","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err\u002Ferr53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F5.err53-j",{"title":3612,"path":3613,"stem":3614},"ERR54-J. Use a try-with-resources statement to safely handle closeable resources","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err\u002Ferr54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F6.err54-j",{"title":2774,"path":3616,"stem":3617,"children":3618},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F1.index",[3619,3620,3624,3628,3632,3636,3640],{"title":2774,"path":3616,"stem":3617},{"title":3621,"path":3622,"stem":3623},"EXP50-J. Do not confuse abstract object equality with reference equality","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F2.exp50-j",{"title":3625,"path":3626,"stem":3627},"EXP51-J. Do not perform assignments in conditional expressions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F3.exp51-j",{"title":3629,"path":3630,"stem":3631},"EXP52-J. Use braces for the body of an if, for, or while statement","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F4.exp52-j",{"title":3633,"path":3634,"stem":3635},"EXP53-J. Use parentheses for precedence of operation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F5.exp53-j",{"title":3637,"path":3638,"stem":3639},"EXP54-J. Understand the differences between bitwise and logical operators","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F6.exp54-j",{"title":3641,"path":3642,"stem":3643},"EXP55-J. Use the same type for the second and third operands in conditional expressions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F7.exp55-j",{"title":2812,"path":3645,"stem":3646,"children":3647},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F1.index",[3648,3649,3653,3657,3661],{"title":2812,"path":3645,"stem":3646},{"title":3650,"path":3651,"stem":3652},"FIO50-J. Do not make assumptions about file creation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F2.fio50-j",{"title":3654,"path":3655,"stem":3656},"FIO51-J. Identify files using multiple file attributes","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F3.fio51-j",{"title":3658,"path":3659,"stem":3660},"FIO52-J. Do not store unencrypted sensitive information on the client side","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F4.fio52-j",{"title":3662,"path":3663,"stem":3664},"FIO53-J. Use the serialization methods writeUnshared() and readUnshared() with care","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F5.fio53-j",{"title":2886,"path":3666,"stem":3667,"children":3668},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F1.index",[3669,3670,3674,3678,3682,3686,3690,3694],{"title":2886,"path":3666,"stem":3667},{"title":3671,"path":3672,"stem":3673},"IDS50-J. Use conservative file naming conventions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F2.ids50-j",{"title":3675,"path":3676,"stem":3677},"IDS51-J. Properly encode or escape output","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F3.ids51-j",{"title":3679,"path":3680,"stem":3681},"IDS52-J. Prevent code injection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F4.ids52-j",{"title":3683,"path":3684,"stem":3685},"IDS53-J. Prevent XPath Injection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F5.ids53-j",{"title":3687,"path":3688,"stem":3689},"IDS54-J. Prevent LDAP injection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F6.ids54-j",{"title":3691,"path":3692,"stem":3693},"IDS55-J. Understand how escape characters are interpreted when strings are loaded","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F7.ids55-j",{"title":3695,"path":3696,"stem":3697},"IDS56-J. Prevent arbitrary file upload","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F8.ids56-j",{"title":3020,"path":3699,"stem":3700,"children":3701},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F1.index",[3702,3703,3707,3711,3715,3719,3723,3727],{"title":3020,"path":3699,"stem":3700},{"title":3704,"path":3705,"stem":3706},"MET50-J. Avoid ambiguous or confusing uses of overloading","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F2.met50-j",{"title":3708,"path":3709,"stem":3710},"MET51-J. Do not use overloaded methods to differentiate between runtime types","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F3.met51-j",{"title":3712,"path":3713,"stem":3714},"MET52-J. Do not use the clone() method to copy untrusted method parameters","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F4.met52-j",{"title":3716,"path":3717,"stem":3718},"MET53-J. Ensure that the clone() method calls super.clone()","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F5.met53-j",{"title":3720,"path":3721,"stem":3722},"MET54-J. Always provide feedback about the resulting value of a method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F6.met54-j",{"title":3724,"path":3725,"stem":3726},"MET55-J. Return an empty array or collection instead of a null value for methods that return an array or collection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F7.met55-j",{"title":3728,"path":3729,"stem":3730},"MET56-J. Do not use Object.equals() to compare cryptographic keys","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F8.met56-j",{"title":3080,"path":3732,"stem":3733,"children":3734},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F01.index",[3735,3736,3740,3744,3748,3752,3756,3760,3764,3768,3772,3776,3780,3784,3788],{"title":3080,"path":3732,"stem":3733},{"title":3737,"path":3738,"stem":3739},"MSC50-J. Minimize the scope of the @SuppressWarnings annotation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F02.msc50-j",{"title":3741,"path":3742,"stem":3743},"MSC51-J. Do not place a semicolon immediately following an if, for, or while condition","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F03.msc51-j",{"title":3745,"path":3746,"stem":3747},"MSC52-J. Finish every set of statements associated with a case label with a break statement","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F04.msc52-j",{"title":3749,"path":3750,"stem":3751},"MSC53-J. Carefully design interfaces before releasing them","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F05.msc53-j",{"title":3753,"path":3754,"stem":3755},"MSC54-J. Avoid inadvertent wrapping of loop counters","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F06.msc54-j",{"title":3757,"path":3758,"stem":3759},"MSC55-J. Use comments consistently and in a readable fashion","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F07.msc55-j",{"title":3761,"path":3762,"stem":3763},"MSC56-J. Detect and remove superfluous code and values","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F08.msc56-j",{"title":3765,"path":3766,"stem":3767},"MSC57-J. Strive for logical completeness","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc57-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F09.msc57-j",{"title":3769,"path":3770,"stem":3771},"MSC58-J. Prefer using iterators over enumerations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc58-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F10.msc58-j",{"title":3773,"path":3774,"stem":3775},"MSC59-J. Limit the lifetime of sensitive data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc59-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F11.msc59-j",{"title":3777,"path":3778,"stem":3779},"MSC60-J. Do not use assertions to verify the absence of runtime errors","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc60-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F12.msc60-j",{"title":3781,"path":3782,"stem":3783},"MSC61-J. Do not use insecure or weak cryptographic algorithms","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc61-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F13.msc61-j",{"title":3785,"path":3786,"stem":3787},"MSC62-J. Store passwords using a hash function","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc62-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F14.msc62-j",{"title":3789,"path":3790,"stem":3791},"MSC63-J. Ensure that SecureRandom is properly seeded","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc63-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F15.msc63-j",{"title":3134,"path":3793,"stem":3794,"children":3795},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F1.index",[3796,3797,3801,3805,3809,3813],{"title":3134,"path":3793,"stem":3794},{"title":3798,"path":3799,"stem":3800},"NUM50-J. Convert integers to floating point for floating-point operations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num\u002Fnum50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F2.num50-j",{"title":3802,"path":3803,"stem":3804},"NUM51-J. Do not assume that the remainder operator always returns a nonnegative result for integral operands","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num\u002Fnum51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F3.num51-j",{"title":3806,"path":3807,"stem":3808},"NUM52-J. Be aware of numeric promotion behavior","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num\u002Fnum52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F4.num52-j",{"title":3810,"path":3811,"stem":3812},"NUM53-J. Use the strictfp modifier for floating-point calculation consistency across platforms","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num\u002Fnum53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F5.num53-j",{"title":3814,"path":3815,"stem":3816},"NUM54-J. Do not use denormalized numbers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num\u002Fnum54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F6.num54-j",{"title":3192,"path":3818,"stem":3819,"children":3820},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F01.index",[3821,3822,3826,3830,3834,3838,3842,3846,3850,3854],{"title":3192,"path":3818,"stem":3819},{"title":3823,"path":3824,"stem":3825},"OBJ50-J. Never confuse the immutability of a reference with that of the referenced object","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F02.obj50-j",{"title":3827,"path":3828,"stem":3829},"OBJ51-J. Minimize the accessibility of classes and their members","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F03.obj51-j",{"title":3831,"path":3832,"stem":3833},"OBJ52-J. Write garbage-collection-friendly code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F04.obj52-j",{"title":3835,"path":3836,"stem":3837},"OBJ53-J. Do not use direct buffers for short-lived, infrequently used objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F05.obj53-j",{"title":3839,"path":3840,"stem":3841},"OBJ54-J. Do not attempt to help the garbage collector by setting local reference variables to null","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F06.obj54-j",{"title":3843,"path":3844,"stem":3845},"OBJ55-J. Remove short-lived objects from long-lived container objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F07.obj55-j",{"title":3847,"path":3848,"stem":3849},"OBJ56-J. Provide sensitive mutable classes with unmodifiable wrappers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F08.obj56-j",{"title":3851,"path":3852,"stem":3853},"OBJ57-J. Do not rely on methods that can be overridden by untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj57-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F09.obj57-j",{"title":3855,"path":3856,"stem":3857},"OBJ58-J. Limit the extensibility of classes and methods with invariants","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj58-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F10.obj58-j",{"title":3254,"path":3859,"stem":3860,"children":3861},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F01.index",[3862,3863,3867,3871,3875,3879,3883,3887,3891,3895],{"title":3254,"path":3859,"stem":3860},{"title":3864,"path":3865,"stem":3866},"SEC50-J. Avoid granting excess privileges","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F02.sec50-j",{"title":3868,"path":3869,"stem":3870},"SEC51-J. Minimize privileged code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F03.sec51-j",{"title":3872,"path":3873,"stem":3874},"SEC52-J. Do not expose methods that use reduced-security checks to untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F04.sec52-j",{"title":3876,"path":3877,"stem":3878},"SEC53-J. Define custom security permissions for fine-grained security","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F05.sec53-j",{"title":3880,"path":3881,"stem":3882},"SEC54-J. Create a secure sandbox using a security manager","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F06.sec54-j",{"title":3884,"path":3885,"stem":3886},"SEC55-J. Ensure that security-sensitive methods are called with validated arguments","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F07.sec55-j",{"title":3888,"path":3889,"stem":3890},"SEC56-J. Do not serialize direct handles to system resources","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F08.sec56-j",{"title":3892,"path":3893,"stem":3894},"SEC57-J. Do not let untrusted code misuse privileges of callback methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec57-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F09.sec57-j",{"title":3896,"path":3897,"stem":3898},"SEC58-J. Deserialization methods should not perform potentially dangerous operations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec58-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F10.sec58-j",{"title":3900,"path":3901,"stem":3902,"children":3903},"Back Matter","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F1.index",[3904,3905,3909,3913,3917,3920,4037,4063],{"title":3900,"path":3901,"stem":3902},{"title":3906,"path":3907,"stem":3908},"Rec. AA. References","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-aa-references","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F2.rec-aa-references",{"title":3910,"path":3911,"stem":3912},"Rec. BB. Definitions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-bb-definitions","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F3.rec-bb-definitions",{"title":3914,"path":3915,"stem":3916},"Rule AA. References","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F4.rule-aa-references",{"title":3918,"path":1927,"stem":3919},"Rule BB. Glossary","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F5.rule-bb-glossary",{"title":3921,"path":3922,"stem":3923,"children":3924},"Rule or Rec. CC. Analyzers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F01.index",[3925,3926,3928,3932,3936,3940,3944,3948,3952,3956,3960,3964,3968,3972,3976,3980,3983,3987,3991,3995,3999,4003,4005,4009,4011,4015,4017,4021,4025,4029,4033],{"title":3921,"path":3922,"stem":3923},{"title":2264,"path":2263,"stem":3927},"6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F02.codesonar",{"title":3929,"path":3930,"stem":3931},"CodeSonar_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fcodesonar_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F03.codesonar_v",{"title":3933,"path":3934,"stem":3935},"Coverity","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fcoverity","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F04.coverity",{"title":3937,"path":3938,"stem":3939},"Coverity_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fcoverity_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F05.coverity_v",{"title":3941,"path":3942,"stem":3943},"Eclipse","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Feclipse","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F06.eclipse",{"title":3945,"path":3946,"stem":3947},"Eclipse_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Feclipse_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F07.eclipse_v",{"title":3949,"path":3950,"stem":3951},"Error Prone","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ferror-prone","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F08.error-prone",{"title":3953,"path":3954,"stem":3955},"Error Prone_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ferror-prone_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F09.error-prone_v",{"title":3957,"path":3958,"stem":3959},"Findbugs","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ffindbugs","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F10.findbugs",{"title":3961,"path":3962,"stem":3963},"Findbugs_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ffindbugs_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F11.findbugs_v",{"title":3965,"path":3966,"stem":3967},"Fortify","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ffortify","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F12.fortify",{"title":3969,"path":3970,"stem":3971},"Fortify_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ffortify_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F13.fortify_v",{"title":3973,"path":3974,"stem":3975},"Klocwork","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fklocwork","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F14.klocwork",{"title":3977,"path":3978,"stem":3979},"Klocwork_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fklocwork_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F15.klocwork_v",{"title":3981,"path":2303,"stem":3982},"Parasoft","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F16.parasoft",{"title":3984,"path":3985,"stem":3986},"Parasoft_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fparasoft_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F17.parasoft_v",{"title":3988,"path":3989,"stem":3990},"Pmd","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fpmd","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F18.pmd",{"title":3992,"path":3993,"stem":3994},"Pmd_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fpmd_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F19.pmd_v",{"title":3996,"path":3997,"stem":3998},"PVS-Studio","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fpvs-studio","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F20.pvs-studio",{"title":4000,"path":4001,"stem":4002},"PVS-Studio_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fpvs-studio_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F21.pvs-studio_v",{"title":2327,"path":2326,"stem":4004},"6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F22.security-reviewer-static-reviewer",{"title":4006,"path":4007,"stem":4008},"Security Reviewer - Static Reviewer_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fsecurity-reviewer-static-reviewer_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F23.security-reviewer-static-reviewer_v",{"title":2352,"path":2351,"stem":4010},"6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F24.sonarqube",{"title":4012,"path":4013,"stem":4014},"SonarQube_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fsonarqube_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F25.sonarqube_v",{"title":2382,"path":2381,"stem":4016},"6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F26.spotbugs",{"title":4018,"path":4019,"stem":4020},"SpotBugs_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fspotbugs_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F27.spotbugs_v",{"title":4022,"path":4023,"stem":4024},"The Checker Framework","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fthe-checker-framework","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F28.the-checker-framework",{"title":4026,"path":4027,"stem":4028},"The Checker Framework_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fthe-checker-framework_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F29.the-checker-framework_v",{"title":4030,"path":4031,"stem":4032},"ThreadSafe","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fthreadsafe","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F30.threadsafe",{"title":4034,"path":4035,"stem":4036},"ThreadSafe_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fthreadsafe_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F31.threadsafe_v",{"title":4038,"path":4039,"stem":4040,"children":4041},"Rule or Rec. DD. Related Guidelines","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F1.index",[4042,4043,4047,4051,4055,4059],{"title":4038,"path":4039,"stem":4040},{"title":4044,"path":4045,"stem":4046},"2010","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines\u002F2.2010","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F2.2010",{"title":4048,"path":4049,"stem":4050},"2013","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines\u002F3.2013","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F3.2013",{"title":4052,"path":4053,"stem":4054},"MITRE CAPEC","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines\u002Fmitre-capec","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F4.mitre-capec",{"title":4056,"path":4057,"stem":4058},"MITRE CWE","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines\u002Fmitre-cwe","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F5.mitre-cwe",{"title":4060,"path":4061,"stem":4062},"SECURE CODING GUIDELINES FOR JAVA SE, VERSION 5.0","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines\u002Fsecure-coding-guidelines-for-java-se-version-50","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F6.secure-coding-guidelines-for-java-se-version-50",{"title":4064,"path":4065,"stem":4066},"Rule or Rec. EE. Risk Assessments","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-ee-risk-assessments","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F8.rule-or-rec-ee-risk-assessments",{"title":4068,"path":4069,"stem":4070,"children":4071},"Admin","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F1.index",[4072,4073,4077,4081,4085,4089],{"title":4068,"path":4069,"stem":4070},{"title":4074,"path":4075,"stem":4076},"All Guidelines with Classification","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin\u002Fall-guidelines-with-classification","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F2.all-guidelines-with-classification",{"title":4078,"path":4079,"stem":4080},"Normative Guidelines","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin\u002Fnormative-guidelines","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F3.normative-guidelines",{"title":4082,"path":4083,"stem":4084},"Tech-edit","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin\u002Ftech-edit","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F4.tech-edit",{"title":4086,"path":4087,"stem":4088},"TODO List","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin\u002Ftodo-list","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F5.todo-list",{"title":4086,"path":4087,"stem":4090},"6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F6.todo-list",1775657822546]