From c5cc852caf184acd87e779a0f1d7ec9ea6b93505 Mon Sep 17 00:00:00 2001 From: davewichers Date: Fri, 27 Dec 2019 12:57:45 -0500 Subject: [PATCH 01/92] Slight tweak to Dockerfile --- VMs/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VMs/Dockerfile b/VMs/Dockerfile index e1918733ce..aa76db4f7c 100644 --- a/VMs/Dockerfile +++ b/VMs/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:latest MAINTAINER "Dave Wichers dave.wichers@owasp.org" -RUN apt-get update && apt-get clean +RUN apt-get update RUN apt-get install -q -y \ openjdk-8-jre-headless \ openjdk-8-jdk \ From f1f025638c0bed70d6fe2b0faed0508c806dc484 Mon Sep 17 00:00:00 2001 From: Nuno Oliveira Date: Tue, 7 Jan 2020 13:59:26 +0000 Subject: [PATCH 02/92] Corrected issue with CWE parsing --- .../org/owasp/benchmark/score/parsers/CheckmarxESReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/owasp/benchmark/score/parsers/CheckmarxESReader.java b/src/main/java/org/owasp/benchmark/score/parsers/CheckmarxESReader.java index 2b70b4c19c..d000d49b3d 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/CheckmarxESReader.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/CheckmarxESReader.java @@ -35,7 +35,7 @@ public TestResults parse( File f ) throws Exception { //cwe int cwe = query.getJSONObject("Metadata").getInt("CweId"); try{ - cwe = translate( Integer.parseInt("undefined")); + cwe = translate(cwe); } catch(NumberFormatException ex) { System.out.println( "flaw: " + query ); From b5eb6fac1356f0a7f9e66849f90c55f084085d87 Mon Sep 17 00:00:00 2001 From: Jie Date: Fri, 28 Feb 2020 21:18:41 +0800 Subject: [PATCH 03/92] add getSonarVersion --- .../org/owasp/benchmark/score/WriteTime.java | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/score/WriteTime.java b/src/main/java/org/owasp/benchmark/score/WriteTime.java index 8755953c05..61ac761731 100644 --- a/src/main/java/org/owasp/benchmark/score/WriteTime.java +++ b/src/main/java/org/owasp/benchmark/score/WriteTime.java @@ -11,6 +11,7 @@ import java.net.URL; import java.util.List; import java.util.Properties; +import java.util.LinkedHashMap; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; @@ -101,6 +102,7 @@ class WriteFiles { private static final String FINDBUGS_FILE = "target/findbugsXml.xml"; private static final String PMD_FILE = "target/pmd.xml"; private static final String SONAR_FILE = "target/sonarqube.xml"; + private static final String SONAR_URL = "http://172.16.141.198:9000"; private static final String SPOTBUGS_FILE = "target/spotbugsXml.xml"; public String getVersionNumber(String toolName) { @@ -135,7 +137,7 @@ public String getVersionNumber(String toolName) { root = doc.getDocumentElement(); return Reader.getAttributeValue("version", root); case "sonar": - return "TBD"; + return getSonarVersion(SONAR_URL + "/api/server/version"); } } catch (Exception e) { System.out.println("An error occurred during results file parsing: " + e.getMessage()); @@ -262,11 +264,12 @@ public void writeSonarResults() { int page = 1; int total = 1; JSONArray issues = new JSONArray(); + //JSONObject jsonOnePage = null; JSONObject json = null; try { - while (issues.length() < total) { - json = new JSONObject(getSonarResults("http://localhost:9000", page)); + while (issues.length() < total && page <= 20) { + json = new JSONObject(getSonarResults(SONAR_URL + "/api/issues/search?resolved=false&ps=500&p=" + page)); total = (int) json.get("total"); JSONArray issueSubset = json.getJSONArray("issues"); @@ -277,8 +280,11 @@ public void writeSonarResults() { } json.put("issues", issues); + //System.out.println("json: " + json); String xml = XML.toString(json); + //System.out.println("xml: " + xml); + java.io.FileWriter fw = new java.io.FileWriter(SONAR_FILE); fw.write(xml); fw.close(); @@ -286,11 +292,18 @@ public void writeSonarResults() { System.out.println("There was an error while writing SonarQube results."); } } - - public static String getSonarResults(String sonarURL, int page) { + + public static String getSonarVersion(String sonarURL) { + return getHttpResponse(sonarURL, "There was an error trying to retrieve SonarQube version."); + } + + public static String getSonarResults(String sonarURL){ + return getHttpResponse(sonarURL, "There was an error trying to retrieve SonarQube results."); + } + + public static String getHttpResponse(String url, String errorMessege) { StringBuffer response = new StringBuffer(); try { - String url = sonarURL + "/api/issues/search?resolved=false&ps=500&p=" + page; URL obj = new URL(url); HttpURLConnection con = (HttpURLConnection) obj.openConnection(); con.setRequestMethod("GET"); @@ -305,7 +318,7 @@ public static String getSonarResults(String sonarURL, int page) { } in.close(); } catch (Exception e) { - System.out.println("There was an error trying to retrieve SonarQube results."); + System.out.println(errorMessege); } return response.toString(); } From 64df2283833b0acdbc46b8228b021b4098bb19d7 Mon Sep 17 00:00:00 2001 From: Jie Date: Fri, 28 Feb 2020 21:21:28 +0800 Subject: [PATCH 04/92] update --- src/main/java/org/owasp/benchmark/score/WriteTime.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/owasp/benchmark/score/WriteTime.java b/src/main/java/org/owasp/benchmark/score/WriteTime.java index 61ac761731..7607f47597 100644 --- a/src/main/java/org/owasp/benchmark/score/WriteTime.java +++ b/src/main/java/org/owasp/benchmark/score/WriteTime.java @@ -102,7 +102,7 @@ class WriteFiles { private static final String FINDBUGS_FILE = "target/findbugsXml.xml"; private static final String PMD_FILE = "target/pmd.xml"; private static final String SONAR_FILE = "target/sonarqube.xml"; - private static final String SONAR_URL = "http://172.16.141.198:9000"; + private static final String SONAR_URL = "http://localhost:9000"; private static final String SPOTBUGS_FILE = "target/spotbugsXml.xml"; public String getVersionNumber(String toolName) { From 7205288efeebb697406e6c62bae974024c08b20c Mon Sep 17 00:00:00 2001 From: Jie Date: Fri, 28 Feb 2020 21:30:58 +0800 Subject: [PATCH 05/92] Update WriteTime.java --- src/main/java/org/owasp/benchmark/score/WriteTime.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/score/WriteTime.java b/src/main/java/org/owasp/benchmark/score/WriteTime.java index 7607f47597..d49520e4fc 100644 --- a/src/main/java/org/owasp/benchmark/score/WriteTime.java +++ b/src/main/java/org/owasp/benchmark/score/WriteTime.java @@ -11,7 +11,6 @@ import java.net.URL; import java.util.List; import java.util.Properties; -import java.util.LinkedHashMap; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; @@ -102,7 +101,7 @@ class WriteFiles { private static final String FINDBUGS_FILE = "target/findbugsXml.xml"; private static final String PMD_FILE = "target/pmd.xml"; private static final String SONAR_FILE = "target/sonarqube.xml"; - private static final String SONAR_URL = "http://localhost:9000"; + private static final String SONAR_URL = "http://172.16.141.198:9000"; private static final String SPOTBUGS_FILE = "target/spotbugsXml.xml"; public String getVersionNumber(String toolName) { @@ -264,7 +263,6 @@ public void writeSonarResults() { int page = 1; int total = 1; JSONArray issues = new JSONArray(); - //JSONObject jsonOnePage = null; JSONObject json = null; try { @@ -280,11 +278,8 @@ public void writeSonarResults() { } json.put("issues", issues); - //System.out.println("json: " + json); String xml = XML.toString(json); - //System.out.println("xml: " + xml); - java.io.FileWriter fw = new java.io.FileWriter(SONAR_FILE); fw.write(xml); fw.close(); From 946124ed44c94977c389a28cd91525e9c38fdfc6 Mon Sep 17 00:00:00 2001 From: Jie Date: Fri, 28 Feb 2020 21:32:11 +0800 Subject: [PATCH 06/92] Update WriteTime.java --- src/main/java/org/owasp/benchmark/score/WriteTime.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/owasp/benchmark/score/WriteTime.java b/src/main/java/org/owasp/benchmark/score/WriteTime.java index d49520e4fc..c6b002bbb6 100644 --- a/src/main/java/org/owasp/benchmark/score/WriteTime.java +++ b/src/main/java/org/owasp/benchmark/score/WriteTime.java @@ -101,7 +101,7 @@ class WriteFiles { private static final String FINDBUGS_FILE = "target/findbugsXml.xml"; private static final String PMD_FILE = "target/pmd.xml"; private static final String SONAR_FILE = "target/sonarqube.xml"; - private static final String SONAR_URL = "http://172.16.141.198:9000"; + private static final String SONAR_URL = "http://localhost:9000"; private static final String SPOTBUGS_FILE = "target/spotbugsXml.xml"; public String getVersionNumber(String toolName) { From ec6e542c595ddb56aa330ba2b280fadffc2930b5 Mon Sep 17 00:00:00 2001 From: davewichers Date: Mon, 2 Mar 2020 17:38:03 -0500 Subject: [PATCH 07/92] Update Acunetix parser to handle new Acunetix results format. Also tweak BenchmarkScore to eliminate Java 13 API call ambiguity. --- .../owasp/benchmark/score/BenchmarkScore.java | 4 +- .../score/parsers/AcunetixReader.java | 135 +++++++++++++++--- 2 files changed, 119 insertions(+), 20 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java index 9bbc1b29b2..e37599de64 100644 --- a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java +++ b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java @@ -753,7 +753,7 @@ else if ( line2.startsWith( " -// -// -// -// -// -// -// + if (root.getNodeName().equalsIgnoreCase("acunetix-360")) { + + /* This is for the 2020 format that looks like: + + + f55650d3326f40f30d92ab6e04af1794 + https://localhost:8443/benchmark/ + 27/02/2020 04:49 PM + 01:57:21.2094646 + + + + cf5644f1-31ee-4092-0e15-ab6e04af7f51 + ... + */ + TestResults tr = new TestResults( "Acunetix 360", true, TestResults.ToolType.DAST); + + Node target = getNamedChild( "target", root ); + String duration = getNamedChild("duration", target ).getTextContent(); + // duration format is: 01:57:21.2094646 + tr.setTime( duration.substring(0, duration.lastIndexOf('.'))); + + Node issues = getNamedChild( "vulnerabilities", root ); + List issueList = getNamedChildren( "vulnerability", issues ); + + for ( Node issue : issueList ) { + try { + TestCaseResult tcr = parseAcunetixVulnerability(issue); + if (tcr != null ) { + tr.put(tcr); + } + } catch( Exception e ) { + e.printStackTrace(); + } + } + return tr; + + } else if (root.getNodeName().equalsIgnoreCase("ScanGroup")) { + + // The following is for the legacy format that looks like so: +/* + + + + + + + + + -// -// -// -// + + + + +*/ + TestResults tr = new TestResults( "Acunetix WVS", true, TestResults.ToolType.DAST); + Node scan = getNamedChild( "Scan", root ); String duration = getNamedChild("ScanTime", scan ).getTextContent(); tr.setTime( duration ); @@ -52,18 +95,73 @@ public TestResults parse( Node root ) throws Exception { for ( Node issue : issueList ) { try { - TestCaseResult tcr = parseAcunetixItem(issue); + TestCaseResult tcr = parseAcunetixReportItem(issue); if (tcr != null ) { tr.put(tcr); - // System.out.println( tcr.getNumber() + ", " + tcr.getCWE() + ", " + tcr.getEvidence() ); } } catch( Exception e ) { e.printStackTrace(); } } return tr; - } + } // end if (root.getNodeName().equalsIgnoreCase("ScanGroup")) - Legacy format + else System.out.println("XML file didn't match expected Acunetix format. Expected format: + + cf5644f1-31ee-4092-0e15-ab6e04af7f51 + https://localhost:8443/benchmark/ + InvalidSslCertificate + ... + + A6 + 4 + 295 + ... + +*/ + + private TestCaseResult parseAcunetixVulnerability( Node vuln ) throws Exception { + TestCaseResult tcr = new TestCaseResult(); + + String uri = getNamedChild( "url", vuln ).getTextContent(); + String testfile = uri.substring( uri.lastIndexOf('/') +1 ); + if ( testfile.contains("?") ) { + testfile = testfile.substring(0, testfile.indexOf( "?" ) ); + } + if ( testfile.startsWith( BenchmarkScore.BENCHMARKTESTNAME ) ) { + String testno = testfile.substring(BenchmarkScore.BENCHMARKTESTNAME.length()); + if ( testno.endsWith( ".html" ) ) { + testno = testno.substring(0, testno.length() -5 ); + } + try { + tcr.setNumber( Integer.parseInt( testno ) ); + } catch( NumberFormatException e ) { + System.out.println( "> Parse error " + testfile + ":: " + testno ); + return null; + } + } + + String cat = getNamedChild("type", vuln).getTextContent(); + tcr.setCategory( cat ); + + Node classification = getNamedChild( "classification", vuln ); + Node vulnId = getNamedChild("cwe", classification); + if ( vulnId != null ) { + String cweNum = vulnId.getTextContent(); + int cwe = cweLookup( cweNum ); + tcr.setCWE( cwe ); + } else return null; + + tcr.setConfidence( Integer.parseInt( getNamedChild("certainty", vuln).getTextContent() ) ); + + return tcr; + } + +// This is the legacy format: // // //
<empty>
Form action: https://172.16.11.1:8443/benchmark/BenchmarkTest01925
Form method: POST

Form inputs:
  • vectorArea [TextArea]
  • answer [Text]
  • vector [Text]
]]>
@@ -72,7 +170,7 @@ public TestResults parse( Node root ) throws Exception { // // - private TestCaseResult parseAcunetixItem( Node flaw ) throws Exception { + private TestCaseResult parseAcunetixReportItem( Node flaw ) throws Exception { TestCaseResult tcr = new TestCaseResult(); String cat = getNamedChild("Name", flaw).getTextContent(); @@ -121,6 +219,7 @@ private static int cweLookup( String cweNum ) { } int cwe = Integer.parseInt( cweNum ); switch( cwe ) { + // switch left in case we ever need to map a reported cwe to the one expected by Benchmark // case "insecure-cookie" : return 614; // insecure cookie use // case "sql-injection" : return 89; // sql injection // case "cmd-injection" : return 78; // command injection From fb0eecdf8379b18bff3d7522cbee1cc1e9b10381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20=C3=81lvarez=20=C3=81lvarez?= Date: Tue, 3 Mar 2020 16:32:55 +0100 Subject: [PATCH 08/92] Ensure HdivReader understands both date formats (w/o date) --- .../benchmark/score/parsers/HdivReader.java | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/score/parsers/HdivReader.java b/src/main/java/org/owasp/benchmark/score/parsers/HdivReader.java index 36739f0206..1e595c2f21 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/HdivReader.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/HdivReader.java @@ -3,6 +3,7 @@ import java.io.BufferedReader; import java.io.File; import java.io.FileReader; +import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; @@ -65,14 +66,11 @@ else if (line.contains("Product version:")) { private String calculateTime(final String firstLine, final String lastLine) { try { - String start = firstLine.split(" ")[0]; - String stop = lastLine.split(" ")[0]; - SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss,SSS"); - Date startTime = sdf.parse(start); - Date stopTime = sdf.parse(stop); - long startMillis = startTime.getTime(); - long stopMillis = stopTime.getTime(); - return (stopMillis - startMillis) / 1000 + " seconds"; + try { + return calculateTime(firstLine, lastLine, 0); + } catch (ParseException e) { + return calculateTime(firstLine, lastLine, 1); + } } catch (Exception e) { e.printStackTrace(); @@ -80,6 +78,17 @@ private String calculateTime(final String firstLine, final String lastLine) { return null; } + private String calculateTime(final String firstLine, final String lastLine, final int timeColumn) throws ParseException { + String start = firstLine.split(" ")[timeColumn]; + String stop = lastLine.split(" ")[timeColumn]; + SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss,SSS"); + Date startTime = sdf.parse(start); + Date stopTime = sdf.parse(stop); + long startMillis = startTime.getTime(); + long stopMillis = stopTime.getTime(); + return (stopMillis - startMillis) / 1000 + " seconds"; + } + private void process(final TestResults tr, String testNumber, final List chunk) throws Exception { for (String line : chunk) { TestCaseResult tcr = new TestCaseResult(); From a1e9d04600c59cce4084156eca59a3e47b9e7d3c Mon Sep 17 00:00:00 2001 From: Jason Khoo Date: Fri, 6 Mar 2020 00:11:00 +0800 Subject: [PATCH 09/92] added CheckmarxIASTReader.java for CxIAST parser --- .../score/parsers/CheckmarxIASTReader.java | 165 ++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 src/main/java/org/owasp/benchmark/score/parsers/CheckmarxIASTReader.java diff --git a/src/main/java/org/owasp/benchmark/score/parsers/CheckmarxIASTReader.java b/src/main/java/org/owasp/benchmark/score/parsers/CheckmarxIASTReader.java new file mode 100644 index 0000000000..a2a29c0d9c --- /dev/null +++ b/src/main/java/org/owasp/benchmark/score/parsers/CheckmarxIASTReader.java @@ -0,0 +1,165 @@ +/** + * OWASP Benchmark Project + *

+ * This file is part of the Open Web Application Security Project (OWASP) + * Benchmark Project For details, please see + * https://www.owasp.org/index.php/Benchmark. + *

+ * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms + * of the GNU General Public License as published by the Free Software Foundation, version 2. + *

+ * The OWASP Benchmark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details + * + * @author Yuuki Endo / Jason Khoo + * @created 2020 + * This is the plugin for CxIAST + */ + +package org.owasp.benchmark.score.parsers; + +import org.apache.commons.csv.CSVFormat; +import org.apache.commons.csv.CSVRecord; + +import java.io.File; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +public class CheckmarxIASTReader extends Reader +{ + + private static int cweLookup(String checkerKey) + { +// checkerKey = checkerKey.replace("-SECOND-ORDER", ""); + + switch (checkerKey) + { + case "App_DOS_Database_Connections": + return 400; // App_DOS_Database_Connections + case "Blind_SQL_Injection": + return 89; // sql injection + case "Click_Jacking": + return 693; // Click_Jacking + case "Command_Injection": + return 78; // Command_Injection + case "CORS": + return 346; // CORS + case "CSRF": + return 352; // CSRF + case "Debug_Mode_Enabled": + return 215; // Debug_Mode_Enabled + case "Deserialize_Vulnerability": + return 502; // Deserialize_Vulnerability + case "Failed_Login_Without_Audit": + return 778; // Failed_Login_Without_Audit + case "File_Upload_To_Unprotected_Directory": + return 434; // File_Upload_To_Unprotected_Directory + case "Improper_HTTP_Get_Usage": + return 650; // Improper_HTTP_Get_Usage + case "Insecure_Cookie": + case "Session_Id_Disclosure": //CxIAST does not define but it is same as Insecure_Cookie YE + return 614; // Insecure_Cookie + case "Insecure_Outgoing_Communication": + return 311; // Insecure_Outgoing_Communication + case "Insufficient_Session_Expiration": + return 613; // Insufficient_Session_Expiration + case "LDAP_Injection": + return 90; // LDAP_Injection + case "Least_Privilege_Violation": + return 250; // Least_Privilege_Violation + case "Log_Forging": + return 117; + case "Missing_X_Content_Type_Options_Header": + return 693; + case "Missing_X_XSS_Protection_Header": + return 693; + case "NoSQL_Injection": + return 943; + case "Open_Redirect": + return 601; + case "Parameter_Pollution": + return 235; + case "Parameter_Tampering": + return 99; + case "Path_Traversal": + return 22; + case "Second_Order_Command_Injection": + return 77; + case "Second_Order_LDAP_Injection": + return 90; + case "Second_Order_Path_Traversal": + return 22; + case "Second_Order_SQL_Injection": + return 89; + case "Second_Order_XPath_Injection": + return 643; + case "Sensitive_Data_Exposure_Credit_Card": + return 311; + case "Sensitive_Data_Exposure_Email": + return 311; + case "Sensitive_Data_Exposure_Long_Number": + return 311; + case "SQL_Injection": + return 89; + case "Stored_XSS": + return 79; + case "Successful_Login_Without_Audit": + return 778; + case "Trust_Boundary_Violation": + return 501; + case "Weak_Cryptography": + return 327; + case "Weak_DB_Password": + return 521; + case "Weak_Hashing": + return 328; + case "Weak_Random": + return 330; + case "XPath_Injection": + return 643; + case "XSS": + return 79; + case "XXE": + return 611; + } + return 0; + } + + public TestResults parse(File f) throws Exception + { + String dirName ="org/owasp/benchmark/testcode/"; + + TestResults tr = new TestResults("CxIAST", true, TestResults.ToolType.IAST); + + java.io.Reader inReader = new java.io.FileReader(f); + Iterable records = CSVFormat.RFC4180.withFirstRecordAsHeader().parse(inReader); + for (CSVRecord record : records) + { + String checkerKey = record.get("Vulnerability Type"); + String url = record.get("URL"); +// System.out.println("URL = "+url); //For debugging YE + + TestCaseResult tcr = new TestCaseResult(); + tcr.setCategory(checkerKey); + tcr.setCWE(cweLookup(checkerKey)); + Pattern testCasePattern = Pattern.compile("BenchmarkTest[0-9]{5}"); + Matcher testCaseMatcher = testCasePattern.matcher(url); + if(testCaseMatcher.find()){ + String testCase = testCaseMatcher.group(0); +// System.out.println("testCase = "+testCase+" Test Num = "+testCase.substring(testCase.length()-5, testCase.length())); // For debugging YE + tcr.setTestCaseName(testCase); + //"BenchmarkTest00000" - "BenchmarkTest99999" + tcr.setNumber(Integer.parseInt(testCase.substring(testCase.length()-5, testCase.length()))); + if (tcr.getCWE() != 0) + { + tr.put(tcr); + } +// System.out.println(testCase+" "+tcr.getCWE()+" "+tcr.getCategory()); // For debugging YE + } + } + tr.setTime("100"); + return tr; + } + +} \ No newline at end of file From f6a1929036060b2aa532bef65dd1faee6ff5cd56 Mon Sep 17 00:00:00 2001 From: Jason Khoo Date: Fri, 6 Mar 2020 00:12:05 +0800 Subject: [PATCH 10/92] added CheckmarxIASTReader.java for CxIAST parser --- .../org/owasp/benchmark/score/BenchmarkScore.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java index e37599de64..8cdd029d6f 100644 --- a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java +++ b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java @@ -58,6 +58,7 @@ import org.owasp.benchmark.score.parsers.CASTAIPReader; import org.owasp.benchmark.score.parsers.CheckmarxESReader; import org.owasp.benchmark.score.parsers.CheckmarxReader; +import org.owasp.benchmark.score.parsers.CheckmarxIASTReader; import org.owasp.benchmark.score.parsers.ContrastReader; import org.owasp.benchmark.score.parsers.Counter; import org.owasp.benchmark.score.parsers.CoverityReader; @@ -644,7 +645,13 @@ private static TestResults readActualResults(File fileToParse) throws Exception TestResults tr = null; if ( filename.endsWith( ".csv" ) ) { - tr = new SeekerReader().parse(fileToParse); + //updates for Checkmarx IAST CSV report + if( filename.startsWith( "CxIAST") ) { + tr = new CheckmarxIASTReader().parse(fileToParse); + } + else { + tr = new SeekerReader().parse(fileToParse); + } } else if ( filename.endsWith( ".ozasmt" ) ) { @@ -753,7 +760,7 @@ else if ( line2.startsWith( " Date: Fri, 6 Mar 2020 00:54:02 +0800 Subject: [PATCH 11/92] update the BenchmarkScore.java to include the CheckmarxIASTReader.java --- src/main/java/org/owasp/benchmark/score/BenchmarkScore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java index 8cdd029d6f..b9a0565493 100644 --- a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java +++ b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java @@ -760,7 +760,7 @@ else if ( line2.startsWith( " Date: Fri, 6 Mar 2020 16:19:41 +0000 Subject: [PATCH 12/92] Corrected spelling. --- tools/Contrast/readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Contrast/readme.txt b/tools/Contrast/readme.txt index 19b6fadaa2..fd43a987d3 100644 --- a/tools/Contrast/readme.txt +++ b/tools/Contrast/readme.txt @@ -1,4 +1,4 @@ -DISCLAIMER: OWASP does not endorse any commercial tools, including this one. Benchmark support for this tool is simply for user convienience and should not be considered an endorsement of this tool. +DISCLAIMER: OWASP does not endorse any commercial tools, including this one. Benchmark support for this tool is simply for user convenience and should not be considered an endorsement of this tool. Contrast is a commercial tool. If you are interested in running Contrast on the Benchmark, you'll have to get a license for it from the vendor just like you would for any commercial tool. Once you have it, you need to place the contrast.jar file in this directory in order to run the Benchmark with Contrast using one of the runBenchmark_wContrast scripts, and then crawl the Benchmark to generate scan results with one of the runCrawler scripts. From 68418cf3d0262e6101271262be85c5297647a2e8 Mon Sep 17 00:00:00 2001 From: Grant Ongers Date: Fri, 6 Mar 2020 16:29:44 +0000 Subject: [PATCH 13/92] Added Seeker config and runners to Benchmark --- pom.xml | 111 +++++++++++++++++++++++++- tools/seeker/readme.txt | 5 ++ tools/seeker/runBenchmark_wSeeker.bat | 16 ++++ tools/seeker/runBenchmark_wSeeker.sh | 29 +++++++ 4 files changed, 157 insertions(+), 4 deletions(-) create mode 100644 tools/seeker/readme.txt create mode 100644 tools/seeker/runBenchmark_wSeeker.bat create mode 100644 tools/seeker/runBenchmark_wSeeker.sh diff --git a/pom.xml b/pom.xml index 5bd6319336..8eb75f8189 100755 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ - + benchmarkscore @@ -300,7 +300,110 @@ - + + + deploywseeker + + true + -javaagent:${basedir}/tools/seeker/seeker-agent.jar + -Dseeker.server.url=https://server.example.com:8888 + -Dseeker.project.key=Benchmark + + + + + maven-antrun-plugin + 1.7 + + + ldap-server + package + + run + + + + + + + + + + + database-server + package + + run + + + + + + + + + + + database-init + package + + run + + + + + + + + + + + + + org.codehaus.cargo + cargo-maven2-plugin + 1.6.0 + + + 300000 + tomcat8x + + http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.38/bin/apache-tomcat-8.0.38.zip + + + + + + ${basedir}/src/config/local/server.xml + conf + true + + + ${basedir}/src/config/local/context.xml + conf + true + + + + + ${seeker.javaagent} ${seeker.server.url} ${seeker.project.key} -Xss2m + + 8443 + https + false + TLS + ../../../../.keystore + changeit + tomcat + true + + + + + + + + deploywhcl @@ -495,7 +598,7 @@ But it requires getting all the Log4j2 stuff configured right, and haven't done 1.5.7 - org.apache.directory.shared diff --git a/tools/seeker/readme.txt b/tools/seeker/readme.txt new file mode 100644 index 0000000000..0738841088 --- /dev/null +++ b/tools/seeker/readme.txt @@ -0,0 +1,5 @@ +DISCLAIMER: OWASP does not endorse any commercial tools, including this one. Benchmark support for this tool is simply for user convenience and should not be considered an endorsement of this tool. + +Seeker is a commercial tool. If you are interested in running Seeker on the Benchmark, you'll have to get a license for it from the vendor just like you would for any commercial tool. Once you have it, you need to unzip the seeker-JAVA-agent.zip file in this directory in order to run the Benchmark with Seeker using one of the runBenchmark_wSeeker scripts, and then crawl the Benchmark to generate scan results with one of the runCrawler scripts. + +See the Tool Scanning Tips page at OWASP (https://www.owasp.org/index.php/Benchmark#tab=Tool_Scanning_Tips) for the latest instructions on how to scan the Benchmark with any vulnerability detection tool, including Seeker. diff --git a/tools/seeker/runBenchmark_wSeeker.bat b/tools/seeker/runBenchmark_wSeeker.bat new file mode 100644 index 0000000000..7cc0d55e57 --- /dev/null +++ b/tools/seeker/runBenchmark_wSeeker.bat @@ -0,0 +1,16 @@ +@ECHO OFF +IF EXIST .\seeker-agent.jar ( + CD ..\.. + + CALL mvn clean package cargo:run -Pdeploywseeker + + CD tools\Seeker + +) ELSE ( + ECHO Seeker is a commercial product, so you need a licensed version of Seeker in order to run it on the Benchmark. + ECHO * download the CxIAST Agent for Java (cxiast-java-agent.zip) from the Server; + ECHO * put it into the /tools/CxIAST folder; + ECHO * unzip it; + ECHO * update pom.xml (deploywseeker section, seeker.server.url); and then + ECHO * rerun this script. +) diff --git a/tools/seeker/runBenchmark_wSeeker.sh b/tools/seeker/runBenchmark_wSeeker.sh new file mode 100644 index 0000000000..380334a542 --- /dev/null +++ b/tools/seeker/runBenchmark_wSeeker.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +if [ -f ./seeker-agent.jar ]; then + + if [ -d ./working ]; then + + rm -r ./working/cache + echo "" + echo "Previous Seeker results in tools/seeker removed" + echo "" + + fi + + cd ../.. + chmod 755 target/classes/insecureCmd.sh + mvn clean package cargo:run -Pdeploywseeker + + echo "Download Seeker report to results directory" + +else + + echo "Checkmarx IAST is a commercial product, so you need a licensed version of Checkmarx IAST in order to run it on the Benchmark. If you have access to Checkmarx IAST and want to run the Benchmark against it you will have to: + * download the CxIAST Agent for Java (cxiast-java-agent.zip) from the Server; + * put it into the /tools/CxIAST folder; + * unzip it; + * update pom.xml (deploywseeker section, seeker.server.url); and then + * rerun this script." + +fi From b42ceb7d7709e55228a2d0389feca00301eeb677 Mon Sep 17 00:00:00 2001 From: Grant Ongers Date: Fri, 6 Mar 2020 16:31:11 +0000 Subject: [PATCH 14/92] Added CHeckmarx IAST config and runners to Benchmark --- pom.xml | 104 ++++++++++++++++++ .../owasp/benchmark/score/BenchmarkScore.java | 10 +- .../score/parsers/CheckmarxIASTReader.java | 68 ++++++++++++ tools/CxIAST/readme.txt | 5 + tools/CxIAST/runBenchmark_wCxIAST.bat | 15 +++ tools/CxIAST/runBenchmark_wCxIAST.sh | 28 +++++ 6 files changed, 228 insertions(+), 2 deletions(-) create mode 100644 src/main/java/org/owasp/benchmark/score/parsers/CheckmarxIASTReader.java create mode 100644 tools/CxIAST/readme.txt create mode 100644 tools/CxIAST/runBenchmark_wCxIAST.bat create mode 100644 tools/CxIAST/runBenchmark_wCxIAST.sh diff --git a/pom.xml b/pom.xml index 8eb75f8189..fbd8091894 100755 --- a/pom.xml +++ b/pom.xml @@ -404,6 +404,110 @@ + + deploywcxiast + + true + + + + + maven-antrun-plugin + + + ldap-server + package + + run + + + + + + + + + + + database-server + package + + run + + + + + + + + + + + database-init + package + + run + + + + + + + + + + + + + org.codehaus.cargo + cargo-maven2-plugin + + + 300000 + tomcat${tomcat.major.version}x + + ${tomcat.url} + + + + -XX:MaxPermSize=6G -Xms1G –Xmx8G + + + + + ${basedir}/src/config/local/server.xml + conf + true + + + ${basedir}/src/config/local/context.xml + conf + true + + + + + -Xmx4G + -javaagent:${basedir}/tools/CxIAST/cx-launcher.jar + -Diast.home=${basedir}/tools/CxIAST/ + -Xverify:none + + 8443 + https + false + TLS + ../../../../.keystore + changeit + tomcat + true + + + + + + + + deploywhcl diff --git a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java index e37599de64..a5cb493137 100644 --- a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java +++ b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java @@ -58,6 +58,7 @@ import org.owasp.benchmark.score.parsers.CASTAIPReader; import org.owasp.benchmark.score.parsers.CheckmarxESReader; import org.owasp.benchmark.score.parsers.CheckmarxReader; +import org.owasp.benchmark.score.parsers.CheckmarxIASTReader; import org.owasp.benchmark.score.parsers.ContrastReader; import org.owasp.benchmark.score.parsers.Counter; import org.owasp.benchmark.score.parsers.CoverityReader; @@ -644,13 +645,18 @@ private static TestResults readActualResults(File fileToParse) throws Exception TestResults tr = null; if ( filename.endsWith( ".csv" ) ) { - tr = new SeekerReader().parse(fileToParse); + String line1 = getLine( fileToParse, 0 ); + if ( line2.contains("CheckerKey") && line2.contains("LastDetectionURL") ) { + tr = new SeekerReader().parse(fileToParse); + } else if ( line2.contains("CWE") && line2.contains("URL") ) { + tr = new CheckmarxIASTReader().parse(fileToParse); + } } else if ( filename.endsWith( ".ozasmt" ) ) { tr = new AppScanSourceReader().parse( fileToParse ); } - + else if ( filename.endsWith( ".faast" ) ) { tr = new FaastReader().parse( fileToParse ); } diff --git a/src/main/java/org/owasp/benchmark/score/parsers/CheckmarxIASTReader.java b/src/main/java/org/owasp/benchmark/score/parsers/CheckmarxIASTReader.java new file mode 100644 index 0000000000..1dd80ad87b --- /dev/null +++ b/src/main/java/org/owasp/benchmark/score/parsers/CheckmarxIASTReader.java @@ -0,0 +1,68 @@ +/** + * OWASP Benchmark Project + *

+ * This file is part of the Open Web Application Security Project (OWASP) + * Benchmark Project For details, please see + * https://www.owasp.org/index.php/Benchmark. + *

+ * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms + * of the GNU General Public License as published by the Free Software Foundation, version 2. + *

+ * The OWASP Benchmark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details + * + * @author Grant Ongers Secure Delivery + * @created 2020 + */ + +package org.owasp.benchmark.score.parsers; + +import org.apache.commons.csv.CSVFormat; +import org.apache.commons.csv.CSVRecord; + +import java.io.File; + +public class CheckmarxIASTReader extends Reader +{ + + public TestResults parse(File f) throws Exception + { + TestResults tr = new TestResults("Checkmarx CxIAST", true, TestResults.ToolType.IAST); + + java.io.Reader inReader = new java.io.FileReader(f); + Iterable records = CSVFormat.RFC4180.withFirstRecordAsHeader().parse(inReader); + for (CSVRecord record : records) + { + String cwe = record.get("CWE"); + String url = record.get("URL"); + + TestCaseResult tcr = new TestCaseResult(); + try + { + if (url.length() >= 18) + { + String category = url.substring(1, url.indexOf("-")); + tcr.setNumber(Integer.parseInt(url.substring(url.indexOf("BenchmarkTest")+13, url.indexOf("BenchmarkTest")+18))); + if ( cwe.length() == 0 && category == "securecookie" ) tcr.setCWE(614); //CxIAST doesn't report on all 614 + else if ( cwe.length() == 0 ) tcr.setCWE(0); + else tcr.setCWE(Integer.parseInt(cwe)); + } + } + catch (NumberFormatException e) + { + System.out.println("> TParse error: " + record.toString()); + } + + if (tcr.getCWE() != 0) + { + tr.put(tcr); + } + } + + tr.setTime("100"); + + return tr; + } + +} diff --git a/tools/CxIAST/readme.txt b/tools/CxIAST/readme.txt new file mode 100644 index 0000000000..baf0599e18 --- /dev/null +++ b/tools/CxIAST/readme.txt @@ -0,0 +1,5 @@ +DISCLAIMER: OWASP does not endorse any commercial tools, including this one. Benchmark support for this tool is simply for user convenience and should not be considered an endorsement of this tool. + +Checkmarx IAST is a commercial tool. If you are interested in running Contrast on the Benchmark, you'll have to get a license for it from the vendor just like you would for any commercial tool. Once you have it, you need to unzip the cxiast-java-agent.zip file in this directory in order to run the Benchmark with Checkmarx IAST using one of the runBenchmark_wCxIAST scripts, and then crawl the Benchmark to generate scan results with one of the runCrawler scripts. + +See the Tool Scanning Tips page at OWASP (https://www.owasp.org/index.php/Benchmark#tab=Tool_Scanning_Tips) for the latest instructions on how to scan the Benchmark with any vulnerability detection tool, including Checkmarx IAST. diff --git a/tools/CxIAST/runBenchmark_wCxIAST.bat b/tools/CxIAST/runBenchmark_wCxIAST.bat new file mode 100644 index 0000000000..ab2e201739 --- /dev/null +++ b/tools/CxIAST/runBenchmark_wCxIAST.bat @@ -0,0 +1,15 @@ +@ECHO OFF +IF EXIST .\cx-launcher.jar ( + CD ..\.. + + CALL mvn clean package cargo:run -Pdeploywcxiast + + CD tools\CxIAST + +) ELSE ( + ECHO Checkmarx IAST is a commercial product, so you need a licensed version of Checkmarx IAST in order to run it on the Benchmark. If you have access to Checkmarx IAST and want to run the Benchmark against it you will have to: + ECHO * download the CxIAST Agent for Java (cxiast-java-agent.zip) from the Server; + ECHO * put it into the /tools/CxIAST folder; + ECHO * unzip it; and then + ECHO * rerun this script. +) diff --git a/tools/CxIAST/runBenchmark_wCxIAST.sh b/tools/CxIAST/runBenchmark_wCxIAST.sh new file mode 100644 index 0000000000..fb4daae48f --- /dev/null +++ b/tools/CxIAST/runBenchmark_wCxIAST.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +if [ -f ./cx-launcher.jar ]; then + + if [ -d ./working ]; then + + rm -r ./working/cache + echo "" + echo "Previous Checkmarx IAST results in tools/CxIAST removed" + echo "" + + fi + + cd ../.. + chmod 755 target/classes/insecureCmd.sh + mvn clean package cargo:run -Pdeploywcxiast + + echo "Download Checkmarx IAST report to results directory" + +else + + echo "Checkmarx IAST is a commercial product, so you need a licensed version of Checkmarx IAST in order to run it on the Benchmark. If you have access to Checkmarx IAST and want to run the Benchmark against it you will have to: + * download the CxIAST Agent for Java (cxiast-java-agent.zip) from the Server; + * put it into the /tools/CxIAST folder; + * unzip it; and then + * rerun this script." + +fi From 00bda154007139d4eaa5859a28f8f7997e223039 Mon Sep 17 00:00:00 2001 From: Grant Ongers Date: Fri, 6 Mar 2020 16:37:22 +0000 Subject: [PATCH 15/92] Brackets need escaping in batch files. --- tools/CxIAST/runBenchmark_wCxIAST.bat | 2 +- tools/seeker/runBenchmark_wSeeker.bat | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/CxIAST/runBenchmark_wCxIAST.bat b/tools/CxIAST/runBenchmark_wCxIAST.bat index ab2e201739..8c375a8332 100644 --- a/tools/CxIAST/runBenchmark_wCxIAST.bat +++ b/tools/CxIAST/runBenchmark_wCxIAST.bat @@ -8,7 +8,7 @@ IF EXIST .\cx-launcher.jar ( ) ELSE ( ECHO Checkmarx IAST is a commercial product, so you need a licensed version of Checkmarx IAST in order to run it on the Benchmark. If you have access to Checkmarx IAST and want to run the Benchmark against it you will have to: - ECHO * download the CxIAST Agent for Java (cxiast-java-agent.zip) from the Server; + ECHO * download the CxIAST Agent for Java ^(cxiast-java-agent.zip^) from the Server; ECHO * put it into the /tools/CxIAST folder; ECHO * unzip it; and then ECHO * rerun this script. diff --git a/tools/seeker/runBenchmark_wSeeker.bat b/tools/seeker/runBenchmark_wSeeker.bat index 7cc0d55e57..9061f17aa4 100644 --- a/tools/seeker/runBenchmark_wSeeker.bat +++ b/tools/seeker/runBenchmark_wSeeker.bat @@ -8,9 +8,9 @@ IF EXIST .\seeker-agent.jar ( ) ELSE ( ECHO Seeker is a commercial product, so you need a licensed version of Seeker in order to run it on the Benchmark. - ECHO * download the CxIAST Agent for Java (cxiast-java-agent.zip) from the Server; + ECHO * download the CxIAST Agent for Java ^(cxiast-java-agent.zip^) from the Server; ECHO * put it into the /tools/CxIAST folder; ECHO * unzip it; - ECHO * update pom.xml (deploywseeker section, seeker.server.url); and then + ECHO * update pom.xml ^(deploywseeker section, seeker.server.url^); and then ECHO * rerun this script. ) From a16d0e259fd233a63d7eea30633e1261dae845dc Mon Sep 17 00:00:00 2001 From: Grant Ongers Date: Fri, 6 Mar 2020 16:44:58 +0000 Subject: [PATCH 16/92] COrrected variable names. --- src/main/java/org/owasp/benchmark/score/BenchmarkScore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java index a5cb493137..b2f3abe6d9 100644 --- a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java +++ b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java @@ -646,9 +646,9 @@ private static TestResults readActualResults(File fileToParse) throws Exception if ( filename.endsWith( ".csv" ) ) { String line1 = getLine( fileToParse, 0 ); - if ( line2.contains("CheckerKey") && line2.contains("LastDetectionURL") ) { + if ( line1.contains("CheckerKey") && line2.contains("LastDetectionURL") ) { tr = new SeekerReader().parse(fileToParse); - } else if ( line2.contains("CWE") && line2.contains("URL") ) { + } else if ( line1.contains("CWE") && line2.contains("URL") ) { tr = new CheckmarxIASTReader().parse(fileToParse); } } From afe89192e87d7867ba9820bf09bf71d339729709 Mon Sep 17 00:00:00 2001 From: Grant Ongers Date: Fri, 6 Mar 2020 16:59:19 +0000 Subject: [PATCH 17/92] Corrected variable names. --- src/main/java/org/owasp/benchmark/score/BenchmarkScore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java index b2f3abe6d9..d5faa2d7d4 100644 --- a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java +++ b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java @@ -646,9 +646,9 @@ private static TestResults readActualResults(File fileToParse) throws Exception if ( filename.endsWith( ".csv" ) ) { String line1 = getLine( fileToParse, 0 ); - if ( line1.contains("CheckerKey") && line2.contains("LastDetectionURL") ) { + if ( line1.contains("CheckerKey") && line1.contains("LastDetectionURL") ) { tr = new SeekerReader().parse(fileToParse); - } else if ( line1.contains("CWE") && line2.contains("URL") ) { + } else if ( line1.contains("CWE") && line1.contains("URL") ) { tr = new CheckmarxIASTReader().parse(fileToParse); } } From 9bc517a6f21f41fed65798ce5a8a0c270ce56fcf Mon Sep 17 00:00:00 2001 From: davewichers Date: Fri, 6 Mar 2020 13:18:58 -0500 Subject: [PATCH 18/92] Minor formatting cleanup on recently changed files. Change Benchmark project URL in comments at top as well to start pointing to new project location at OWASP. --- .../owasp/benchmark/score/BenchmarkScore.java | 388 +++++++++--------- .../score/parsers/AcunetixReader.java | 4 +- .../score/parsers/CheckmarxIASTReader.java | 79 ++-- 3 files changed, 233 insertions(+), 238 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java index b9a0565493..da5cce72fe 100644 --- a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java +++ b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -644,216 +644,214 @@ private static TestResults readActualResults(File fileToParse) throws Exception String filename = fileToParse.getName(); TestResults tr = null; - if ( filename.endsWith( ".csv" ) ) { - //updates for Checkmarx IAST CSV report + if ( filename.endsWith( ".csv" ) ) { if( filename.startsWith( "CxIAST") ) { - tr = new CheckmarxIASTReader().parse(fileToParse); - } - else { - tr = new SeekerReader().parse(fileToParse); - } - } + tr = new CheckmarxIASTReader().parse(fileToParse); + } else { + tr = new SeekerReader().parse(fileToParse); + } + } - else if ( filename.endsWith( ".ozasmt" ) ) { - tr = new AppScanSourceReader().parse( fileToParse ); - } - - else if ( filename.endsWith( ".faast" ) ) { - tr = new FaastReader().parse( fileToParse ); - } + else if ( filename.endsWith( ".ozasmt" ) ) { + tr = new AppScanSourceReader().parse( fileToParse ); + } - else if ( filename.endsWith( ".json" ) ) { - String line2 = getLine( fileToParse, 1 ); - if ( line2.contains("Coverity") || line2.contains("formatVersion") ) { - tr = new CoverityReader().parse( fileToParse ); - } else if ( line2.contains("Vendor") && line2.contains("Checkmarx") ) { - tr = new CheckmarxESReader().parse( fileToParse ); - } - } + else if ( filename.endsWith( ".faast" ) ) { + tr = new FaastReader().parse( fileToParse ); + } - else if ( filename.endsWith( ".sarif" ) ) { - tr = new LGTMReader().parse( fileToParse ); - } + else if ( filename.endsWith( ".json" ) ) { + String line2 = getLine( fileToParse, 1 ); + if ( line2.contains("Coverity") || line2.contains("formatVersion") ) { + tr = new CoverityReader().parse( fileToParse ); + } else if ( line2.contains("Vendor") && line2.contains("Checkmarx") ) { + tr = new CheckmarxESReader().parse( fileToParse ); + } + } - else if ( filename.endsWith( ".threadfix" ) ) { - tr = new KiuwanReader().parse( fileToParse ); - } + else if ( filename.endsWith( ".sarif" ) ) { + tr = new LGTMReader().parse( fileToParse ); + } - else if ( filename.endsWith( ".txt" ) ) { - String line1 = getLine( fileToParse, 0 ); - if ( line1.startsWith( "Possible " ) ) { - tr = new SourceMeterReader().parse( fileToParse ); - } - } + else if ( filename.endsWith( ".threadfix" ) ) { + tr = new KiuwanReader().parse( fileToParse ); + } - else if ( filename.endsWith( ".xml" ) ) { + else if ( filename.endsWith( ".txt" ) ) { + String line1 = getLine( fileToParse, 0 ); + if ( line1.startsWith( "Possible " ) ) { + tr = new SourceMeterReader().parse( fileToParse ); + } + } - // Handle XML results files where the 1st or 2nd line indicates the tool type + else if ( filename.endsWith( ".xml" ) ) { - String line1 = getLine( fileToParse, 0 ); - String line2 = getLine( fileToParse, 1 ); + // Handle XML results files where the 1st or 2nd line indicates the tool type - if ( line2.startsWith( " " )) { - tr = new ThunderScanReader().parse(fileToParse); - } + String line1 = getLine( fileToParse, 0 ); + String line2 = getLine( fileToParse, 1 ); - else if ( line2.startsWith( "" )) { + tr = new ThunderScanReader().parse(fileToParse); + } - else if ( line2.toLowerCase().startsWith( " -1 ) { - tr.setTool( tr.getTool() + "-OnDemand" ); - } - } finally { - br.close(); - } + Files.copy(source, outputFile.toPath(), StandardCopyOption.REPLACE_EXISTING); + + BufferedReader br = new BufferedReader(new FileReader(outputFile)); + try { + StringBuilder sb = new StringBuilder(); + String line = br.readLine(); + + // Only read the first 3 lines and the answer is near the top of the file. + int i = 1; + while (line != null && i++ <= 3) { + sb.append(line); + line = br.readLine(); + } + if ( sb.indexOf("Fortify-FOD-") > -1 ) { + tr.setTool( tr.getTool() + "-OnDemand" ); + } + } finally { + br.close(); + } } catch (NoSuchFileException e) { // Do nothing if the filtertemplate.xml file doesn't exist in the .fpr archive } finally { @@ -861,35 +859,35 @@ else if ( filename.endsWith( ".fpr" ) ) { } } - else if ( filename.endsWith( ".log" ) ) { - tr = new ContrastReader().parse( fileToParse ); - } + else if ( filename.endsWith( ".log" ) ) { + tr = new ContrastReader().parse( fileToParse ); + } - else if ( filename.endsWith( ".hcl" ) ) { - tr = new HCLReader().parse( fileToParse ); - } + else if ( filename.endsWith( ".hcl" ) ) { + tr = new HCLReader().parse( fileToParse ); + } - else if ( filename.endsWith( ".hlg" ) ) { - tr = new HdivReader().parse( fileToParse ); - } + else if ( filename.endsWith( ".hlg" ) ) { + tr = new HdivReader().parse( fileToParse ); + } - else if ( filename.endsWith( ".sl" ) ) { - tr = new ShiftLeftReader().parse( fileToParse ); - } + else if ( filename.endsWith( ".sl" ) ) { + tr = new ShiftLeftReader().parse( fileToParse ); + } - else System.out.println("Error: No matching parser found for file: " + filename); - - // If the version # of the tool is specified in the results file name, extract it, and set it. - // For example: Benchmark-1.1-Coverity-results-v1.3.2661-6720.json (the version # is 1.3.2661 in this example). - // This code should also handle: Benchmark-1.1-Coverity-results-v1.3.2661.xml (where the compute time '-6720' isn't specified) - int indexOfVersionMarker = filename.lastIndexOf("-v"); - if ( indexOfVersionMarker != -1) { - String restOfFileName = filename.substring(indexOfVersionMarker+2); - int endIndex = restOfFileName.lastIndexOf('-'); - if (endIndex == -1) endIndex = restOfFileName.lastIndexOf('.'); - String version = restOfFileName.substring(0, endIndex); - tr.setToolVersion(version); - } + else System.out.println("Error: No matching parser found for file: " + filename); + + // If the version # of the tool is specified in the results file name, extract it, and set it. + // For example: Benchmark-1.1-Coverity-results-v1.3.2661-6720.json (the version # is 1.3.2661 in this example). + // This code should also handle: Benchmark-1.1-Coverity-results-v1.3.2661.xml (where the compute time '-6720' isn't specified) + int indexOfVersionMarker = filename.lastIndexOf("-v"); + if ( indexOfVersionMarker != -1) { + String restOfFileName = filename.substring(indexOfVersionMarker+2); + int endIndex = restOfFileName.lastIndexOf('-'); + if (endIndex == -1) endIndex = restOfFileName.lastIndexOf('.'); + String version = restOfFileName.substring(0, endIndex); + tr.setToolVersion(version); + } return tr; } diff --git a/src/main/java/org/owasp/benchmark/score/parsers/AcunetixReader.java b/src/main/java/org/owasp/benchmark/score/parsers/AcunetixReader.java index 2e8bd02f19..2874831066 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/AcunetixReader.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/AcunetixReader.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/score/parsers/CheckmarxIASTReader.java b/src/main/java/org/owasp/benchmark/score/parsers/CheckmarxIASTReader.java index a2a29c0d9c..f787efd29c 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/CheckmarxIASTReader.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/CheckmarxIASTReader.java @@ -3,7 +3,7 @@ *

* This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project For details, please see - * https://www.owasp.org/index.php/Benchmark. + * https://owasp.org/www-project-benchmark/. *

* The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -75,67 +75,64 @@ private static int cweLookup(String checkerKey) case "Missing_X_XSS_Protection_Header": return 693; case "NoSQL_Injection": - return 943; + return 943; case "Open_Redirect": - return 601; + return 601; case "Parameter_Pollution": - return 235; + return 235; case "Parameter_Tampering": - return 99; + return 99; case "Path_Traversal": - return 22; + return 22; case "Second_Order_Command_Injection": - return 77; + return 77; case "Second_Order_LDAP_Injection": - return 90; + return 90; case "Second_Order_Path_Traversal": - return 22; + return 22; case "Second_Order_SQL_Injection": - return 89; + return 89; case "Second_Order_XPath_Injection": - return 643; + return 643; case "Sensitive_Data_Exposure_Credit_Card": - return 311; + return 311; case "Sensitive_Data_Exposure_Email": - return 311; + return 311; case "Sensitive_Data_Exposure_Long_Number": - return 311; + return 311; case "SQL_Injection": - return 89; + return 89; case "Stored_XSS": - return 79; + return 79; case "Successful_Login_Without_Audit": - return 778; + return 778; case "Trust_Boundary_Violation": - return 501; + return 501; case "Weak_Cryptography": - return 327; + return 327; case "Weak_DB_Password": - return 521; + return 521; case "Weak_Hashing": - return 328; + return 328; case "Weak_Random": - return 330; + return 330; case "XPath_Injection": - return 643; + return 643; case "XSS": - return 79; + return 79; case "XXE": - return 611; + return 611; } return 0; } public TestResults parse(File f) throws Exception - { - String dirName ="org/owasp/benchmark/testcode/"; - + { TestResults tr = new TestResults("CxIAST", true, TestResults.ToolType.IAST); java.io.Reader inReader = new java.io.FileReader(f); Iterable records = CSVFormat.RFC4180.withFirstRecordAsHeader().parse(inReader); - for (CSVRecord record : records) - { + for (CSVRecord record : records) { String checkerKey = record.get("Vulnerability Type"); String url = record.get("URL"); // System.out.println("URL = "+url); //For debugging YE @@ -143,23 +140,23 @@ public TestResults parse(File f) throws Exception TestCaseResult tcr = new TestCaseResult(); tcr.setCategory(checkerKey); tcr.setCWE(cweLookup(checkerKey)); - Pattern testCasePattern = Pattern.compile("BenchmarkTest[0-9]{5}"); - Matcher testCaseMatcher = testCasePattern.matcher(url); - if(testCaseMatcher.find()){ - String testCase = testCaseMatcher.group(0); -// System.out.println("testCase = "+testCase+" Test Num = "+testCase.substring(testCase.length()-5, testCase.length())); // For debugging YE - tcr.setTestCaseName(testCase); - //"BenchmarkTest00000" - "BenchmarkTest99999" - tcr.setNumber(Integer.parseInt(testCase.substring(testCase.length()-5, testCase.length()))); + Pattern testCasePattern = Pattern.compile("BenchmarkTest[0-9]{5}"); + Matcher testCaseMatcher = testCasePattern.matcher(url); + if(testCaseMatcher.find()) { + String testCase = testCaseMatcher.group(0); +// System.out.println("testCase = "+testCase+" Test Num = "+testCase.substring(testCase.length()-5, testCase.length())); // For debugging YE + tcr.setTestCaseName(testCase); + //"BenchmarkTest00000" - "BenchmarkTest99999" + tcr.setNumber(Integer.parseInt(testCase.substring(testCase.length()-5, testCase.length()))); if (tcr.getCWE() != 0) { tr.put(tcr); } -// System.out.println(testCase+" "+tcr.getCWE()+" "+tcr.getCategory()); // For debugging YE - } +// System.out.println(testCase+" "+tcr.getCWE()+" "+tcr.getCategory()); // For debugging YE + } } tr.setTime("100"); return tr; } -} \ No newline at end of file +} From a0cf8377ece2a07b8fdaa3e73df48d5c6d33aff6 Mon Sep 17 00:00:00 2001 From: Grant Ongers Date: Sat, 7 Mar 2020 15:08:30 +0000 Subject: [PATCH 19/92] Clean up before CxIAST run --- tools/CxIAST/runBenchmark_wCxIAST.bat | 13 +++++++++++++ tools/CxIAST/runBenchmark_wCxIAST.sh | 11 +++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/tools/CxIAST/runBenchmark_wCxIAST.bat b/tools/CxIAST/runBenchmark_wCxIAST.bat index 8c375a8332..cfedddb160 100644 --- a/tools/CxIAST/runBenchmark_wCxIAST.bat +++ b/tools/CxIAST/runBenchmark_wCxIAST.bat @@ -1,5 +1,18 @@ @ECHO OFF IF EXIST .\cx-launcher.jar ( + IF EXIST .\iast_cache ( + rmdir /q /s .\iast_cache + + IF EXIST .\logs ( + rmdir /q /s .\logs + ) + + ECHO "" + + ECHO Previous Checkmarx IAST results have been removed + + ECHO "" + ) CD ..\.. CALL mvn clean package cargo:run -Pdeploywcxiast diff --git a/tools/CxIAST/runBenchmark_wCxIAST.sh b/tools/CxIAST/runBenchmark_wCxIAST.sh index fb4daae48f..48d27de0f1 100644 --- a/tools/CxIAST/runBenchmark_wCxIAST.sh +++ b/tools/CxIAST/runBenchmark_wCxIAST.sh @@ -2,9 +2,16 @@ if [ -f ./cx-launcher.jar ]; then - if [ -d ./working ]; then + if [ -d ./iast_cache ]; then + + rm -r ./iast_cache + + if [ -d ./logs ]; then + + rm -r ./logs + + fi - rm -r ./working/cache echo "" echo "Previous Checkmarx IAST results in tools/CxIAST removed" echo "" From 9b3b49f7c33d429755f490582fd69adf1acb20da Mon Sep 17 00:00:00 2001 From: Grant Ongers Date: Sat, 7 Mar 2020 23:38:00 +0000 Subject: [PATCH 20/92] Clean up before Seeker run --- tools/seeker/runBenchmark_wSeeker.bat | 1 + tools/seeker/runBenchmark_wSeeker.sh | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/seeker/runBenchmark_wSeeker.bat b/tools/seeker/runBenchmark_wSeeker.bat index 9061f17aa4..7ecab92e7f 100644 --- a/tools/seeker/runBenchmark_wSeeker.bat +++ b/tools/seeker/runBenchmark_wSeeker.bat @@ -1,5 +1,6 @@ @ECHO OFF IF EXIST .\seeker-agent.jar ( + CD ..\.. CALL mvn clean package cargo:run -Pdeploywseeker diff --git a/tools/seeker/runBenchmark_wSeeker.sh b/tools/seeker/runBenchmark_wSeeker.sh index 380334a542..968bcc46cf 100644 --- a/tools/seeker/runBenchmark_wSeeker.sh +++ b/tools/seeker/runBenchmark_wSeeker.sh @@ -2,9 +2,6 @@ if [ -f ./seeker-agent.jar ]; then - if [ -d ./working ]; then - - rm -r ./working/cache echo "" echo "Previous Seeker results in tools/seeker removed" echo "" From 02491c2839d089873c1a90c8e9c860715a4ef98f Mon Sep 17 00:00:00 2001 From: Dave Wichers Date: Mon, 9 Mar 2020 19:51:55 -0400 Subject: [PATCH 21/92] Update BenchmarkScore.java Fix formatting in changed lines to match original file. Delete duplicate code added accidentally for parsing .faast files. --- .../owasp/benchmark/score/BenchmarkScore.java | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java index 396c6f1931..698d2c46f1 100644 --- a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java +++ b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java @@ -644,22 +644,18 @@ private static TestResults readActualResults(File fileToParse) throws Exception String filename = fileToParse.getName(); TestResults tr = null; - if ( filename.endsWith( ".csv" ) ) { - String line1 = getLine( fileToParse, 0 ); - if ( line1.contains("CheckerKey") && line1.contains("LastDetectionURL") ) { - tr = new SeekerReader().parse(fileToParse); - } else if ( line1.contains("CWE") && line1.contains("URL") ) { - tr = new CheckmarxIASTReader().parse(fileToParse); - } - } - - else if ( filename.endsWith( ".ozasmt" ) ) { - tr = new AppScanSourceReader().parse( fileToParse ); - } + if ( filename.endsWith( ".csv" ) ) { + String line1 = getLine( fileToParse, 0 ); + if ( line1.contains("CheckerKey") && line1.contains("LastDetectionURL") ) { + tr = new SeekerReader().parse(fileToParse); + } else if ( line1.contains("CWE") && line1.contains("URL") ) { + tr = new CheckmarxIASTReader().parse(fileToParse); + } + } - else if ( filename.endsWith( ".faast" ) ) { - tr = new FaastReader().parse( fileToParse ); - } + else if ( filename.endsWith( ".ozasmt" ) ) { + tr = new AppScanSourceReader().parse( fileToParse ); + } else if ( filename.endsWith( ".faast" ) ) { tr = new FaastReader().parse( fileToParse ); From 45456911a892738c85e9c755e7b5affd545cac90 Mon Sep 17 00:00:00 2001 From: Dave Wichers Date: Mon, 9 Mar 2020 19:58:13 -0400 Subject: [PATCH 22/92] Update BenchmarkScore.java --- src/main/java/org/owasp/benchmark/score/BenchmarkScore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java index 698d2c46f1..f09743619e 100644 --- a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java +++ b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java @@ -650,7 +650,7 @@ private static TestResults readActualResults(File fileToParse) throws Exception tr = new SeekerReader().parse(fileToParse); } else if ( line1.contains("CWE") && line1.contains("URL") ) { tr = new CheckmarxIASTReader().parse(fileToParse); - } + } else System.out.println("Error: No matching parser found for CSV file: " + filename); } else if ( filename.endsWith( ".ozasmt" ) ) { @@ -667,7 +667,7 @@ else if ( filename.endsWith( ".json" ) ) { tr = new CoverityReader().parse( fileToParse ); } else if ( line2.contains("Vendor") && line2.contains("Checkmarx") ) { tr = new CheckmarxESReader().parse( fileToParse ); - } + } else System.out.println("Error: No matching parser found for JSON file: " + filename); } else if ( filename.endsWith( ".sarif" ) ) { From 2cbdd02078e3bbc87d3078803be5a393c06f44f8 Mon Sep 17 00:00:00 2001 From: davewichers Date: Fri, 13 Mar 2020 17:53:25 -0400 Subject: [PATCH 23/92] Upgrade FindSecBugs plugin and minor improvement to Findbugs scorecard generator to handle a new type of issue now reported by FindSecBugs. --- pom.xml | 2 +- .../score/parsers/FindbugsReader.java | 24 +++++++++++-------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index fbd8091894..ed5f1c032e 100755 --- a/pom.xml +++ b/pom.xml @@ -85,7 +85,7 @@ com.h3xstream.findsecbugs findsecbugs-plugin - 1.9.0 + 1.10.1 diff --git a/src/main/java/org/owasp/benchmark/score/parsers/FindbugsReader.java b/src/main/java/org/owasp/benchmark/score/parsers/FindbugsReader.java index 190ebdaf90..6b24eef436 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/FindbugsReader.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/FindbugsReader.java @@ -128,12 +128,13 @@ else if ( cwe.equals( "326" ) ) { } //This is a fallback mapping for unsupported/old versions of the Find Security Bugs plugin + //as defined in: findsecbugs-plugin/src/main/resources/metadata/findbugs.xml //All important bug patterns have their CWE ID associated in later versions (1.4.3+). switch ( cat ) { //Cookies case "SECIC" : return 614; // insecure cookie use - case "SECCU" : return 00; // servlet cookie - case "SECHOC" : return 00; // HTTP Only not set on cookie - Information Leak / Disclosure (CWE-200)?? + case "SECCU" : return 00; // servlet cookie + case "SECHOC" : return 00; // HTTP Only not set on cookie - Information Leak / Disclosure (CWE-200)?? //Injections case "SECSQLIHIB" : return 564; // Hibernate Injection, child of SQL Injection @@ -156,7 +157,7 @@ else if ( cwe.equals( "326" ) ) { //Weak encryption case "SECDU" : return 327; // weak encryption DES - case "CIPINT" : return 327; // weak encryption - cipher with no integrity + case "CIPINT" : return 327; // weak encryption - cipher with no integrity case "PADORA" : return 327; // padding oracle -- FIXME: probably wrong case "STAIV" : return 329; // static initialization vector for crypto @@ -173,19 +174,22 @@ else if ( cwe.equals( "326" ) ) { case "SECXSS2" : return 79; // XSS //XXE - case "SECXXEDOC" : return 611; // XXE - case "SECXXEREAD" : return 611; // XXE - case "SECXXESAX" : return 611; // XXE + case "SECXXEDOC" : return 611; // XXE + case "SECXXEREAD" : return 611; // XXE + case "SECXXESAX" : return 611; // XXE //Input sources - case "SECSP" : return 00; // servlet parameter - not a vuln - case "SECSH" : return 00; // servlet header -- not a vuln + case "SECSP" : return 00; // servlet parameter - not a vuln + case "SECSH" : return 00; // servlet header - not a vuln case "SECSHR" : return 00; // Use of Request Header -- spoofable case "SECSSQ" : return 00; // servlet query - not a vuln //Technology detection - case "SECSC" : return 00; // found Spring endpoint - not a vuln - case "SECJRS" : return 00; // JAX-RS Endpoint + case "SECSC" : return 00; // found Spring endpoint - not a vuln + case "SECJRS" : return 00; // JAX-RS Endpoint + + //Configuration + case "SECOPFP" : return 00; // Overly Permissive File Permissions default : System.out.println( "Unknown vuln category for FindBugs: " + cat ); } From c41dade101de4f046b373dd8cc445eeff9d64bcd Mon Sep 17 00:00:00 2001 From: Jason Khoo Date: Wed, 18 Mar 2020 20:41:31 +0800 Subject: [PATCH 24/92] Add files via upload --- tools/CxIAST/readme.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/CxIAST/readme.txt b/tools/CxIAST/readme.txt index baf0599e18..d4cd8a005c 100644 --- a/tools/CxIAST/readme.txt +++ b/tools/CxIAST/readme.txt @@ -1,5 +1,5 @@ -DISCLAIMER: OWASP does not endorse any commercial tools, including this one. Benchmark support for this tool is simply for user convenience and should not be considered an endorsement of this tool. - -Checkmarx IAST is a commercial tool. If you are interested in running Contrast on the Benchmark, you'll have to get a license for it from the vendor just like you would for any commercial tool. Once you have it, you need to unzip the cxiast-java-agent.zip file in this directory in order to run the Benchmark with Checkmarx IAST using one of the runBenchmark_wCxIAST scripts, and then crawl the Benchmark to generate scan results with one of the runCrawler scripts. - -See the Tool Scanning Tips page at OWASP (https://www.owasp.org/index.php/Benchmark#tab=Tool_Scanning_Tips) for the latest instructions on how to scan the Benchmark with any vulnerability detection tool, including Checkmarx IAST. +DISCLAIMER: OWASP does not endorse any commercial tools, including this one. Benchmark support for this tool is simply for user convenience and should not be considered an endorsement of this tool. + +Checkmarx CxIAST is a commercial tool. If you are interested in running Checkmarx CxIAST on the Benchmark, you'll have to get a license for it from the vendor just like you would for any commercial tool. Once you have it, you need to unzip the cxiast-java-agent.zip file in this directory in order to run the Benchmark with Checkmarx CxIAST using one of the runBenchmark_wCxIAST scripts, and then crawl the Benchmark to generate scan results with one of the runCrawler scripts. + +See the Tool Scanning Tips page at OWASP (https://www.owasp.org/index.php/Benchmark#tab=Tool_Scanning_Tips) for the latest instructions on how to scan the Benchmark with any vulnerability detection tool, including Checkmarx CxIAST. From c98791ab922fb6c440c931b27fa44bb0c8ed3c19 Mon Sep 17 00:00:00 2001 From: Jason Khoo Date: Wed, 18 Mar 2020 21:00:32 +0800 Subject: [PATCH 25/92] Add files via upload --- tools/CxIAST/runBenchmark_wCxIAST_v2.bat | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tools/CxIAST/runBenchmark_wCxIAST_v2.bat diff --git a/tools/CxIAST/runBenchmark_wCxIAST_v2.bat b/tools/CxIAST/runBenchmark_wCxIAST_v2.bat new file mode 100644 index 0000000000..3cd635dcdd --- /dev/null +++ b/tools/CxIAST/runBenchmark_wCxIAST_v2.bat @@ -0,0 +1,20 @@ +@ECHO OFF + +IF EXIST .\CxIAST.bat ( + + IF EXIST .\iast_cache ( + rmdir /q /s .\iast_cache + + ECHO Previous Checkmarx CxIAST results have been removed + ) + + ECHO Starting Checkmarx CxIAST Agent on Benchmark + CxIAST.bat -e ..\..\RunBenchmark.bat + +) ELSE ( + ECHO Checkmarx CxIAST is a commercial product, so you need a licensed version of Checkmarx CxIAST in order to run it on the Benchmark. If you have access to Checkmarx CxIAST and want to run the Benchmark against it you will have to: + ECHO * download the CxIAST Agent for Java ^(cxiast-java-agent.zip^) from the Server; + ECHO * put it into the /tools/CxIAST folder; + ECHO * unzip it; and then + ECHO * rerun this script. +) From 01ae48bf8072f2f03b8f1efc3ff815d012bfc263 Mon Sep 17 00:00:00 2001 From: Jason Khoo Date: Thu, 19 Mar 2020 00:19:49 +0800 Subject: [PATCH 26/92] Delete runBenchmark_wCxIAST_v2.bat --- tools/CxIAST/runBenchmark_wCxIAST_v2.bat | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 tools/CxIAST/runBenchmark_wCxIAST_v2.bat diff --git a/tools/CxIAST/runBenchmark_wCxIAST_v2.bat b/tools/CxIAST/runBenchmark_wCxIAST_v2.bat deleted file mode 100644 index 3cd635dcdd..0000000000 --- a/tools/CxIAST/runBenchmark_wCxIAST_v2.bat +++ /dev/null @@ -1,20 +0,0 @@ -@ECHO OFF - -IF EXIST .\CxIAST.bat ( - - IF EXIST .\iast_cache ( - rmdir /q /s .\iast_cache - - ECHO Previous Checkmarx CxIAST results have been removed - ) - - ECHO Starting Checkmarx CxIAST Agent on Benchmark - CxIAST.bat -e ..\..\RunBenchmark.bat - -) ELSE ( - ECHO Checkmarx CxIAST is a commercial product, so you need a licensed version of Checkmarx CxIAST in order to run it on the Benchmark. If you have access to Checkmarx CxIAST and want to run the Benchmark against it you will have to: - ECHO * download the CxIAST Agent for Java ^(cxiast-java-agent.zip^) from the Server; - ECHO * put it into the /tools/CxIAST folder; - ECHO * unzip it; and then - ECHO * rerun this script. -) From 57c406ebd3e2127a1d118fc4edfd5f5dfbbde934 Mon Sep 17 00:00:00 2001 From: davewichers Date: Tue, 24 Mar 2020 15:42:57 -0400 Subject: [PATCH 27/92] Fix some OWASP site links to point to new OWASP site. --- README.md | 4 ++-- tools/Contrast/readme.txt | 2 +- tools/CxIAST/readme.txt | 2 +- tools/seeker/readme.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 80111f6ae0..03b9ebdb1b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # OWASP Benchmark -The OWASP Benchmark Project is a Java test suite designed to verify the speed and accuracy of vulnerability detection tools. It is a fully runnable open source web application that can be analyzed by any type of Application Security Testing (AST) tool, including SAST, DAST (like OWASP ZAP), and IAST tools. The intent is that all the vulnerabilities deliberately included in and scored by the Benchmark are actually exploitable so its a fair test for any kind of application vulnerability detection tool. The Benchmark also includes scorecard generators for numerous open source and commercial AST tools, and the set of supported tools is growing all the time. +The OWASP Benchmark Project is a Java test suite designed to verify the speed and accuracy of vulnerability detection tools. It is a fully runnable open source web application that can be analyzed by any type of Application Security Testing (AST) tool, including SAST, DAST (like OWASP ZAP), and IAST tools. The intent is that all the vulnerabilities deliberately included in and scored by the Benchmark are actually exploitable so its a fair test for any kind of application vulnerability detection tool. The Benchmark also includes scorecard generators for numerous open source and commercial AST tools, and the set of supported tools is growing all the time. -The project documentation is all on the OWASP site at the OWASP Benchmark project pages. Please refer to that site for all the project details. +The project documentation is all on the OWASP site at the OWASP Benchmark project pages. Please refer to that site for all the project details. The current latest release is v1.2. Note that all the releases that are available here: https://github.com/OWASP/Benchmark/releases, are historical. The latest release is always available live by simply cloning or pulling the head of this repository (i.e., git pull). diff --git a/tools/Contrast/readme.txt b/tools/Contrast/readme.txt index fd43a987d3..4d5456a3b1 100644 --- a/tools/Contrast/readme.txt +++ b/tools/Contrast/readme.txt @@ -2,6 +2,6 @@ DISCLAIMER: OWASP does not endorse any commercial tools, including this one. Ben Contrast is a commercial tool. If you are interested in running Contrast on the Benchmark, you'll have to get a license for it from the vendor just like you would for any commercial tool. Once you have it, you need to place the contrast.jar file in this directory in order to run the Benchmark with Contrast using one of the runBenchmark_wContrast scripts, and then crawl the Benchmark to generate scan results with one of the runCrawler scripts. -See the Tool Scanning Tips page at OWASP (https://www.owasp.org/index.php/Benchmark#tab=Tool_Scanning_Tips) for the latest instructions on how to scan the Benchmark with any vulnerability detection tool, including Contrast. +See the Tool Scanning Tips page at OWASP (https://owasp.org/www-project-benchmark/#div-scanning_tips) for the latest instructions on how to scan the Benchmark with any vulnerability detection tool, including Contrast. Contrast has released Contrast Community Edition (CE), which is free, subject to the terms of its use. If you don't have a commercial license for Contrast, it is likely you can use Contrast CE on Benchmark. See: https://www.contrastsecurity.com/community-edition-lp for more information. diff --git a/tools/CxIAST/readme.txt b/tools/CxIAST/readme.txt index d4cd8a005c..5ede8c7cbe 100644 --- a/tools/CxIAST/readme.txt +++ b/tools/CxIAST/readme.txt @@ -2,4 +2,4 @@ DISCLAIMER: OWASP does not endorse any commercial tools, including this one. Ben Checkmarx CxIAST is a commercial tool. If you are interested in running Checkmarx CxIAST on the Benchmark, you'll have to get a license for it from the vendor just like you would for any commercial tool. Once you have it, you need to unzip the cxiast-java-agent.zip file in this directory in order to run the Benchmark with Checkmarx CxIAST using one of the runBenchmark_wCxIAST scripts, and then crawl the Benchmark to generate scan results with one of the runCrawler scripts. -See the Tool Scanning Tips page at OWASP (https://www.owasp.org/index.php/Benchmark#tab=Tool_Scanning_Tips) for the latest instructions on how to scan the Benchmark with any vulnerability detection tool, including Checkmarx CxIAST. +See the Tool Scanning Tips page at OWASP (https://owasp.org/www-project-benchmark/#div-scanning_tips) for the latest instructions on how to scan the Benchmark with any vulnerability detection tool, including Checkmarx CxIAST. diff --git a/tools/seeker/readme.txt b/tools/seeker/readme.txt index 0738841088..d14d47f740 100644 --- a/tools/seeker/readme.txt +++ b/tools/seeker/readme.txt @@ -2,4 +2,4 @@ DISCLAIMER: OWASP does not endorse any commercial tools, including this one. Ben Seeker is a commercial tool. If you are interested in running Seeker on the Benchmark, you'll have to get a license for it from the vendor just like you would for any commercial tool. Once you have it, you need to unzip the seeker-JAVA-agent.zip file in this directory in order to run the Benchmark with Seeker using one of the runBenchmark_wSeeker scripts, and then crawl the Benchmark to generate scan results with one of the runCrawler scripts. -See the Tool Scanning Tips page at OWASP (https://www.owasp.org/index.php/Benchmark#tab=Tool_Scanning_Tips) for the latest instructions on how to scan the Benchmark with any vulnerability detection tool, including Seeker. +See the Tool Scanning Tips page at OWASP (https://owasp.org/www-project-benchmark/#div-scanning_tips) for the latest instructions on how to scan the Benchmark with any vulnerability detection tool, including Seeker. From 9b71f9de3f25a3a8da4d68aa0858646246b77076 Mon Sep 17 00:00:00 2001 From: davewichers Date: Wed, 25 Mar 2020 18:41:14 -0400 Subject: [PATCH 28/92] Update Benchmark to address issue #92. Replaces the 3 crypto algorithms with the 3 agreed to during the discussion of the issue. --- pom.xml | 22 +++++++++++-- .../org/owasp/benchmark/helpers/Startup.java | 33 +++++++++++++++++++ .../org/owasp/benchmark/helpers/Utils.java | 6 ++-- .../testcode/BenchmarkTest00054.java | 33 ++++++++++--------- .../testcode/BenchmarkTest00058.java | 16 ++++----- .../testcode/BenchmarkTest00059.java | 32 +++++++++--------- .../testcode/BenchmarkTest00121.java | 33 ++++++++++--------- .../testcode/BenchmarkTest00122.java | 33 ++++++++++--------- .../testcode/BenchmarkTest00126.java | 16 ++++----- .../testcode/BenchmarkTest00127.java | 32 +++++++++--------- .../testcode/BenchmarkTest00128.java | 32 +++++++++--------- .../testcode/BenchmarkTest00129.java | 32 +++++++++--------- .../testcode/BenchmarkTest00130.java | 32 +++++++++--------- .../testcode/BenchmarkTest00211.java | 16 ++++----- .../testcode/BenchmarkTest00212.java | 16 ++++----- .../testcode/BenchmarkTest00213.java | 32 +++++++++--------- .../testcode/BenchmarkTest00214.java | 32 +++++++++--------- .../testcode/BenchmarkTest00255.java | 33 ++++++++++--------- .../testcode/BenchmarkTest00345.java | 16 ++++----- .../testcode/BenchmarkTest00352.java | 16 ++++----- .../testcode/BenchmarkTest00353.java | 16 ++++----- .../testcode/BenchmarkTest00357.java | 32 +++++++++--------- .../testcode/BenchmarkTest00358.java | 32 +++++++++--------- .../testcode/BenchmarkTest00443.java | 33 ++++++++++--------- .../testcode/BenchmarkTest00447.java | 16 ++++----- .../testcode/BenchmarkTest00450.java | 32 +++++++++--------- .../testcode/BenchmarkTest00451.java | 32 +++++++++--------- .../testcode/BenchmarkTest00524.java | 32 +++++++++--------- .../testcode/BenchmarkTest00612.java | 33 ++++++++++--------- .../testcode/BenchmarkTest00618.java | 32 +++++++++--------- .../testcode/BenchmarkTest00686.java | 33 ++++++++++--------- .../testcode/BenchmarkTest00687.java | 33 ++++++++++--------- .../testcode/BenchmarkTest00775.java | 33 ++++++++++--------- .../testcode/BenchmarkTest00776.java | 33 ++++++++++--------- .../testcode/BenchmarkTest00777.java | 33 ++++++++++--------- .../testcode/BenchmarkTest00778.java | 33 ++++++++++--------- .../testcode/BenchmarkTest00782.java | 16 ++++----- .../testcode/BenchmarkTest00854.java | 33 ++++++++++--------- .../testcode/BenchmarkTest00858.java | 16 ++++----- .../testcode/BenchmarkTest00942.java | 33 ++++++++++--------- .../testcode/BenchmarkTest00944.java | 16 ++++----- .../testcode/BenchmarkTest01019.java | 16 ++++----- .../testcode/BenchmarkTest01021.java | 32 +++++++++--------- .../testcode/BenchmarkTest01022.java | 32 +++++++++--------- .../testcode/BenchmarkTest01104.java | 16 ++++----- .../testcode/BenchmarkTest01108.java | 32 +++++++++--------- .../testcode/BenchmarkTest01147.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01151.java | 16 ++++----- .../testcode/BenchmarkTest01152.java | 16 ++++----- .../testcode/BenchmarkTest01153.java | 32 +++++++++--------- .../testcode/BenchmarkTest01226.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01227.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01319.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01324.java | 16 ++++----- .../testcode/BenchmarkTest01400.java | 16 ++++----- .../testcode/BenchmarkTest01401.java | 32 +++++++++--------- .../testcode/BenchmarkTest01481.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01482.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01487.java | 16 ++++----- .../testcode/BenchmarkTest01488.java | 16 ++++----- .../testcode/BenchmarkTest01563.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01564.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01567.java | 32 +++++++++--------- .../testcode/BenchmarkTest01635.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01636.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01640.java | 16 ++++----- .../testcode/BenchmarkTest01737.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01824.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01825.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01826.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01827.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01899.java | 16 ++++----- .../testcode/BenchmarkTest01901.java | 32 +++++++++--------- .../testcode/BenchmarkTest01975.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01976.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01977.java | 33 ++++++++++--------- .../testcode/BenchmarkTest01979.java | 16 ++++----- .../testcode/BenchmarkTest01982.java | 32 +++++++++--------- .../testcode/BenchmarkTest02021.java | 16 ++++----- .../testcode/BenchmarkTest02024.java | 32 +++++++++--------- .../testcode/BenchmarkTest02103.java | 32 +++++++++--------- .../testcode/BenchmarkTest02190.java | 33 ++++++++++--------- .../testcode/BenchmarkTest02191.java | 33 ++++++++++--------- .../testcode/BenchmarkTest02289.java | 33 ++++++++++--------- .../testcode/BenchmarkTest02296.java | 32 +++++++++--------- .../testcode/BenchmarkTest02297.java | 32 +++++++++--------- .../testcode/BenchmarkTest02298.java | 32 +++++++++--------- .../testcode/BenchmarkTest02371.java | 33 ++++++++++--------- .../testcode/BenchmarkTest02459.java | 33 ++++++++++--------- .../testcode/BenchmarkTest02460.java | 33 ++++++++++--------- .../testcode/BenchmarkTest02461.java | 16 ++++----- .../testcode/BenchmarkTest02547.java | 33 ++++++++++--------- .../testcode/BenchmarkTest02551.java | 16 ++++----- .../testcode/BenchmarkTest02552.java | 32 +++++++++--------- .../testcode/BenchmarkTest02659.java | 33 ++++++++++--------- .../testcode/BenchmarkTest02662.java | 16 ++++----- src/main/resources/benchmark.properties | 2 +- 97 files changed, 1350 insertions(+), 1313 deletions(-) diff --git a/pom.xml b/pom.xml index ed5f1c032e..e064f980b3 100755 --- a/pom.xml +++ b/pom.xml @@ -733,6 +733,12 @@ But it requires getting all the Log4j2 stuff configured right, and haven't done 4.4.11 + + org.bouncycastle + bcprov-jdk15on + 1.64 + + + schema resources on the classpath. Without this exclusion LDAP actually breaks + The v1.5.7 version of this library apparently uses 0.9.18 of this dependency. --> org.apache.directory.shared shared-ldap-schema + + + bouncycastle + bcprov-jdk15 + + + org.apache.directory.shared + shared-all + 0.9.19 + + org.jfree jfreechart diff --git a/src/main/java/org/owasp/benchmark/helpers/Startup.java b/src/main/java/org/owasp/benchmark/helpers/Startup.java index 21ebc1a24c..b3b60a1d58 100644 --- a/src/main/java/org/owasp/benchmark/helpers/Startup.java +++ b/src/main/java/org/owasp/benchmark/helpers/Startup.java @@ -1,9 +1,30 @@ +/** + * OWASP Benchmark Project + * + * This file is part of the Open Web Application Security Project (OWASP) + * Benchmark Project For details, please see + * https://owasp.org/www-project-benchmark/. + * + * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms + * of the GNU General Public License as published by the Free Software Foundation, version 2. + * + * The OWASP Benchmark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details + * + * @author Juan Gama + * @created 2015 + */ + package org.owasp.benchmark.helpers; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import javax.servlet.annotation.WebListener; +import java.security.Security; +import org.bouncycastle.jce.provider.BouncyCastleProvider; + @WebListener public class Startup implements ServletContextListener { @@ -11,10 +32,22 @@ public class Startup implements ServletContextListener { public void contextInitialized(ServletContextEvent sce) { System.out.println("Initializing benchmark"); try { + // I believe this is done to force the static initializers in this class to run now Class.forName("org.owasp.benchmark.helpers.DatabaseHelper"); + + // Have to add BouncyCastle as crypto provider for some of the Crypto test cases + Security.addProvider(new BouncyCastleProvider()); + } catch (ClassNotFoundException e) { + System.out.println("ERROR: Could not find expected DatabaseHelper class."); + e.printStackTrace(); + } catch (Exception e) { + System.out.println("ERROR: Could not find or add BouncyCastle as crypto provider."); e.printStackTrace(); } + + if (Security.getProvider("BC") == null) + System.out.println("ERROR: Could not add Bouncy Castle provider for some reason."); } @Override diff --git a/src/main/java/org/owasp/benchmark/helpers/Utils.java b/src/main/java/org/owasp/benchmark/helpers/Utils.java index 6ae7dd34ec..5aec02ebc8 100644 --- a/src/main/java/org/owasp/benchmark/helpers/Utils.java +++ b/src/main/java/org/owasp/benchmark/helpers/Utils.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project For details, please see - * https://www.owasp.org/index.php/Benchmark. + * https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * - * @author Nick Sanidas Aspect Security + * @author Nick Sanidas * @created 2015 */ @@ -530,7 +530,7 @@ public static List readCSVFailedTC(String csvFile) { public static Cipher getCipher() { if (cipher == null) { try { - cipher = javax.crypto.Cipher.getInstance("RSA/ECB/PKCS1Padding", "SunJCE"); + cipher = javax.crypto.Cipher.getInstance("RSA/ECB/OAEPWithSHA-512AndMGF1Padding", "SunJCE"); // Prepare the cipher to encrypt java.security.KeyPairGenerator keyGen = java.security.KeyPairGenerator.getInstance("RSA"); keyGen.initialize(4096); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00054.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00054.java index e4ef2e6f21..caf39dd9df 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00054.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00054.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -64,6 +64,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -75,13 +76,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -111,43 +112,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00058.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00058.java index 1bc65991e4..41863066ef 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00058.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00058.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -66,12 +66,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -132,7 +132,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00059.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00059.java index b8adad2571..fd537a881f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00059.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00059.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -74,17 +74,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -114,39 +112,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00121.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00121.java index c340deb58c..af1ac72fb6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00121.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00121.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -64,6 +64,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -75,13 +76,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -111,43 +112,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00122.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00122.java index 9363eb0099..ea7c3a7b7d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00122.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00122.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -54,6 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -65,13 +66,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -101,43 +102,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00126.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00126.java index ab6ccd6dfd..d932a62834 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00126.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00126.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -66,12 +66,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -132,7 +132,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00127.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00127.java index 0ed2c89624..fab72bb1fd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00127.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00127.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,17 +73,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -113,39 +111,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00128.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00128.java index f0266c3276..193380f8bc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00128.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00128.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -69,17 +69,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -109,39 +107,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00129.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00129.java index 05813ebf67..561b45aad6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00129.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00129.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,17 +63,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -103,39 +101,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00130.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00130.java index dc4b88b95d..1d4db2601f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00130.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00130.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -82,17 +82,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -122,39 +120,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00211.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00211.java index 218370e3ae..18993aa65a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00211.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00211.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -75,12 +75,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -141,7 +141,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00212.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00212.java index 29d5f2371c..99baae9609 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00212.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00212.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -71,12 +71,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -137,7 +137,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00213.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00213.java index a512c30336..09d4a6742d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00213.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00213.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -82,17 +82,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -122,39 +120,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00214.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00214.java index 3941faf1bf..90422e3172 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00214.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00214.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -72,17 +72,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -112,39 +110,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00255.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00255.java index bfc051bfd5..fec39a0d1b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00255.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00255.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -59,6 +59,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -70,13 +71,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -106,43 +107,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00345.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00345.java index 2e888403f3..83f406d9da 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00345.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00345.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -50,12 +50,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -116,7 +116,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00352.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00352.java index 09586fa1e1..b78216c395 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00352.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00352.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -64,12 +64,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -130,7 +130,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00353.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00353.java index 020fe126bc..0d554e538f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00353.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00353.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -57,12 +57,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -123,7 +123,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00357.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00357.java index eecfa9a94f..48174bb831 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00357.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00357.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -58,17 +58,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -98,39 +96,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00358.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00358.java index 373b930063..d98d5b10e9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00358.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00358.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -59,17 +59,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -99,39 +97,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00443.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00443.java index e45f0736e0..5fa178fce7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00443.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00443.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -60,6 +60,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -71,13 +72,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -107,43 +108,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00447.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00447.java index 9c46ef1c27..a77aa96dab 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00447.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00447.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -75,12 +75,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -141,7 +141,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00450.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00450.java index e3b7835de8..88776e5c2e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00450.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00450.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -76,17 +76,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -116,39 +114,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00451.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00451.java index 9969695a2e..8e7ea7ff1f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00451.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00451.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -69,17 +69,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -109,39 +107,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00524.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00524.java index 9d3c970075..32ce618d7a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00524.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00524.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -85,17 +85,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -125,39 +123,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00612.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00612.java index 79b99771e8..1cf6b5508a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00612.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00612.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -56,6 +56,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -67,13 +68,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -103,43 +104,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00618.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00618.java index 4996063b83..6e6163158f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00618.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00618.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -65,17 +65,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -105,39 +103,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00686.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00686.java index 2af7991836..f60483af38 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00686.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00686.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -56,6 +56,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -67,13 +68,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -103,43 +104,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00687.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00687.java index 074ee117cc..837d49877a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00687.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00687.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -58,6 +58,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -69,13 +70,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -105,43 +106,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00775.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00775.java index 2c6bbc96d9..d99c4a4e0a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00775.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00775.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,6 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -84,13 +85,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -120,43 +121,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00776.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00776.java index b4310402a5..8b4ee1e4c5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00776.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00776.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -67,6 +67,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -78,13 +79,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -114,43 +115,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00777.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00777.java index bc9a29a0b1..859c95f440 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00777.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00777.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -69,6 +69,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -80,13 +81,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -116,43 +117,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00778.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00778.java index c06abd08bd..559731e938 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00778.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00778.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -69,6 +69,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -80,13 +81,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -116,43 +117,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00782.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00782.java index 8bfba85f77..73e02fed25 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00782.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00782.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -84,12 +84,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -150,7 +150,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00854.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00854.java index 6dc913631f..e406e72803 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00854.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00854.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -55,6 +55,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -66,13 +67,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -102,43 +103,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00858.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00858.java index 70c85d0d5a..a44742cfbc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00858.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00858.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -57,12 +57,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -123,7 +123,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00942.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00942.java index 5c13b1549f..c44026168d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00942.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00942.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -62,6 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -73,13 +74,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -109,43 +110,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00944.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00944.java index d08c326bfb..d0409dea04 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00944.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00944.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -64,12 +64,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -130,7 +130,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01019.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01019.java index 53b6e5a3ac..aad4ca32c4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01019.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01019.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -54,12 +54,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -120,7 +120,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01021.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01021.java index 9c239db5e6..9aa7e1fd81 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01021.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01021.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -61,17 +61,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -101,39 +99,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01022.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01022.java index a331bf6663..8d001c7a53 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01022.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01022.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -61,17 +61,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -101,39 +99,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01104.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01104.java index 420d581cdb..fb3005f5f7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01104.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01104.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,12 +63,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -129,7 +129,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01108.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01108.java index 899555b026..69606202e1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01108.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01108.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -70,17 +70,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -110,39 +108,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01147.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01147.java index 2e2eb6cfde..30a1855415 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01147.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01147.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -54,6 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -65,13 +66,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -101,43 +102,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01151.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01151.java index 51a3570f7c..32e8f9435f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01151.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01151.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -56,12 +56,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -122,7 +122,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01152.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01152.java index 3d7c955ea6..807dbc612e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01152.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01152.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -56,12 +56,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -122,7 +122,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01153.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01153.java index 818087ce05..6e99f56a01 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01153.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01153.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,17 +63,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -103,39 +101,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01226.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01226.java index dafc0c151f..e42ece12e1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01226.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01226.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -47,6 +47,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -58,13 +59,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -94,43 +95,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01227.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01227.java index 92ce0b35b8..33f995ed81 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01227.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01227.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -47,6 +47,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -58,13 +59,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -94,43 +95,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01319.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01319.java index 9537b8c3d1..af93ce3872 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01319.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01319.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -52,6 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -63,13 +64,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -99,43 +100,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01324.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01324.java index e17c34c935..4c500b58fd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01324.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01324.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -54,12 +54,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -120,7 +120,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01400.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01400.java index ac4f0065fc..33ae95cf9c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01400.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01400.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,12 +63,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -129,7 +129,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01401.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01401.java index 20952c5cf8..0ec9d41ad1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01401.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01401.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -70,17 +70,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -110,39 +108,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01481.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01481.java index a7ef18cb49..722a23cd80 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01481.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01481.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -48,6 +48,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -59,13 +60,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -95,43 +96,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01482.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01482.java index a7faa12c7b..95dec979d8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01482.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01482.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -48,6 +48,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -59,13 +60,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -95,43 +96,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01487.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01487.java index 322e173741..9ca848f0c6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01487.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01487.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -50,12 +50,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -116,7 +116,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01488.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01488.java index fe57766ca0..ce7603eb37 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01488.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01488.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -50,12 +50,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -116,7 +116,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01563.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01563.java index 31cf8b5085..b8acda3a32 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01563.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01563.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -50,6 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -61,13 +62,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -97,43 +98,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01564.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01564.java index 5fea3d3113..5af5abfde6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01564.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01564.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -50,6 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -61,13 +62,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -97,43 +98,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01567.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01567.java index e077cb9775..c47c5f1658 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01567.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01567.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -59,17 +59,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -99,39 +97,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01635.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01635.java index 733a590177..cc0f792637 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01635.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01635.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -61,6 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -72,13 +73,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -108,43 +109,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01636.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01636.java index b395e77ea3..a127ee29e8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01636.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01636.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -61,6 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -72,13 +73,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -108,43 +109,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01640.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01640.java index 4490513c36..334bda028f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01640.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01640.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,12 +63,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -129,7 +129,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01737.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01737.java index 0e98d0303e..fb885142e5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01737.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01737.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -47,6 +47,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -58,13 +59,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -94,43 +95,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01824.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01824.java index fef82cb820..0d38bab092 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01824.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01824.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -62,6 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -73,13 +74,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -109,43 +110,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01825.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01825.java index 3bc5a6c969..712a76afa6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01825.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01825.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -62,6 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -73,13 +74,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -109,43 +110,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01826.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01826.java index f88f8d3a65..6d16e54b2c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01826.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01826.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -62,6 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -73,13 +74,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -109,43 +110,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01827.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01827.java index f1dd356413..3068125f13 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01827.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01827.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -62,6 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -73,13 +74,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -109,43 +110,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01899.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01899.java index bad56a6f25..c99f1fc842 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01899.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01899.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -54,12 +54,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -120,7 +120,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01901.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01901.java index a3786348c1..25848278d6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01901.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01901.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,17 +61,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -101,39 +99,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01975.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01975.java index 2e6e819e9e..d6c3b9a870 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01975.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01975.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,6 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -72,13 +73,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -108,43 +109,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01976.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01976.java index 1850f358ac..c262f9a65c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01976.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01976.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,6 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -72,13 +73,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -108,43 +109,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01977.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01977.java index 3b40ce6f42..fe2b20403d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01977.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01977.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,6 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -72,13 +73,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -108,43 +109,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01979.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01979.java index b206ec8ead..e71d530190 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01979.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01979.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,12 +63,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -129,7 +129,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01982.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01982.java index f47e8dba12..6b9206c7ba 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01982.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01982.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,17 +70,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -110,39 +108,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02021.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02021.java index 0622fac2d8..919a834e61 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02021.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02021.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -56,12 +56,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -122,7 +122,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02024.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02024.java index 15940ffd79..862a4cac2c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02024.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02024.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,17 +63,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -103,39 +101,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02103.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02103.java index 4a29575265..4da41f79ed 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02103.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02103.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -56,17 +56,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -96,39 +94,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02190.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02190.java index 9ea9f3c585..5e613ac67f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02190.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02190.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,6 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -63,13 +64,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -99,43 +100,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02191.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02191.java index e68ae15e02..14731f10b4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02191.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02191.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,6 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -63,13 +64,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -99,43 +100,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02289.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02289.java index a7fda7fa55..7b00e9b1e2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02289.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02289.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,6 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -72,13 +73,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -108,43 +109,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02296.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02296.java index 63b1da1ac9..98e3e465ea 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02296.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02296.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,17 +70,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -110,39 +108,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02297.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02297.java index 0bf4ad626e..62181731df 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02297.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02297.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,17 +70,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -110,39 +108,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02298.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02298.java index 1c889a0cbe..ca108437a0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02298.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02298.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,17 +70,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -110,39 +108,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02371.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02371.java index 5088d39f54..e362b8b2d7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02371.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02371.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -48,6 +48,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -59,13 +60,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -95,43 +96,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02459.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02459.java index c2ee35ca65..7999a31222 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02459.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02459.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -50,6 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -61,13 +62,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -97,43 +98,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02460.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02460.java index dad01b94c4..0416872de4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02460.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02460.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -50,6 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -61,13 +62,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -97,43 +98,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02461.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02461.java index f68c17ac85..80a61dc71d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02461.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02461.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,12 +52,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -118,7 +118,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02547.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02547.java index 5bde6d0087..62e258291c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02547.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02547.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,6 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -72,13 +73,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -108,43 +109,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02551.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02551.java index 54df580d25..f09b9aee4f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02551.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02551.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,12 +63,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -129,7 +129,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02552.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02552.java index 1be7375fdd..a6de8994b8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02552.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02552.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,17 +70,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // byte[] iv = random.generateSeed(16); try { - java.util.Properties benchmarkprops = new java.util.Properties(); - benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); + java.util.Properties benchmarkprops = new java.util.Properties(); + benchmarkprops.load(this.getClass().getClassLoader().getResourceAsStream("benchmark.properties")); String algorithm = benchmarkprops.getProperty("cryptoAlg2", "AES/ECB/PKCS5Padding"); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance(algorithm); - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESede").generateKey(); -// java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); -// c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); - + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -110,39 +108,39 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); // } catch (java.security.InvalidAlgorithmParameterException e) { // response.getWriter().println( -//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +//"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" //); -// e.printStackTrace(response.getWriter()); +//e.printStackTrace(response.getWriter()); // throw new ServletException(e); } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02659.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02659.java index 8b32222cc0..9f6c830c64 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02659.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02659.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -47,6 +47,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // Code based on example from: // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ + // AES/GCM example from: https://javainterviewpoint.com/java-aes-256-gcm-encryption-and-decryption/ // 16-byte initialization vector // byte[] iv = { // (byte)0xB2, (byte)0x12, (byte)0xD5, (byte)0xB2, @@ -58,13 +59,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] iv = random.generateSeed(16); try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING", java.security.Security.getProvider("SunJCE")); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); - java.security.spec.AlgorithmParameterSpec paramSpec = new javax.crypto.spec.IvParameterSpec(iv); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); - + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/GCM/NOPADDING"); + + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + javax.crypto.spec.GCMParameterSpec paramSpec = new javax.crypto.spec.GCMParameterSpec(16 * 8, iv); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key, paramSpec); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -94,43 +95,43 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } catch (java.security.NoSuchAlgorithmException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.NoSuchPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.IllegalBlockSizeException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (javax.crypto.BadPaddingException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidKeyException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } catch (java.security.InvalidAlgorithmParameterException e) { response.getWriter().println( -"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) Test Case" +"Problem executing crypto - javax.crypto.Cipher.getInstance(java.lang.String) Test Case" ); e.printStackTrace(response.getWriter()); throw new ServletException(e); } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" ); } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02662.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02662.java index 9997349f38..4315f3c766 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02662.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02662.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -49,12 +49,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr // http://examples.javacodegeeks.com/core-java/crypto/encrypt-decrypt-file-stream-with-des/ try { - javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DESEDE/ECB/PKCS5Padding"); - - // Prepare the cipher to encrypt - javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DESEDE").generateKey(); - c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CCM/NoPadding", java.security.Security.getProvider("BC")); + // Prepare the cipher to encrypt + javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("AES").generateKey(); + c.init(javax.crypto.Cipher.ENCRYPT_MODE, key); + // encrypt and store the results byte[] input = { (byte)'?' }; Object inputParam = bar; @@ -115,7 +115,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } response.getWriter().println( -"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String) executed" +"Crypto Test javax.crypto.Cipher.getInstance(java.lang.String,java.security.Provider) executed" ); } // end doPost diff --git a/src/main/resources/benchmark.properties b/src/main/resources/benchmark.properties index 6541e0cf39..1065963d85 100644 --- a/src/main/resources/benchmark.properties +++ b/src/main/resources/benchmark.properties @@ -1,6 +1,6 @@ # This file contains various property values used by various test cases in the OWASP Benchmark cryptoAlg1=DES/ECB/PKCS5Padding -cryptoAlg2=DESede/ECB/PKCS5Padding +cryptoAlg2=AES/CCM/NoPadding hashAlg1=MD5 hashAlg2=SHA-256 testCases.per.folder=80 From 020212e02ec04904ee140546cbdd55f4054ff414 Mon Sep 17 00:00:00 2001 From: davewichers Date: Thu, 26 Mar 2020 18:11:29 -0400 Subject: [PATCH 29/92] Reorganize pom some. Eliminate use of several -all dependencies to eliminate use of FAT jars. Add all used but undeclared dependencies and eliminate some unused ones. --- pom.xml | 314 ++++++++++++++++++++++++++++++++------------------------ 1 file changed, 181 insertions(+), 133 deletions(-) diff --git a/pom.xml b/pom.xml index e064f980b3..3d530c2ad5 100755 --- a/pom.xml +++ b/pom.xml @@ -5,8 +5,25 @@ benchmark 1.2 war + OWASP Benchmark Project - https://www.owasp.org/index.php/Benchmark + OWASP Benchmark is a Java test suite designed to evaluate the accuracy, coverage, and speed of automated software vulnerability detection tools. + https://owasp.org/www-project-benchmark/ + + + + davewichers + Dave Wichers + dave.wichers@owasp.org + + + + + + GNU General Public License, version 2 (GPL2) + https://choosealicense.com/licenses/gpl-2.0/ + + @@ -645,30 +662,12 @@ provided + - org.apache.httpcomponents - httpclient - 4.5.8 - - - - - org.slf4j - slf4j-log4j12 - ${version.slf4j} - - - commons-codec @@ -676,7 +675,10 @@ But it requires getting all the Log4j2 stuff configured right, and haven't done 1.12 - + commons-dbcp commons-dbcp @@ -697,23 +699,94 @@ But it requires getting all the Log4j2 stuff configured right, and haven't done org.apache.commons - commons-lang3 - 3.8 + commons-csv + 1.5 - + ${version.apacheds} + + + + bouncycastle + bcprov-jdk15 + + + + + + org.apache.directory.server + apacheds-core-api + ${version.apacheds} + + + + org.apache.directory.server + apacheds-core-constants + ${version.apacheds} + + + + org.apache.directory.server + apacheds-jdbm-partition + ${version.apacheds} + + + + org.apache.directory.server + apacheds-jdbm-store + ${version.apacheds} + + + + org.apache.directory.server + apacheds-ldif-partition + ${version.apacheds} + + + + org.apache.directory.server + apacheds-protocol-ldap + ${version.apacheds} + + + + org.apache.directory.server + apacheds-protocol-shared + ${version.apacheds} + + + + org.apache.directory.server + apacheds-xdbm-base + ${version.apacheds} + + + + org.apache.directory.shared + shared-ldap + ${version.apache-shared-ldap} + + + + org.apache.directory.shared + shared-ldap-schema + ${version.apache-shared-ldap} + org.apache.directory.shared @@ -725,7 +798,13 @@ But it requires getting all the Log4j2 stuff configured right, and haven't done org.apache.directory.shared shared-ldap-schema-manager ${version.apache-shared-ldap} - + + + + org.apache.httpcomponents + httpclient + 4.5.8 + org.apache.httpcomponents @@ -733,6 +812,18 @@ But it requires getting all the Log4j2 stuff configured right, and haven't done 4.4.11 + + org.bouncycastle bcprov-jdk15on @@ -740,6 +831,12 @@ But it requires getting all the Log4j2 stuff configured right, and haven't done + org.hsqldb hsqldb @@ -793,15 +885,35 @@ But it requires getting all the Log4j2 stuff configured right, and haven't done - org.mockito - mockito-all - 1.10.19 + org.jfree + jfreechart + + 1.0.19 - xml-apis - xml-apis - 1.4.01 + org.json + json + 20180813 + + + + org.mockito + mockito-core + 1.10.19 + + + + org.owasp.esapi + esapi + 2.2.0.0 + + + + + org.slf4j + slf4j-log4j12 + ${version.slf4j} @@ -828,7 +940,7 @@ But it requires getting all the Log4j2 stuff configured right, and haven't done ${version.springframework} - + org.springframework spring-webmvc @@ -836,86 +948,9 @@ But it requires getting all the Log4j2 stuff configured right, and haven't done - com.google.code.gson - gson - 2.8.5 - - - - com.google.guava - guava - - 25.1-jre - - - - - com.sun.jersey - jersey-servlet - ${version.jersey} - - - - org.apache.commons - commons-csv - 1.5 - - - - org.apache.directory.server - apacheds-server-integ - - 1.5.7 - - - - org.apache.directory.shared - shared-ldap-schema - - - - bouncycastle - bcprov-jdk15 - - - - - - org.apache.directory.shared - shared-all - 0.9.19 - - - - org.jfree - jfreechart - - 1.0.19 - - - - org.json - json - 20180813 - - - - org.owasp.esapi - esapi - 2.2.0.0 + xml-apis + xml-apis + 1.4.01 @@ -1134,6 +1169,18 @@ But it might be needed for Java 10, because I get this error, that I don't get w + + org.apache.maven.plugins + maven-project-info-reports-plugin + 3.0.0 + + + + dependency-convergence + + + + @@ -1146,12 +1193,13 @@ But it might be needed for Java 10, because I get this error, that I don't get w UTF-8 ${basedir}/src/config/web.xml local + 1.5.7 0.9.19 1.6.0 3.6.10.Final 2.9.8 1.19.4 - 1.7.26 + 1.7.30 3.1.12.2 4.1.9.RELEASE From 556f2b18bdf6f572a803d5bfd6b8e83f9edec7b1 Mon Sep 17 00:00:00 2001 From: davewichers Date: Fri, 27 Mar 2020 13:58:03 -0400 Subject: [PATCH 30/92] Upgrade some dependencies. Fix some convergence issues. Make sure all dependencies are Java 7 compatible. --- pom.xml | 145 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 77 insertions(+), 68 deletions(-) diff --git a/pom.xml b/pom.xml index 3d530c2ad5..c0779a21a8 100755 --- a/pom.xml +++ b/pom.xml @@ -328,52 +328,52 @@ - + maven-antrun-plugin 1.7 - + ldap-server package - run + run - + - + - + - - + + database-server package - run + run - + - + - + - - + + database-init package - run + run - + - + - + - + @@ -381,31 +381,31 @@ cargo-maven2-plugin 1.6.0 - + 300000 tomcat8x http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.38/bin/apache-tomcat-8.0.38.zip - - + + - + ${basedir}/src/config/local/server.xml conf true - - + + ${basedir}/src/config/local/context.xml conf true - + - + ${seeker.javaagent} ${seeker.server.url} ${seeker.project.key} -Xss2m - - 8443 + + 8443 https false TLS @@ -414,9 +414,9 @@ tomcat true + - - + @@ -672,7 +672,7 @@ commons-codec commons-codec - 1.12 + 1.14 + + + org.slf4j + slf4j-log4j12 + ${version.slf4j} + + org.apache.commons commons-csv - 1.5 + + 1.6 - - org.apache.directory.server - apacheds-core + + org.apache.directory.server + apacheds-core - ${version.apacheds} - - - - bouncycastle - bcprov-jdk15 - - - + ${version.apacheds} + + + + bouncycastle + bcprov-jdk15 + + + + commons-collections + commons-collections + + + org.apache.directory.server @@ -780,6 +794,13 @@ But it might be needed for Java 10, because I get this error, that I don't get w org.apache.directory.shared shared-ldap ${version.apache-shared-ldap} + + + + commons-collections + commons-collections + + @@ -803,26 +824,14 @@ But it might be needed for Java 10, because I get this error, that I don't get w org.apache.httpcomponents httpclient - 4.5.8 + 4.5.12 org.apache.httpcomponents httpcore - 4.4.11 - - - org.bouncycastle @@ -835,6 +844,13 @@ But it requires getting all the Log4j2 stuff configured right, and haven't done org.hibernate hibernate-core ${version.hibernate} + + < excluded because it conflicts with esapi's dependency, which is newer > + + commons-collections + commons-collections + + @@ -874,7 +890,7 @@ But it requires getting all the Log4j2 stuff configured right, and haven't done org.hsqldb hsqldb - + 2.3.6 @@ -894,7 +910,7 @@ But it requires getting all the Log4j2 stuff configured right, and haven't done org.json json - 20180813 + 20190722 @@ -909,13 +925,6 @@ But it requires getting all the Log4j2 stuff configured right, and haven't done 2.2.0.0 - - - org.slf4j - slf4j-log4j12 - ${version.slf4j} - - org.springframework spring-context From c0762f833fcdf28854ec8f72acf9e1e551c31626 Mon Sep 17 00:00:00 2001 From: davewichers Date: Mon, 30 Mar 2020 12:08:16 -0400 Subject: [PATCH 31/92] Add scan time extraction from scan file name for 3 parsers that were missing this feature. --- .../org/owasp/benchmark/score/BenchmarkScore.java | 4 ++-- .../score/parsers/AppScanSourceReader2.java | 9 ++++++--- .../owasp/benchmark/score/parsers/BurpReader.java | 14 ++++++++++---- .../benchmark/score/parsers/QualysWASReader.java | 9 +++++++-- 4 files changed, 25 insertions(+), 11 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java index f09743619e..1d0d3c3296 100644 --- a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java +++ b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java @@ -782,7 +782,7 @@ else if ( nodeName.equals( "xml-report" ) ) { } else if ( nodeName.equals( "issues" ) ) { - tr = new BurpReader().parse( root ); + tr = new BurpReader().parse( fileToParse, root ); } else if ( nodeName.equals( "netsparker" ) ) { @@ -806,7 +806,7 @@ else if ( nodeName.equals( "Scan" ) ) { } else if ( nodeName.equals( "WAS_SCAN_REPORT" ) ) { - tr = new QualysWASReader().parse( root ); + tr = new QualysWASReader().parse( fileToParse, root ); } else System.out.println("Error: No matching parser found for XML file: " + filename); diff --git a/src/main/java/org/owasp/benchmark/score/parsers/AppScanSourceReader2.java b/src/main/java/org/owasp/benchmark/score/parsers/AppScanSourceReader2.java index c1526efee6..9e7c0e126a 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/AppScanSourceReader2.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/AppScanSourceReader2.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2018 */ @@ -50,7 +50,10 @@ public TestResults parse( File f ) throws Exception { Node version = getNamedChild( "product-version", scanInfo ); // System.out.println("Product version is: " + version.getTextContent()); tr.setToolVersion( version.getTextContent() ); - + + // If the fliename includes an elapsed time in seconds (e.g., TOOLNAME-seconds.xml) set the compute time on the scorecard. + tr.setTime(f); + Node allIssues = getNamedChild( "issue-group", root); List vulnerabilities = getNamedChildren( "item", allIssues ); diff --git a/src/main/java/org/owasp/benchmark/score/parsers/BurpReader.java b/src/main/java/org/owasp/benchmark/score/parsers/BurpReader.java index 3789e8d02e..aa8045f7d7 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/BurpReader.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/BurpReader.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project For details, please see - * https://www.owasp.org/index.php/Benchmark. + * https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,20 +12,23 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * - * @author Dave Wichers Aspect Security + * @author Dave Wichers * @created 2015 */ package org.owasp.benchmark.score.parsers; +import java.io.File; import java.util.List; import org.owasp.benchmark.score.BenchmarkScore; import org.w3c.dom.Node; public class BurpReader extends Reader { - - public TestResults parse(Node root) throws Exception { + + // filename passed in so we can extract the scan time if it is included in the filename + // root of XML doc passed in so we can parse the results + public TestResults parse(File f, Node root) throws Exception { TestResults tr = new TestResults("Burp Suite Pro", true, TestResults.ToolType.DAST); @@ -35,6 +38,9 @@ public TestResults parse(Node root) throws Exception { String version = getAttributeValue("burpVersion", root); tr.setToolVersion(version); + // If the fliename includes an elapsed time in seconds (e.g., TOOLNAME-seconds.xml) set the compute time on the scorecard. + tr.setTime(f); + // String time = getAttributeValue("ScanTime", root); // tr.setTime( time ); // TODO - fix it so you can get the time out of the Burp Results filename by default. diff --git a/src/main/java/org/owasp/benchmark/score/parsers/QualysWASReader.java b/src/main/java/org/owasp/benchmark/score/parsers/QualysWASReader.java index 1f30133a4d..84d8636271 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/QualysWASReader.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/QualysWASReader.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project For details, please see - * https://www.owasp.org/index.php/Benchmark. + * https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -18,6 +18,7 @@ package org.owasp.benchmark.score.parsers; +import java.io.File; import java.util.List; import org.owasp.benchmark.score.BenchmarkScore; @@ -25,10 +26,14 @@ public class QualysWASReader extends Reader { - public TestResults parse(Node root) throws Exception { + public TestResults parse(File f, Node root) throws Exception { TestResults tr = new TestResults("Qualys WAS", true, TestResults.ToolType.DAST); + // If the fliename includes an elapsed time in seconds (e.g., TOOLNAME-seconds.xml) set the compute time on the scorecard. + tr.setTime(f); + // TODO: Parse out start/end time to calculate scan time from results file. + // // // From 964546a5f4cb5b19862c548b232938aacb1807e6 Mon Sep 17 00:00:00 2001 From: davewichers Date: Mon, 30 Mar 2020 12:16:50 -0400 Subject: [PATCH 32/92] Add missing comment for last change. --- .../org/owasp/benchmark/score/parsers/QualysWASReader.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/owasp/benchmark/score/parsers/QualysWASReader.java b/src/main/java/org/owasp/benchmark/score/parsers/QualysWASReader.java index 84d8636271..163c878e71 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/QualysWASReader.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/QualysWASReader.java @@ -25,7 +25,9 @@ import org.w3c.dom.Node; public class QualysWASReader extends Reader { - + + // filename passed in so we can extract the scan time if it is included in the filename + // root of XML doc passed in so we can parse the results public TestResults parse(File f, Node root) throws Exception { TestResults tr = new TestResults("Qualys WAS", true, TestResults.ToolType.DAST); From c8457924bacd651453ba78a1a0a2417266511cc2 Mon Sep 17 00:00:00 2001 From: davewichers Date: Thu, 2 Apr 2020 18:18:49 -0400 Subject: [PATCH 33/92] Upgrade to Spring Framework 4.3.26 and update test cases that used deprecated API to use recommended equivalent. --- pom.xml | 3 +-- .../benchmark/testcode/BenchmarkTest00025.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest00198.java | 18 +++++++++--------- .../benchmark/testcode/BenchmarkTest00199.java | 18 +++++++++--------- .../benchmark/testcode/BenchmarkTest00336.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest00678.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest00764.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest00765.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest00766.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest00767.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest00842.java | 18 +++++++++--------- .../benchmark/testcode/BenchmarkTest00843.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest00934.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest01006.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest01087.java | 18 +++++++++--------- .../benchmark/testcode/BenchmarkTest01088.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest01215.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest01308.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest01386.java | 18 +++++++++--------- .../benchmark/testcode/BenchmarkTest01387.java | 18 +++++++++--------- .../benchmark/testcode/BenchmarkTest01388.java | 18 +++++++++--------- .../benchmark/testcode/BenchmarkTest01390.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest01555.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest01556.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest01625.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest01723.java | 18 +++++++++--------- .../benchmark/testcode/BenchmarkTest01808.java | 18 +++++++++--------- .../benchmark/testcode/BenchmarkTest01965.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest02179.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest02180.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest02275.java | 18 +++++++++--------- .../benchmark/testcode/BenchmarkTest02276.java | 18 +++++++++--------- .../benchmark/testcode/BenchmarkTest02278.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest02279.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest02280.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest02359.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest02360.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest02734.java | 15 ++++++++------- .../benchmark/testcode/BenchmarkTest02735.java | 15 ++++++++------- 39 files changed, 316 insertions(+), 290 deletions(-) diff --git a/pom.xml b/pom.xml index c0779a21a8..ae74606436 100755 --- a/pom.xml +++ b/pom.xml @@ -1210,8 +1210,7 @@ But it might be needed for Java 10, because I get this error, that I don't get w 1.19.4 1.7.30 3.1.12.2 - - 4.1.9.RELEASE + 4.3.26.RELEASE 8 8.5.40 diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00025.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00025.java index 86ef56009b..749cd4cfb6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00025.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00025.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -48,7 +48,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + param + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -64,10 +65,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00198.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00198.java index 0286dbd1f9..36acf92f23 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00198.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00198.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -55,15 +55,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='"+ bar + "'" ; try { - int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); - String result = Integer.toString(results); + //int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); + Integer results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Integer.class); response.getWriter().println( "Your results are: " ); // System.out.println("Your results are: "); response.getWriter().println( - result + results.toString() ); // System.out.println(results); } catch (org.springframework.dao.EmptyResultDataAccessException e) { @@ -72,10 +72,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00199.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00199.java index 7028d6effc..32f56ba00c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00199.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00199.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -60,15 +60,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='"+ bar + "'" ; try { - int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); - String result = Integer.toString(results); + //int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); + Integer results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Integer.class); response.getWriter().println( "Your results are: " ); // System.out.println("Your results are: "); response.getWriter().println( - result + results.toString() ); // System.out.println(results); } catch (org.springframework.dao.EmptyResultDataAccessException e) { @@ -77,10 +77,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00336.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00336.java index 4cc867c8aa..7577167866 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00336.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00336.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -62,7 +62,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -78,10 +79,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00678.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00678.java index 0dc1deefd2..c8ab831d4d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00678.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00678.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -56,7 +56,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -72,10 +73,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00764.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00764.java index 0e6a5a59ec..302889b14f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00764.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00764.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -68,10 +69,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00765.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00765.java index 55c8475a7a..1f5d9d3403 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00765.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00765.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -53,7 +53,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -69,10 +70,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00766.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00766.java index 1b626ff6c5..c9be671fb0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00766.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00766.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -58,7 +58,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -74,10 +75,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00767.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00767.java index 08fea9c7df..d7b79e1be6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00767.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00767.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -71,7 +71,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -87,10 +88,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00842.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00842.java index d3e72b5c9c..10a599be2f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00842.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00842.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,15 +73,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='"+ bar + "'" ; try { - int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); - String result = Integer.toString(results); + //int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); + Integer results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Integer.class); response.getWriter().println( "Your results are: " ); // System.out.println("Your results are: "); response.getWriter().println( - result + results.toString() ); // System.out.println(results); } catch (org.springframework.dao.EmptyResultDataAccessException e) { @@ -90,10 +90,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00843.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00843.java index c6d8fe9ae1..401c43a9da 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00843.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00843.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -84,10 +85,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00934.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00934.java index 70a29c23d8..0e8217cb72 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00934.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00934.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -84,10 +85,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01006.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01006.java index aec1514cec..51aa064c58 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01006.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01006.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -62,7 +62,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -78,10 +79,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01087.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01087.java index 878137fe98..ce8d30634e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01087.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01087.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -52,15 +52,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='"+ bar + "'" ; try { - int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); - String result = Integer.toString(results); + //int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); + Integer results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Integer.class); response.getWriter().println( "Your results are: " ); // System.out.println("Your results are: "); response.getWriter().println( - result + results.toString() ); // System.out.println(results); } catch (org.springframework.dao.EmptyResultDataAccessException e) { @@ -69,10 +69,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01088.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01088.java index 6b8ad58ae3..bde8a001a9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01088.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01088.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -52,7 +52,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -68,10 +69,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01215.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01215.java index 55519ca97c..7b3027812e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01215.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01215.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -54,7 +54,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -70,10 +71,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01308.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01308.java index 43c0296642..a79a7cdb10 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01308.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01308.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -47,7 +47,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -63,10 +64,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01386.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01386.java index 74f81f8284..212aac7ed2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01386.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01386.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -52,15 +52,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='"+ bar + "'" ; try { - int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); - String result = Integer.toString(results); + //int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); + Integer results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Integer.class); response.getWriter().println( "Your results are: " ); // System.out.println("Your results are: "); response.getWriter().println( - result + results.toString() ); // System.out.println(results); } catch (org.springframework.dao.EmptyResultDataAccessException e) { @@ -69,10 +69,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01387.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01387.java index 6bd3ae9120..f2c41af92a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01387.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01387.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -52,15 +52,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='"+ bar + "'" ; try { - int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); - String result = Integer.toString(results); + //int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); + Integer results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Integer.class); response.getWriter().println( "Your results are: " ); // System.out.println("Your results are: "); response.getWriter().println( - result + results.toString() ); // System.out.println(results); } catch (org.springframework.dao.EmptyResultDataAccessException e) { @@ -69,10 +69,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01388.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01388.java index 346f0ceb9b..fbb4536a31 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01388.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01388.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -52,15 +52,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='"+ bar + "'" ; try { - int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); - String result = Integer.toString(results); + //int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); + Integer results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Integer.class); response.getWriter().println( "Your results are: " ); // System.out.println("Your results are: "); response.getWriter().println( - result + results.toString() ); // System.out.println(results); } catch (org.springframework.dao.EmptyResultDataAccessException e) { @@ -69,10 +69,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01390.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01390.java index 7925fecfb1..97c020e079 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01390.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01390.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -52,7 +52,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -68,10 +69,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01555.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01555.java index c4dd9088db..f35432cbbe 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01555.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01555.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -48,7 +48,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -64,10 +65,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01556.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01556.java index d32a20e980..0eae9d206c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01556.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01556.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -48,7 +48,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -64,10 +65,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01625.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01625.java index 972a285ab7..a3c8ac24f4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01625.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01625.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -50,7 +50,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -66,10 +67,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01723.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01723.java index b6eaf1ee86..771eceef63 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01723.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01723.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -61,15 +61,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='"+ bar + "'" ; try { - int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); - String result = Integer.toString(results); + //int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); + Integer results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Integer.class); response.getWriter().println( "Your results are: " ); // System.out.println("Your results are: "); response.getWriter().println( - result + results.toString() ); // System.out.println(results); } catch (org.springframework.dao.EmptyResultDataAccessException e) { @@ -78,10 +78,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01808.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01808.java index 1b013fb591..3c44763b50 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01808.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01808.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -47,15 +47,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='"+ bar + "'" ; try { - int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); - String result = Integer.toString(results); + //int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); + Integer results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Integer.class); response.getWriter().println( "Your results are: " ); // System.out.println("Your results are: "); response.getWriter().println( - result + results.toString() ); // System.out.println(results); } catch (org.springframework.dao.EmptyResultDataAccessException e) { @@ -64,10 +64,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01965.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01965.java index eef290edcb..cf28f4a15a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01965.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01965.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -68,10 +69,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02179.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02179.java index 5014d5fa2c..b96b66e384 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02179.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02179.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -47,7 +47,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -63,10 +64,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02180.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02180.java index ec0b6eb70a..af40e8c453 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02180.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02180.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -47,7 +47,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -63,10 +64,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02275.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02275.java index c633833230..e2310042dd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02275.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02275.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,15 +52,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='"+ bar + "'" ; try { - int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); - String result = Integer.toString(results); + //int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); + Integer results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Integer.class); response.getWriter().println( "Your results are: " ); // System.out.println("Your results are: "); response.getWriter().println( - result + results.toString() ); // System.out.println(results); } catch (org.springframework.dao.EmptyResultDataAccessException e) { @@ -69,10 +69,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02276.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02276.java index d52d74318a..81bd1b292b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02276.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02276.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,15 +52,15 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='"+ bar + "'" ; try { - int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); - String result = Integer.toString(results); + //int results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForInt(sql); + Integer results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Integer.class); response.getWriter().println( "Your results are: " ); // System.out.println("Your results are: "); response.getWriter().println( - result + results.toString() ); // System.out.println(results); } catch (org.springframework.dao.EmptyResultDataAccessException e) { @@ -69,10 +69,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02278.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02278.java index fa885e686e..78e35b8f92 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02278.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02278.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -68,10 +69,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02279.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02279.java index 14b168575c..b0f578f273 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02279.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02279.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -68,10 +69,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02280.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02280.java index 88bc7a9d78..1ba981c720 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02280.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02280.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -68,10 +69,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02359.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02359.java index efd3b59e3e..9545802fd7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02359.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02359.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,7 +61,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -77,10 +78,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02360.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02360.java index 6063ec54e7..9d61ec8acb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02360.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02360.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,7 +61,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -77,10 +78,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02734.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02734.java index ed4cc32357..ca3c83cdab 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02734.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02734.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -47,7 +47,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -63,10 +64,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02735.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02735.java index cda3073e7b..a53ca2b629 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02735.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02735.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -47,7 +47,8 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + //Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForLong(sql); + Long results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForObject(sql, Long.class); response.getWriter().println( "Your results are: " ); @@ -63,10 +64,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr ); } catch (org.springframework.dao.DataAccessException e) { if (org.owasp.benchmark.helpers.DatabaseHelper.hideSQLErrors) { - response.getWriter().println( - "Error processing request." - ); - } + response.getWriter().println( + "Error processing request." + ); + } else throw new ServletException(e); } } // end doPost From ea56f6d1e41e5d8a3595954a9e375c4bb6a9af51 Mon Sep 17 00:00:00 2001 From: davewichers Date: Fri, 3 Apr 2020 12:37:41 -0400 Subject: [PATCH 34/92] Comment out 2 unused beans in resources/context.xml. Without these two can upgrade to Spring 5 no problem. --- src/main/resources/context.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/resources/context.xml b/src/main/resources/context.xml index 65b3a53f09..be8d8d76ee 100644 --- a/src/main/resources/context.xml +++ b/src/main/resources/context.xml @@ -33,15 +33,17 @@ --> + + + - \ No newline at end of file From 547552d429f1d3f0b12c8c7889706b8efc9331c9 Mon Sep 17 00:00:00 2001 From: davewichers Date: Fri, 3 Apr 2020 13:34:17 -0400 Subject: [PATCH 35/92] Upgrade jfreechart to 1.5.0 and fix API changes. --- pom.xml | 3 +-- .../benchmark/score/report/ScatterHome.java | 23 ++++++++-------- .../score/report/ScatterInterpretation.java | 8 +++--- .../benchmark/score/report/ScatterPlot.java | 26 ++++++++++++++++--- .../benchmark/score/report/ScatterTools.java | 8 +++--- .../benchmark/score/report/ScatterVulns.java | 6 ++--- 6 files changed, 46 insertions(+), 28 deletions(-) diff --git a/pom.xml b/pom.xml index ae74606436..b4a36bc3b9 100755 --- a/pom.xml +++ b/pom.xml @@ -903,8 +903,7 @@ But it might be needed for Java 10, because I get this error, that I don't get w org.jfree jfreechart - - 1.0.19 + 1.5.0 diff --git a/src/main/java/org/owasp/benchmark/score/report/ScatterHome.java b/src/main/java/org/owasp/benchmark/score/report/ScatterHome.java index ff116e9610..2ea4af5c19 100644 --- a/src/main/java/org/owasp/benchmark/score/report/ScatterHome.java +++ b/src/main/java/org/owasp/benchmark/score/report/ScatterHome.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -39,10 +39,11 @@ import org.jfree.chart.annotations.XYTextAnnotation; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.plot.XYPlot; +import org.jfree.chart.ui.TextAnchor; import org.jfree.data.xy.XYDataItem; import org.jfree.data.xy.XYSeries; import org.jfree.data.xy.XYSeriesCollection; -import org.jfree.ui.TextAnchor; + import org.owasp.benchmark.score.BenchmarkScore; import org.owasp.benchmark.score.parsers.OverallResults; @@ -53,7 +54,7 @@ public class ScatterHome extends ScatterPlot { public final String focus; public static final char INITIAL_LABEL = 'A'; - + /** * This calculates the summary chart across all the tools analyzed against the Benchmark. * @param title - The title of the chart to be produced. @@ -86,7 +87,7 @@ private JFreeChart display(String title, int height, Set toolResults ) { } } } - + int commercialToolCount = 0; for ( Report toolReport : toolResults ) { if ( toolReport.isCommercial() ) { @@ -102,30 +103,30 @@ private JFreeChart display(String title, int height, Set toolResults ) { } } } - + for (double d : averageCommercialFalseRates) { afr += d; } afr = afr/averageCommercialFalseRates.size(); - + for (double d : averageCommercialTrueRates) { atr += d; } atr = atr/averageCommercialTrueRates.size(); - + if ( commercialToolCount > 1 || (BenchmarkScore.showAveOnlyMode && commercialToolCount == 1)) { series.add(afr *100, atr*100); } - + dataset.addSeries(series); - + chart = ChartFactory.createScatterPlot(title, "False Positive Rate", "True Positive Rate", dataset, PlotOrientation.VERTICAL, true, true, false); theme.apply(chart); XYPlot xyplot = chart.getXYPlot(); initializePlot( xyplot ); addGenerationDate( xyplot ); - + makeDataLabels( toolResults, xyplot ); makeLegend( toolResults, 103, 100.5, dataset, xyplot ); diff --git a/src/main/java/org/owasp/benchmark/score/report/ScatterInterpretation.java b/src/main/java/org/owasp/benchmark/score/report/ScatterInterpretation.java index 92fc4fbb5a..d4da6274d0 100644 --- a/src/main/java/org/owasp/benchmark/score/report/ScatterInterpretation.java +++ b/src/main/java/org/owasp/benchmark/score/report/ScatterInterpretation.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -28,8 +28,8 @@ import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.plot.XYPlot; +import org.jfree.chart.ui.TextAnchor; import org.jfree.data.xy.XYSeriesCollection; -import org.jfree.ui.TextAnchor; public class ScatterInterpretation extends ScatterPlot { @@ -73,4 +73,4 @@ public static void main(String[] args) throws IOException { scatter.writeChartToFile(new File("benchmark_guide.png"), 800 ); System.exit(0); } -} \ No newline at end of file +} diff --git a/src/main/java/org/owasp/benchmark/score/report/ScatterPlot.java b/src/main/java/org/owasp/benchmark/score/report/ScatterPlot.java index 0411683257..713814d6de 100644 --- a/src/main/java/org/owasp/benchmark/score/report/ScatterPlot.java +++ b/src/main/java/org/owasp/benchmark/score/report/ScatterPlot.java @@ -1,3 +1,21 @@ +/** + * OWASP Benchmark Project + * + * This file is part of the Open Web Application Security Project (OWASP) + * Benchmark Project For details, please see + * https://owasp.org/www-project-benchmark/. + * + * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms + * of the GNU General Public License as published by the Free Software Foundation, version 2. + * + * The OWASP Benchmark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details + * + * @author Dave Wichers + * @created 2015 + */ + package org.owasp.benchmark.score.report; import java.awt.BasicStroke; @@ -18,7 +36,7 @@ import java.text.SimpleDateFormat; import java.util.Date; -import org.jfree.chart.ChartUtilities; +import org.jfree.chart.ChartUtils; import org.jfree.chart.JFreeChart; import org.jfree.chart.StandardChartTheme; import org.jfree.chart.annotations.XYLineAnnotation; @@ -29,8 +47,8 @@ import org.jfree.chart.axis.NumberTickUnit; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.renderer.category.StandardBarPainter; -import org.jfree.ui.RectangleInsets; -import org.jfree.ui.TextAnchor; +import org.jfree.chart.ui.RectangleInsets; +import org.jfree.chart.ui.TextAnchor; public class ScatterPlot { @@ -125,7 +143,7 @@ public static XYPointerAnnotation makePointer(int x, int y, String msg, TextAnch public void writeChartToFile(File f, int height) throws IOException { FileOutputStream stream = new FileOutputStream(f); - ChartUtilities.writeChartAsPNG(stream, chart, (int)Math.round(height*1.4), height); + ChartUtils.writeChartAsPNG(stream, chart, (int)Math.round(height*1.4), height); stream.close(); } diff --git a/src/main/java/org/owasp/benchmark/score/report/ScatterTools.java b/src/main/java/org/owasp/benchmark/score/report/ScatterTools.java index fb60d4ab06..a1d89691e1 100644 --- a/src/main/java/org/owasp/benchmark/score/report/ScatterTools.java +++ b/src/main/java/org/owasp/benchmark/score/report/ScatterTools.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -35,9 +35,9 @@ import org.jfree.chart.annotations.XYTextAnnotation; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.plot.XYPlot; +import org.jfree.chart.ui.TextAnchor; import org.jfree.data.xy.XYSeries; import org.jfree.data.xy.XYSeriesCollection; -import org.jfree.ui.TextAnchor; import org.owasp.benchmark.score.parsers.OverallResult; import org.owasp.benchmark.score.parsers.OverallResults; @@ -255,4 +255,4 @@ public static void main(String[] args) throws IOException { scatter.writeChartToFile(new File("test.png"), 800); System.exit(0); } -} \ No newline at end of file +} diff --git a/src/main/java/org/owasp/benchmark/score/report/ScatterVulns.java b/src/main/java/org/owasp/benchmark/score/report/ScatterVulns.java index c9fb849610..b0c9ef4a7c 100644 --- a/src/main/java/org/owasp/benchmark/score/report/ScatterVulns.java +++ b/src/main/java/org/owasp/benchmark/score/report/ScatterVulns.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project For details, please see - * https://www.owasp.org/index.php/Benchmark. + * https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * - * @author Dave Wichers Aspect Security + * @author Dave Wichers * @created 2015 */ @@ -39,10 +39,10 @@ import org.jfree.chart.annotations.XYTextAnnotation; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.plot.XYPlot; +import org.jfree.chart.ui.TextAnchor; import org.jfree.data.xy.XYDataItem; import org.jfree.data.xy.XYSeries; import org.jfree.data.xy.XYSeriesCollection; -import org.jfree.ui.TextAnchor; import org.owasp.benchmark.score.BenchmarkScore; import org.owasp.benchmark.score.parsers.OverallResult; import org.owasp.benchmark.score.parsers.OverallResults; From b1d0d9325663ca310d08009dfbb3cedfc6ab78df Mon Sep 17 00:00:00 2001 From: davewichers Date: Fri, 3 Apr 2020 14:40:38 -0400 Subject: [PATCH 36/92] Eliminate debug use of swing.JFrame class in various chart generation classes to address issue #20. --- .../benchmark/score/report/ScatterHome.java | 11 +---------- .../score/report/ScatterInterpretation.java | 14 ++------------ .../benchmark/score/report/ScatterTools.java | 19 +++++-------------- .../benchmark/score/report/ScatterVulns.java | 12 +----------- 4 files changed, 9 insertions(+), 47 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/score/report/ScatterHome.java b/src/main/java/org/owasp/benchmark/score/report/ScatterHome.java index 2ea4af5c19..a4f9cf5b1d 100644 --- a/src/main/java/org/owasp/benchmark/score/report/ScatterHome.java +++ b/src/main/java/org/owasp/benchmark/score/report/ScatterHome.java @@ -30,8 +30,6 @@ import java.util.Map.Entry; import java.util.Set; -import javax.swing.JFrame; - import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; @@ -68,9 +66,7 @@ public ScatterHome(String title, int height, Set toolResults, String foc } private JFreeChart display(String title, int height, Set toolResults ) { - JFrame f = new JFrame(title); - f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - + //averages ArrayList averageCommercialFalseRates = new ArrayList(); ArrayList averageCommercialTrueRates = new ArrayList(); @@ -138,11 +134,6 @@ private JFreeChart display(String title, int height, Set toolResults ) { xyplot.addAnnotation(score); } - ChartPanel cp = new ChartPanel(chart, height, height, 400, 400, 1200, 1200, false, false, false, false, false, false); - f.add(cp); - f.pack(); - f.setLocationRelativeTo(null); -// f.setVisible(true); return chart; } diff --git a/src/main/java/org/owasp/benchmark/score/report/ScatterInterpretation.java b/src/main/java/org/owasp/benchmark/score/report/ScatterInterpretation.java index d4da6274d0..481e72c2fe 100644 --- a/src/main/java/org/owasp/benchmark/score/report/ScatterInterpretation.java +++ b/src/main/java/org/owasp/benchmark/score/report/ScatterInterpretation.java @@ -21,8 +21,6 @@ import java.io.File; import java.io.IOException; -import javax.swing.JFrame; - import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; @@ -38,8 +36,6 @@ public ScatterInterpretation( int height ) { } private JFreeChart display(String title, int height ) { - JFrame f = new JFrame(title); - f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); XYSeriesCollection dataset = new XYSeriesCollection(); chart = ChartFactory.createScatterPlot(title, "False Positive Rate", "True Positive Rate", dataset, PlotOrientation.VERTICAL, true, true, false); @@ -52,19 +48,13 @@ private JFreeChart display(String title, int height ) { makePointer( xyplot, 10, 10, " Tool reports nothing is vulnerable", TextAnchor.TOP_LEFT, 45 ); // makePointer( xyplot, 70, 30, " Worse than random", TextAnchor.TOP_LEFT, 45 ); makePointer( xyplot, 90, 90, "Tool reports everything is vulnerable ", TextAnchor.TOP_LEFT, 45); - // makePointer( xyplot, 50, 50, "Tool reports vulnerabilities randomly ", TextAnchor.BOTTOM_RIGHT, 225); makePointer( xyplot, 50, 50, "Tool reports vulnerabilities randomly ", TextAnchor.TOP_LEFT, 45); - + makeOval( xyplot, 0, 3, 20, 10, 45 ); makeOval( xyplot, 42, 3, 20, 10, 45 ); makeOval( xyplot, 84, 3, 20, 10, 45 ); makeOval( xyplot, 43, 64, 20, 10, 45 ); - - ChartPanel cp = new ChartPanel(chart, height, height, 400, 400, 1200, 1200, false, false, false, false, false, false); - f.add(cp); - f.pack(); - f.setLocationRelativeTo(null); - // f.setVisible(true); + return chart; } diff --git a/src/main/java/org/owasp/benchmark/score/report/ScatterTools.java b/src/main/java/org/owasp/benchmark/score/report/ScatterTools.java index a1d89691e1..6b6f79513a 100644 --- a/src/main/java/org/owasp/benchmark/score/report/ScatterTools.java +++ b/src/main/java/org/owasp/benchmark/score/report/ScatterTools.java @@ -27,8 +27,6 @@ import java.util.HashMap; import java.util.Map.Entry; -import javax.swing.JFrame; - import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; @@ -38,6 +36,7 @@ import org.jfree.chart.ui.TextAnchor; import org.jfree.data.xy.XYSeries; import org.jfree.data.xy.XYSeriesCollection; + import org.owasp.benchmark.score.parsers.OverallResult; import org.owasp.benchmark.score.parsers.OverallResults; @@ -51,9 +50,6 @@ public ScatterTools(String title, int height, OverallResults or) { private JFreeChart display(String title, int height, OverallResults or) { - JFrame f = new JFrame(title); - f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - XYSeriesCollection dataset = new XYSeriesCollection(); XYSeries series = new XYSeries("Scores"); int totalTools = 0; @@ -71,18 +67,18 @@ private JFreeChart display(String title, int height, OverallResults or) { if ( or.getResults().size() > 1) { series.add(afpr * 100, atpr * 100); } - + dataset.addSeries(series); chart = ChartFactory.createScatterPlot(title, "False Positive Rate", "True Positive Rate", dataset, PlotOrientation.VERTICAL, true, true, false); theme.apply(chart); XYPlot xyplot = chart.getXYPlot(); - + initializePlot( xyplot ); - + makeDataLabels(or, xyplot); - makeLegend( or, 103, 93, dataset, xyplot ); + makeLegend( or, 103, 93, dataset, xyplot ); XYTextAnnotation time = new XYTextAnnotation("Tool run time: " + or.getTime(), 12, -5.6); time.setTextAnchor(TextAnchor.TOP_LEFT); @@ -90,11 +86,6 @@ private JFreeChart display(String title, int height, OverallResults or) { time.setPaint(Color.red); xyplot.addAnnotation(time); - ChartPanel cp = new ChartPanel(chart, height, height, 400, 400, 1200, 1200, false, false, false, false, false, false); - f.add(cp); - f.pack(); - f.setLocationRelativeTo(null); - // f.setVisible(true); return chart; } diff --git a/src/main/java/org/owasp/benchmark/score/report/ScatterVulns.java b/src/main/java/org/owasp/benchmark/score/report/ScatterVulns.java index b0c9ef4a7c..d2856ea42d 100644 --- a/src/main/java/org/owasp/benchmark/score/report/ScatterVulns.java +++ b/src/main/java/org/owasp/benchmark/score/report/ScatterVulns.java @@ -30,8 +30,6 @@ import java.util.Map.Entry; import java.util.Set; -import javax.swing.JFrame; - import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; @@ -43,6 +41,7 @@ import org.jfree.data.xy.XYDataItem; import org.jfree.data.xy.XYSeries; import org.jfree.data.xy.XYSeriesCollection; + import org.owasp.benchmark.score.BenchmarkScore; import org.owasp.benchmark.score.parsers.OverallResult; import org.owasp.benchmark.score.parsers.OverallResults; @@ -85,8 +84,6 @@ public ScatterVulns(String title, int height, String category, Set toolR } private JFreeChart display(String title, int height, String category, Set toolResults) { - JFrame f = new JFrame(title); - f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // averages ArrayList averageFalseRates = new ArrayList(); @@ -150,13 +147,6 @@ private JFreeChart display(String title, int height, String category, Set Date: Fri, 3 Apr 2020 17:15:21 -0400 Subject: [PATCH 37/92] Enhance LDAP test cases to always output something even if the LDAP query returns no results. --- .../testcode/BenchmarkTest00012.java | 33 ++++++---- .../testcode/BenchmarkTest00021.java | 65 ++++++++++--------- .../testcode/BenchmarkTest00044.java | 65 ++++++++++--------- .../testcode/BenchmarkTest00138.java | 33 ++++++---- .../testcode/BenchmarkTest00139.java | 37 ++++++----- .../testcode/BenchmarkTest00367.java | 33 ++++++---- .../testcode/BenchmarkTest00530.java | 37 ++++++----- .../testcode/BenchmarkTest00630.java | 37 ++++++----- .../testcode/BenchmarkTest00694.java | 65 ++++++++++--------- .../testcode/BenchmarkTest00695.java | 65 ++++++++++--------- .../testcode/BenchmarkTest00701.java | 37 ++++++----- .../testcode/BenchmarkTest00860.java | 65 ++++++++++--------- .../testcode/BenchmarkTest00861.java | 65 ++++++++++--------- .../testcode/BenchmarkTest00947.java | 65 ++++++++++--------- .../testcode/BenchmarkTest00948.java | 65 ++++++++++--------- .../testcode/BenchmarkTest00959.java | 33 ++++++---- .../testcode/BenchmarkTest01023.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01024.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01154.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01241.java | 33 ++++++---- .../testcode/BenchmarkTest01242.java | 33 ++++++---- .../testcode/BenchmarkTest01243.java | 37 ++++++----- .../testcode/BenchmarkTest01326.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01327.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01402.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01490.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01491.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01492.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01501.java | 37 ++++++----- .../testcode/BenchmarkTest01568.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01569.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01743.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01753.java | 33 ++++++---- .../testcode/BenchmarkTest01754.java | 33 ++++++---- .../testcode/BenchmarkTest01755.java | 37 ++++++----- .../testcode/BenchmarkTest01756.java | 37 ++++++----- .../testcode/BenchmarkTest01831.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01832.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01902.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01903.java | 65 ++++++++++--------- .../testcode/BenchmarkTest01909.java | 37 ++++++----- .../testcode/BenchmarkTest02025.java | 65 ++++++++++--------- .../testcode/BenchmarkTest02036.java | 33 ++++++---- .../testcode/BenchmarkTest02037.java | 33 ++++++---- .../testcode/BenchmarkTest02104.java | 65 ++++++++++--------- .../testcode/BenchmarkTest02114.java | 33 ++++++---- .../testcode/BenchmarkTest02115.java | 33 ++++++---- .../testcode/BenchmarkTest02116.java | 37 ++++++----- .../testcode/BenchmarkTest02196.java | 65 ++++++++++--------- .../testcode/BenchmarkTest02208.java | 33 ++++++---- .../testcode/BenchmarkTest02299.java | 65 ++++++++++--------- .../testcode/BenchmarkTest02305.java | 33 ++++++---- .../testcode/BenchmarkTest02306.java | 37 ++++++----- .../testcode/BenchmarkTest02376.java | 65 ++++++++++--------- .../testcode/BenchmarkTest02384.java | 37 ++++++----- .../testcode/BenchmarkTest02472.java | 33 ++++++---- .../testcode/BenchmarkTest02553.java | 65 ++++++++++--------- .../testcode/BenchmarkTest02571.java | 33 ++++++---- .../testcode/BenchmarkTest02572.java | 37 ++++++----- 59 files changed, 1627 insertions(+), 1332 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00012.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00012.java index dde47009a9..f07fed5009 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00012.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00012.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -61,9 +61,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+param+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -74,24 +75,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00021.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00021.java index 4d17d452f2..cf6c3b391f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00021.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00021.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -48,41 +48,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+param+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+param+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00044.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00044.java index 0e54f4453c..4a6b1fe683 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00044.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00044.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -51,41 +51,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person)(uid=" + param - + "))"; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person)(uid=" + param + + "))"; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null) { + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00138.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00138.java index 97018f065c..dc9e239919 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00138.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00138.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -66,9 +66,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -79,24 +80,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00139.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00139.java index 6f68739cae..1f4b965bcf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00139.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00139.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -74,12 +74,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person)(uid=" + bar + "))"; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; - javax.naming.NamingEnumeration results = + boolean found = false; + javax.naming.NamingEnumeration results = idc.search(base, filter, sc); - + while (results.hasMore()) { javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); javax.naming.directory.Attributes attrs = sr.getAttributes(); @@ -88,24 +89,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00367.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00367.java index c3c89310d1..38ae95e55e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00367.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00367.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -69,9 +69,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -82,24 +83,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00530.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00530.java index 9d273378a2..ddc4d066fc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00530.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00530.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -88,12 +88,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person)(uid=" + bar + "))"; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; - javax.naming.NamingEnumeration results = + boolean found = false; + javax.naming.NamingEnumeration results = idc.search(base, filter, sc); - + while (results.hasMore()) { javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); javax.naming.directory.Attributes attrs = sr.getAttributes(); @@ -102,24 +103,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00630.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00630.java index 9cd04c37ef..6b25080f3f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00630.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00630.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -75,12 +75,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person)(uid=" + bar + "))"; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; - javax.naming.NamingEnumeration results = + boolean found = false; + javax.naming.NamingEnumeration results = idc.search(base, filter, sc); - + while (results.hasMore()) { javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); javax.naming.directory.Attributes attrs = sr.getAttributes(); @@ -89,24 +90,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00694.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00694.java index e1099a764f..e549be12db 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00694.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00694.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,41 +52,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person)(uid=" + bar - + "))"; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person)(uid=" + bar + + "))"; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null) { + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00695.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00695.java index 1e27d03de9..d2d9858455 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00695.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00695.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -57,41 +57,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person)(uid=" + bar - + "))"; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person)(uid=" + bar + + "))"; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null) { + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00701.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00701.java index 7e9480252a..e18cfc15b7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00701.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00701.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -72,12 +72,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person)(uid=" + bar + "))"; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; - javax.naming.NamingEnumeration results = + boolean found = false; + javax.naming.NamingEnumeration results = idc.search(base, filter, sc); - + while (results.hasMore()) { javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); javax.naming.directory.Attributes attrs = sr.getAttributes(); @@ -86,24 +87,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00860.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00860.java index 634fa9203d..93988ff3ab 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00860.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00860.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -59,41 +59,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00861.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00861.java index e9eafb7bea..13c652afae 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00861.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00861.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,41 +68,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person)(uid=" + bar - + "))"; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person)(uid=" + bar + + "))"; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null) { + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00947.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00947.java index 37d088c218..bf2dc1332c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00947.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00947.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -62,41 +62,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00948.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00948.java index 32e6e0700c..e932458123 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00948.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00948.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -62,41 +62,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person)(uid=" + bar - + "))"; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person)(uid=" + bar + + "))"; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null) { + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00959.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00959.java index 9c9815abe5..774704fcc5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00959.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00959.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -68,9 +68,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -81,24 +82,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01023.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01023.java index 5abf3441dd..562fc59335 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01023.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01023.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -52,41 +52,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01024.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01024.java index f5faa0d6ec..140ff95f6f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01024.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01024.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -52,41 +52,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01154.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01154.java index 21b15d6167..4d2cbc8078 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01154.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01154.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -54,41 +54,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01241.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01241.java index 9a3954a7a9..32064590b4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01241.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01241.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -53,9 +53,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -66,24 +67,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01242.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01242.java index 0f32bc62c0..7200040f42 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01242.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01242.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -53,9 +53,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -66,24 +67,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01243.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01243.java index 23693e3611..7f00f9cb8e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01243.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01243.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -53,12 +53,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person)(uid=" + bar + "))"; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; - javax.naming.NamingEnumeration results = + boolean found = false; + javax.naming.NamingEnumeration results = idc.search(base, filter, sc); - + while (results.hasMore()) { javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); javax.naming.directory.Attributes attrs = sr.getAttributes(); @@ -67,24 +68,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01326.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01326.java index 882c59f6d7..b1b9f9efcb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01326.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01326.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -52,41 +52,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01327.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01327.java index 12cff45db2..93ea155a5c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01327.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01327.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -52,41 +52,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01402.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01402.java index dfee902b10..a6fd00ced6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01402.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01402.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -61,41 +61,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01490.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01490.java index ae28047c92..accce50169 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01490.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01490.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -48,41 +48,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01491.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01491.java index 7d8f0eeaac..6a2ad2ffa8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01491.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01491.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -48,41 +48,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person)(uid=" + bar - + "))"; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person)(uid=" + bar + + "))"; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null) { + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01492.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01492.java index 9af413e3fb..b2d5a9ae5c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01492.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01492.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -48,41 +48,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person)(uid=" + bar - + "))"; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person)(uid=" + bar + + "))"; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null) { + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01501.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01501.java index 33786e592d..e3e2556d3b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01501.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01501.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -54,12 +54,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person)(uid=" + bar + "))"; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; - javax.naming.NamingEnumeration results = + boolean found = false; + javax.naming.NamingEnumeration results = idc.search(base, filter, sc); - + while (results.hasMore()) { javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); javax.naming.directory.Attributes attrs = sr.getAttributes(); @@ -68,24 +69,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01568.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01568.java index efe0c16e76..2c2f5ad1e8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01568.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01568.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -50,41 +50,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person)(uid=" + bar - + "))"; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person)(uid=" + bar + + "))"; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null) { + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01569.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01569.java index b1d137a985..937b9efa0f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01569.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01569.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -50,41 +50,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person)(uid=" + bar - + "))"; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person)(uid=" + bar + + "))"; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null) { + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01743.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01743.java index 22b57a7510..7e9d0d1cc7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01743.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01743.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -47,41 +47,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01753.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01753.java index 8eaf97276e..3e763dc9c5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01753.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01753.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -53,9 +53,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -66,24 +67,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01754.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01754.java index a0a45d85f5..3293c6dab9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01754.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01754.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -53,9 +53,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -66,24 +67,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01755.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01755.java index 829d9a395f..bdeadaa065 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01755.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01755.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -53,12 +53,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person)(uid=" + bar + "))"; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; - javax.naming.NamingEnumeration results = + boolean found = false; + javax.naming.NamingEnumeration results = idc.search(base, filter, sc); - + while (results.hasMore()) { javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); javax.naming.directory.Attributes attrs = sr.getAttributes(); @@ -67,24 +68,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01756.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01756.java index 0e7e864edf..864a0d40d6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01756.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01756.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -53,12 +53,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person)(uid=" + bar + "))"; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; - javax.naming.NamingEnumeration results = + boolean found = false; + javax.naming.NamingEnumeration results = idc.search(base, filter, sc); - + while (results.hasMore()) { javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); javax.naming.directory.Attributes attrs = sr.getAttributes(); @@ -67,24 +68,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01831.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01831.java index 48c4eef690..0b76690c0d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01831.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01831.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -62,41 +62,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01832.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01832.java index 6fc5b277f9..0a5889a98b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01832.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01832.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -62,41 +62,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01902.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01902.java index 9d7dd45338..41deff2fd4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01902.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01902.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,41 +52,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person)(uid=" + bar - + "))"; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person)(uid=" + bar + + "))"; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null) { + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01903.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01903.java index d27085319d..29d31d7bd1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01903.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01903.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,41 +52,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person)(uid=" + bar - + "))"; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person)(uid=" + bar + + "))"; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null) { + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01909.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01909.java index 7e497fc85f..da9a5c938d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01909.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01909.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -58,12 +58,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person)(uid=" + bar + "))"; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; - javax.naming.NamingEnumeration results = + boolean found = false; + javax.naming.NamingEnumeration results = idc.search(base, filter, sc); - + while (results.hasMore()) { javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); javax.naming.directory.Attributes attrs = sr.getAttributes(); @@ -72,24 +73,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02025.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02025.java index fdaa77f980..2306fde37c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02025.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02025.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -54,41 +54,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person)(uid=" + bar - + "))"; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person)(uid=" + bar + + "))"; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null) { + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02036.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02036.java index 424cfca233..bb9bb6ef70 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02036.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02036.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -60,9 +60,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -73,24 +74,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02037.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02037.java index 849149440a..f8996c9096 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02037.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02037.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -60,9 +60,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -73,24 +74,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02104.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02104.java index 4141a1c968..c1804ec72e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02104.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02104.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -47,41 +47,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02114.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02114.java index 80e9a3305b..397b45ad3d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02114.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02114.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -53,9 +53,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -66,24 +67,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02115.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02115.java index b0bb3268f5..e2bd752d0f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02115.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02115.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -53,9 +53,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -66,24 +67,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02116.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02116.java index b260686b19..a7222a65db 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02116.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02116.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -53,12 +53,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person)(uid=" + bar + "))"; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; - javax.naming.NamingEnumeration results = + boolean found = false; + javax.naming.NamingEnumeration results = idc.search(base, filter, sc); - + while (results.hasMore()) { javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); javax.naming.directory.Attributes attrs = sr.getAttributes(); @@ -67,24 +68,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02196.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02196.java index 1df6a0bb21..39a292760c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02196.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02196.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,41 +52,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person)(uid=" + bar - + "))"; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person)(uid=" + bar + + "))"; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null) { + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02208.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02208.java index dbab78dbf0..1356924ab8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02208.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02208.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -58,9 +58,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -71,24 +72,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02299.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02299.java index 54733987bf..e64cec39c9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02299.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02299.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,41 +61,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person)(uid=" + bar - + "))"; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person)(uid=" + bar + + "))"; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null) { + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02305.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02305.java index fb78e09fc6..5f5eff7c89 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02305.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02305.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -67,9 +67,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -80,24 +81,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02306.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02306.java index 1f5d5d1cdd..52e8b8ca5e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02306.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02306.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -67,12 +67,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person)(uid=" + bar + "))"; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; - javax.naming.NamingEnumeration results = + boolean found = false; + javax.naming.NamingEnumeration results = idc.search(base, filter, sc); - + while (results.hasMore()) { javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); javax.naming.directory.Attributes attrs = sr.getAttributes(); @@ -81,24 +82,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02376.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02376.java index 9edc917b0e..14c4ad3018 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02376.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02376.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -48,41 +48,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02384.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02384.java index 4c273a5f21..00624f7790 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02384.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02384.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -54,12 +54,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person)(uid=" + bar + "))"; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; - javax.naming.NamingEnumeration results = + boolean found = false; + javax.naming.NamingEnumeration results = idc.search(base, filter, sc); - + while (results.hasMore()) { javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); javax.naming.directory.Attributes attrs = sr.getAttributes(); @@ -68,24 +69,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02472.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02472.java index a5c396264b..30acef84fa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02472.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02472.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -56,9 +56,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -69,24 +70,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02553.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02553.java index 566ae4109a..592dd3be2d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02553.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02553.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,41 +61,46 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.owasp.benchmark.helpers.LDAPManager ads = new org.owasp.benchmark.helpers.LDAPManager(); try { - response.setContentType("text/html"); - javax.naming.directory.DirContext ctx = ads.getDirContext(); - String base = "ou=users,ou=system"; - javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); - sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); - String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; - Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - // System.out.println("Filter " + filter); - javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); - while (results.hasMore()) { - javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); - javax.naming.directory.Attributes attrs = sr.getAttributes(); + response.setContentType("text/html"); + javax.naming.directory.DirContext ctx = ads.getDirContext(); + String base = "ou=users,ou=system"; + javax.naming.directory.SearchControls sc = new javax.naming.directory.SearchControls(); + sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); + String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; + Object[] filters = new Object[]{"The streetz 4 Ms bar"}; + // System.out.println("Filter " + filter); + boolean found = false; + javax.naming.NamingEnumeration results = ctx.search(base, filter,filters, sc); + while (results.hasMore()) { + javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); + javax.naming.directory.Attributes attrs = sr.getAttributes(); - javax.naming.directory.Attribute attr = attrs.get("uid"); - javax.naming.directory.Attribute attr2 = attrs.get("street"); - if (attr != null){ - response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get() + "
" -); - // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + javax.naming.directory.Attribute attr = attrs.get("uid"); + javax.naming.directory.Attribute attr2 = attrs.get("street"); + if (attr != null){ + response.getWriter().println( + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get() + "
" + ); + // System.out.println("record found " + attr.get()); + found = true; } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); + } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02571.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02571.java index 02ff12d53c..b9492cd325 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02571.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02571.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -67,9 +67,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person))(|(uid="+bar+")(street={0}))"; Object[] filters = new Object[]{"The streetz 4 Ms bar"}; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; + boolean found = false; javax.naming.NamingEnumeration results = idc.search(base, filter,filters, sc); while (results.hasMore()) { @@ -80,24 +81,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02572.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02572.java index a4489b563e..1141667452 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02572.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02572.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -67,12 +67,13 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr sc.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE); String filter = "(&(objectclass=person)(uid=" + bar + "))"; - + javax.naming.directory.DirContext ctx = ads.getDirContext(); javax.naming.directory.InitialDirContext idc = (javax.naming.directory.InitialDirContext) ctx; - javax.naming.NamingEnumeration results = + boolean found = false; + javax.naming.NamingEnumeration results = idc.search(base, filter, sc); - + while (results.hasMore()) { javax.naming.directory.SearchResult sr = (javax.naming.directory.SearchResult) results.next(); javax.naming.directory.Attributes attrs = sr.getAttributes(); @@ -81,24 +82,28 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr javax.naming.directory.Attribute attr2 = attrs.get("street"); if (attr != null){ response.getWriter().println( -"LDAP query results:
" - + " Record found with name " + attr.get() + "
" - + "Address: " + attr2.get()+ "
" -); + "LDAP query results:
" + + "Record found with name " + attr.get() + "
" + + "Address: " + attr2.get()+ "
" + ); // System.out.println("record found " + attr.get()); - } else response.getWriter().println( -"LDAP query results: nothing found." -); + found = true; + } + } + if (!found) { + response.getWriter().println( + "LDAP query results: nothing found for query: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(filter) + ); } } catch (javax.naming.NamingException e) { throw new ServletException(e); - }finally{ - try { - ads.closeDirContext(); + } finally { + try { + ads.closeDirContext(); } catch (Exception e) { throw new ServletException(e); } - } + } } // end doPost From ce6600676e2b8094d765e9c579855082e164aa2c Mon Sep 17 00:00:00 2001 From: davewichers Date: Mon, 6 Apr 2020 14:24:34 -0400 Subject: [PATCH 38/92] Improve scoring for Rapid7 AppSpider scorecard generation. --- .../benchmark/score/parsers/Rapid7Reader.java | 68 ++++++++++++++++--- 1 file changed, 59 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/score/parsers/Rapid7Reader.java b/src/main/java/org/owasp/benchmark/score/parsers/Rapid7Reader.java index a279e73c4b..635410c880 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/Rapid7Reader.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/Rapid7Reader.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -59,7 +59,7 @@ public TestResults parse( Node root ) throws Exception { TestCaseResult tcr = parseRapid7Item(issue); if (tcr != null ) { tr.put(tcr); - System.out.println( tcr.getNumber() + ", " + tcr.getCWE() + ", " + tcr.getEvidence() ); + //System.out.println( tcr.getCWE() + ", " + tcr.getEvidence() + ", " + tcr.getNumber() ); } } catch( Exception e ) { e.printStackTrace(); @@ -155,7 +155,7 @@ private TestCaseResult parseRapid7Item( Node flaw ) throws Exception { Node vulnId = getNamedChild("CweId", flaw); if ( vulnId != null ) { String cweNum = vulnId.getTextContent(); - int cwe = cweLookup( cweNum ); + int cwe = cweLookup( cweNum, evidence ); tcr.setCWE( cwe ); } @@ -185,13 +185,62 @@ private TestCaseResult parseRapid7Item( Node flaw ) throws Exception { } - private static int cweLookup( String cweNum ) { - if ( cweNum == null || cweNum.isEmpty() ) { - return 0000; + private static int cweLookup( String cweNum, String evidence ) { + int cwe = 0000; + if ( cweNum != null && !cweNum.isEmpty() ) { + cwe = Integer.parseInt( cweNum ); } - int cwe = Integer.parseInt( cweNum ); + switch( cwe ) { - case 80 : return 614; // insecure cookie use + case 0 : switch( evidence ) { + // These are the ones we've seen. Print out any new ones to make sure its mapped properly. + case "Reflection": return 79; // Causes their XSS score to go from 0% to: TP:34.55% FP:11.48% + + case "Customer Authentication Credential (Username)": + case "Email address": + case "Javascript \"strict mode\" is not defined.": + case "Left arrow": + case "Mobile Browser": + case "Stored Discover number": + case "Stored MasterCard number": + case "Stored Visa number": + case "Strict-Transport-Security header not found in the response from HTTPS site": + case "The Content Security Policy hasn't been declared either through the meta-tag or the header.": + case "Undefined charset attribute": + case "X-Content-Type-Options header not found": + case "X-Frame-Options HTTP header checking": + case "X-XSS-Protection header not found": return 0; + default: { + // If this prints out anything new, add to this mapping so we know it's mapped properly. + System.out.println("Found new unmapped finding with evidence: " + evidence); + return 0; // In case they add any new mappings + } + } + case 79 : switch( evidence ) { + case "HttpOnly attribute not set": return 1004; // Mapping to more specific CWE + default: return 79; // Leave the rest as is + } + case 80 : switch( evidence ) { + // These map Basic XSS to XSS - Causing their XSS TP rate to go up almost 12% + case "Filter evasion - script alert injection, no round brackets": return 79; + case "Filter evasion - script prompt injection, no round brackets": return 79; + case "SameSite attribute is not set to \"strict\" or \"lax\"": return 352; + case "Unfiltered - \ No newline at end of file + diff --git a/src/main/resources/scorecard/commercialAveTemplate.html b/src/main/resources/scorecard/commercialAveTemplate.html index fef6ca440d..a2ad158bda 100644 --- a/src/main/resources/scorecard/commercialAveTemplate.html +++ b/src/main/resources/scorecard/commercialAveTemplate.html @@ -70,7 +70,7 @@

OWASP Benchmark Scorecard for Commercial Tools

The following is the scorecard showing how well the commercial tools collectively performed against version ${version} of the Benchmark. For each vulnerability it shows the lowest, average, and highest scores across all the commercial tools included in this scorecard calculation.

-

For more information, please visit the OWASP Benchmark Project Site. +

For more information, please visit the OWASP Benchmark Project Site.

@@ -139,4 +139,3 @@

Key

- diff --git a/src/main/resources/scorecard/template.html b/src/main/resources/scorecard/template.html index b08c0466c5..7433eb0a10 100644 --- a/src/main/resources/scorecard/template.html +++ b/src/main/resources/scorecard/template.html @@ -69,7 +69,7 @@

${title}

it is difficult to understand their strengths and weaknesses, and compare them to each other. The Benchmark contains thousands of test cases that are fully runnable and exploitable. The following is the scorecard for the tool ${tool} against version ${version} of the Benchmark. It shows how well this tool finds true positives and avoids false positives in the Benchmark test cases.

-

For more information, please visit the OWASP Benchmark Project Site. +

For more information, please visit the OWASP Benchmark Project Site. ${image} @@ -158,4 +158,3 @@

Key

- diff --git a/src/main/resources/scorecard/vulntemplate.html b/src/main/resources/scorecard/vulntemplate.html index f591f9e08e..922dbdb860 100644 --- a/src/main/resources/scorecard/vulntemplate.html +++ b/src/main/resources/scorecard/vulntemplate.html @@ -70,7 +70,7 @@

${title}

The following is the scorecard showing how well all the tools perform against ${vulnerability} in version ${version} of the Benchmark. It shows how well each tool finds true positives and avoids false positives for that type of vulnerability in the Benchmark test cases.

-

For more information, please visit the OWASP Benchmark Project Site. +

For more information, please visit the OWASP Benchmark Project Site. @@ -135,4 +135,3 @@

Key

- From 58baeca0681d1c251e2326c471a0bcc38a1a195f Mon Sep 17 00:00:00 2001 From: davewichers Date: Thu, 3 Dec 2020 14:48:43 -0500 Subject: [PATCH 76/92] Fix various minor HTML issues in generated UI like illegal character encodings, missing closing tags, extra erroneous attributes, etc. --- .gitignore | 5 +++++ src/main/webapp/cmdi-00/BenchmarkTest00006.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00007.html | 6 +++--- src/main/webapp/cmdi-00/BenchmarkTest00015.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00017.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00077.html | 6 +++--- src/main/webapp/cmdi-00/BenchmarkTest00090.html | 6 +++--- src/main/webapp/cmdi-00/BenchmarkTest00091.html | 6 +++--- src/main/webapp/cmdi-00/BenchmarkTest00092.html | 6 +++--- src/main/webapp/cmdi-00/BenchmarkTest00093.html | 6 +++--- src/main/webapp/cmdi-00/BenchmarkTest00158.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00159.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00171.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00172.html | 6 +++--- src/main/webapp/cmdi-00/BenchmarkTest00173.html | 6 +++--- src/main/webapp/cmdi-00/BenchmarkTest00174.html | 6 +++--- src/main/webapp/cmdi-00/BenchmarkTest00175.html | 6 +++--- src/main/webapp/cmdi-00/BenchmarkTest00176.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00177.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00293.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00294.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00295.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00302.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00303.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00304.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00305.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00306.html | 6 +++--- src/main/webapp/cmdi-00/BenchmarkTest00307.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00308.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00309.html | 6 +++--- src/main/webapp/cmdi-00/BenchmarkTest00310.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00311.html | 6 +++--- src/main/webapp/cmdi-00/BenchmarkTest00407.html | 2 +- src/main/webapp/cmdi-00/BenchmarkTest00408.html | 2 +- src/main/webapp/cmdi-00/BenchmarkTest00410.html | 2 +- src/main/webapp/cmdi-00/BenchmarkTest00411.html | 2 +- src/main/webapp/cmdi-00/BenchmarkTest00412.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00495.html | 2 +- src/main/webapp/cmdi-00/BenchmarkTest00496.html | 2 +- src/main/webapp/cmdi-00/BenchmarkTest00497.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00498.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00558.html | 7 +++---- src/main/webapp/cmdi-00/BenchmarkTest00559.html | 7 +++---- src/main/webapp/cmdi-00/BenchmarkTest00567.html | 7 +++---- src/main/webapp/cmdi-00/BenchmarkTest00568.html | 7 +++---- src/main/webapp/cmdi-00/BenchmarkTest00569.html | 7 +++---- src/main/webapp/cmdi-00/BenchmarkTest00570.html | 9 ++++----- src/main/webapp/cmdi-00/BenchmarkTest00571.html | 9 ++++----- src/main/webapp/cmdi-00/BenchmarkTest00572.html | 7 +++---- src/main/webapp/cmdi-00/BenchmarkTest00573.html | 9 ++++----- src/main/webapp/cmdi-00/BenchmarkTest00574.html | 9 ++++----- src/main/webapp/cmdi-00/BenchmarkTest00575.html | 7 +++---- src/main/webapp/cmdi-00/BenchmarkTest00576.html | 7 +++---- src/main/webapp/cmdi-00/BenchmarkTest00659.html | 2 +- src/main/webapp/cmdi-00/BenchmarkTest00739.html | 2 +- src/main/webapp/cmdi-00/BenchmarkTest00740.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00743.html | 2 +- src/main/webapp/cmdi-00/BenchmarkTest00814.html | 2 +- src/main/webapp/cmdi-00/BenchmarkTest00815.html | 2 +- src/main/webapp/cmdi-00/BenchmarkTest00816.html | 2 +- src/main/webapp/cmdi-00/BenchmarkTest00823.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00824.html | 2 +- src/main/webapp/cmdi-00/BenchmarkTest00825.html | 4 ++-- src/main/webapp/cmdi-00/BenchmarkTest00826.html | 2 +- src/main/webapp/cmdi-00/BenchmarkTest00827.html | 4 ++-- src/main/webapp/cmdi-01/BenchmarkTest00897.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest00907.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest00908.html | 4 ++-- src/main/webapp/cmdi-01/BenchmarkTest00909.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest00968.html | 6 +++--- src/main/webapp/cmdi-01/BenchmarkTest00969.html | 6 +++--- src/main/webapp/cmdi-01/BenchmarkTest00970.html | 6 +++--- src/main/webapp/cmdi-01/BenchmarkTest00978.html | 6 +++--- src/main/webapp/cmdi-01/BenchmarkTest00979.html | 6 +++--- src/main/webapp/cmdi-01/BenchmarkTest00980.html | 6 +++--- src/main/webapp/cmdi-01/BenchmarkTest00981.html | 6 +++--- src/main/webapp/cmdi-01/BenchmarkTest00982.html | 6 +++--- src/main/webapp/cmdi-01/BenchmarkTest00983.html | 6 +++--- src/main/webapp/cmdi-01/BenchmarkTest01064.html | 4 ++-- src/main/webapp/cmdi-01/BenchmarkTest01065.html | 4 ++-- src/main/webapp/cmdi-01/BenchmarkTest01066.html | 6 +++--- src/main/webapp/cmdi-01/BenchmarkTest01067.html | 6 +++--- src/main/webapp/cmdi-01/BenchmarkTest01068.html | 4 ++-- src/main/webapp/cmdi-01/BenchmarkTest01182.html | 4 ++-- src/main/webapp/cmdi-01/BenchmarkTest01189.html | 4 ++-- src/main/webapp/cmdi-01/BenchmarkTest01190.html | 6 +++--- src/main/webapp/cmdi-01/BenchmarkTest01191.html | 6 +++--- src/main/webapp/cmdi-01/BenchmarkTest01192.html | 6 +++--- src/main/webapp/cmdi-01/BenchmarkTest01193.html | 4 ++-- src/main/webapp/cmdi-01/BenchmarkTest01194.html | 4 ++-- src/main/webapp/cmdi-01/BenchmarkTest01269.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01287.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01288.html | 4 ++-- src/main/webapp/cmdi-01/BenchmarkTest01289.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01290.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01353.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01361.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01363.html | 4 ++-- src/main/webapp/cmdi-01/BenchmarkTest01364.html | 4 ++-- src/main/webapp/cmdi-01/BenchmarkTest01430.html | 7 +++---- src/main/webapp/cmdi-01/BenchmarkTest01440.html | 7 +++---- src/main/webapp/cmdi-01/BenchmarkTest01441.html | 7 +++---- src/main/webapp/cmdi-01/BenchmarkTest01442.html | 9 ++++----- src/main/webapp/cmdi-01/BenchmarkTest01443.html | 7 +++---- src/main/webapp/cmdi-01/BenchmarkTest01444.html | 9 ++++----- src/main/webapp/cmdi-01/BenchmarkTest01445.html | 9 ++++----- src/main/webapp/cmdi-01/BenchmarkTest01446.html | 7 +++---- src/main/webapp/cmdi-01/BenchmarkTest01516.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01517.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01526.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01527.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01531.html | 4 ++-- src/main/webapp/cmdi-01/BenchmarkTest01532.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01533.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01601.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01606.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01607.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01608.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01672.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01673.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01674.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01685.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01686.html | 4 ++-- src/main/webapp/cmdi-01/BenchmarkTest01687.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01688.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01689.html | 2 +- src/main/webapp/cmdi-01/BenchmarkTest01690.html | 4 ++-- src/main/webapp/cmdi-01/BenchmarkTest01691.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest01692.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest01693.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest01791.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest01792.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest01793.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest01795.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest01796.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest01850.html | 6 +++--- src/main/webapp/cmdi-02/BenchmarkTest01851.html | 6 +++--- src/main/webapp/cmdi-02/BenchmarkTest01852.html | 6 +++--- src/main/webapp/cmdi-02/BenchmarkTest01864.html | 6 +++--- src/main/webapp/cmdi-02/BenchmarkTest01865.html | 6 +++--- src/main/webapp/cmdi-02/BenchmarkTest01928.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest01929.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest01936.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest01937.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest01938.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest01939.html | 6 +++--- src/main/webapp/cmdi-02/BenchmarkTest01940.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest01941.html | 6 +++--- src/main/webapp/cmdi-02/BenchmarkTest01942.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest01943.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest01944.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest02058.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest02059.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest02067.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest02068.html | 6 +++--- src/main/webapp/cmdi-02/BenchmarkTest02069.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest02070.html | 6 +++--- src/main/webapp/cmdi-02/BenchmarkTest02148.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02149.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02153.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest02154.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02155.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02156.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02243.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02244.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02249.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02253.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02333.html | 7 +++---- src/main/webapp/cmdi-02/BenchmarkTest02334.html | 7 +++---- src/main/webapp/cmdi-02/BenchmarkTest02335.html | 7 +++---- src/main/webapp/cmdi-02/BenchmarkTest02336.html | 7 +++---- src/main/webapp/cmdi-02/BenchmarkTest02340.html | 7 +++---- src/main/webapp/cmdi-02/BenchmarkTest02341.html | 9 ++++----- src/main/webapp/cmdi-02/BenchmarkTest02342.html | 7 +++---- src/main/webapp/cmdi-02/BenchmarkTest02343.html | 7 +++---- src/main/webapp/cmdi-02/BenchmarkTest02344.html | 9 ++++----- src/main/webapp/cmdi-02/BenchmarkTest02412.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02413.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02428.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02431.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02432.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02433.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02510.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02511.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02512.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest02513.html | 4 ++-- src/main/webapp/cmdi-02/BenchmarkTest02514.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02515.html | 2 +- src/main/webapp/cmdi-02/BenchmarkTest02516.html | 2 +- src/main/webapp/cmdi-03/BenchmarkTest02517.html | 4 ++-- src/main/webapp/cmdi-03/BenchmarkTest02518.html | 4 ++-- src/main/webapp/cmdi-03/BenchmarkTest02610.html | 2 +- src/main/webapp/cmdi-03/BenchmarkTest02611.html | 2 +- src/main/webapp/cmdi-03/BenchmarkTest02612.html | 4 ++-- src/main/webapp/cmdi-03/BenchmarkTest02613.html | 4 ++-- src/main/webapp/cmdi-03/BenchmarkTest02697.html | 2 +- src/main/webapp/cmdi-03/BenchmarkTest02698.html | 2 +- src/main/webapp/cmdi-03/BenchmarkTest02713.html | 4 ++-- src/main/webapp/cmdi-03/BenchmarkTest02714.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00005.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00035.html | 7 +++---- src/main/webapp/crypto-00/BenchmarkTest00050.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00053.html | 6 +++--- src/main/webapp/crypto-00/BenchmarkTest00054.html | 6 +++--- src/main/webapp/crypto-00/BenchmarkTest00055.html | 6 +++--- src/main/webapp/crypto-00/BenchmarkTest00056.html | 6 +++--- src/main/webapp/crypto-00/BenchmarkTest00057.html | 6 +++--- src/main/webapp/crypto-00/BenchmarkTest00058.html | 6 +++--- src/main/webapp/crypto-00/BenchmarkTest00059.html | 6 +++--- src/main/webapp/crypto-00/BenchmarkTest00119.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00120.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00121.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00122.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00123.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00124.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00125.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00126.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00127.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00128.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00129.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00130.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00208.html | 9 ++++----- src/main/webapp/crypto-00/BenchmarkTest00209.html | 9 ++++----- src/main/webapp/crypto-00/BenchmarkTest00210.html | 9 ++++----- src/main/webapp/crypto-00/BenchmarkTest00211.html | 9 ++++----- src/main/webapp/crypto-00/BenchmarkTest00212.html | 9 ++++----- src/main/webapp/crypto-00/BenchmarkTest00213.html | 9 ++++----- src/main/webapp/crypto-00/BenchmarkTest00214.html | 9 ++++----- src/main/webapp/crypto-00/BenchmarkTest00254.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00255.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00256.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00257.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00258.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00259.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00260.html | 4 ++-- src/main/webapp/crypto-00/BenchmarkTest00352.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00353.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00357.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00358.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00443.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00447.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00448.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00521.html | 7 +++---- src/main/webapp/crypto-00/BenchmarkTest00522.html | 7 +++---- src/main/webapp/crypto-00/BenchmarkTest00523.html | 7 +++---- src/main/webapp/crypto-00/BenchmarkTest00524.html | 7 +++---- src/main/webapp/crypto-00/BenchmarkTest00609.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00610.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00614.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00615.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00684.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00685.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00689.html | 2 +- src/main/webapp/crypto-00/BenchmarkTest00690.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest00775.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest00776.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest00777.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest00778.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest00779.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest00780.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest00781.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest00782.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest00853.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest00857.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest00858.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest00942.html | 6 +++--- src/main/webapp/crypto-01/BenchmarkTest00943.html | 6 +++--- src/main/webapp/crypto-01/BenchmarkTest00944.html | 6 +++--- src/main/webapp/crypto-01/BenchmarkTest00945.html | 6 +++--- src/main/webapp/crypto-01/BenchmarkTest00946.html | 6 +++--- src/main/webapp/crypto-01/BenchmarkTest01015.html | 4 ++-- src/main/webapp/crypto-01/BenchmarkTest01016.html | 4 ++-- src/main/webapp/crypto-01/BenchmarkTest01017.html | 4 ++-- src/main/webapp/crypto-01/BenchmarkTest01018.html | 4 ++-- src/main/webapp/crypto-01/BenchmarkTest01019.html | 4 ++-- src/main/webapp/crypto-01/BenchmarkTest01020.html | 4 ++-- src/main/webapp/crypto-01/BenchmarkTest01021.html | 4 ++-- src/main/webapp/crypto-01/BenchmarkTest01022.html | 4 ++-- src/main/webapp/crypto-01/BenchmarkTest01099.html | 9 ++++----- src/main/webapp/crypto-01/BenchmarkTest01100.html | 9 ++++----- src/main/webapp/crypto-01/BenchmarkTest01101.html | 9 ++++----- src/main/webapp/crypto-01/BenchmarkTest01102.html | 9 ++++----- src/main/webapp/crypto-01/BenchmarkTest01103.html | 9 ++++----- src/main/webapp/crypto-01/BenchmarkTest01104.html | 9 ++++----- src/main/webapp/crypto-01/BenchmarkTest01105.html | 9 ++++----- src/main/webapp/crypto-01/BenchmarkTest01106.html | 9 ++++----- src/main/webapp/crypto-01/BenchmarkTest01107.html | 9 ++++----- src/main/webapp/crypto-01/BenchmarkTest01108.html | 9 ++++----- src/main/webapp/crypto-01/BenchmarkTest01147.html | 4 ++-- src/main/webapp/crypto-01/BenchmarkTest01148.html | 4 ++-- src/main/webapp/crypto-01/BenchmarkTest01149.html | 4 ++-- src/main/webapp/crypto-01/BenchmarkTest01150.html | 4 ++-- src/main/webapp/crypto-01/BenchmarkTest01151.html | 4 ++-- src/main/webapp/crypto-01/BenchmarkTest01152.html | 4 ++-- src/main/webapp/crypto-01/BenchmarkTest01153.html | 4 ++-- src/main/webapp/crypto-01/BenchmarkTest01228.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest01229.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest01318.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest01319.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest01323.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest01324.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest01398.html | 7 +++---- src/main/webapp/crypto-01/BenchmarkTest01399.html | 7 +++---- src/main/webapp/crypto-01/BenchmarkTest01400.html | 7 +++---- src/main/webapp/crypto-01/BenchmarkTest01401.html | 7 +++---- src/main/webapp/crypto-01/BenchmarkTest01481.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest01482.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest01486.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest01487.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest01566.html | 2 +- src/main/webapp/crypto-01/BenchmarkTest01567.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest01634.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest01635.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest01636.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest01637.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest01638.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest01639.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest01640.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest01641.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest01737.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest01741.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest01742.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest01822.html | 6 +++--- src/main/webapp/crypto-02/BenchmarkTest01823.html | 6 +++--- src/main/webapp/crypto-02/BenchmarkTest01824.html | 6 +++--- src/main/webapp/crypto-02/BenchmarkTest01825.html | 6 +++--- src/main/webapp/crypto-02/BenchmarkTest01826.html | 6 +++--- src/main/webapp/crypto-02/BenchmarkTest01827.html | 6 +++--- src/main/webapp/crypto-02/BenchmarkTest01828.html | 6 +++--- src/main/webapp/crypto-02/BenchmarkTest01829.html | 6 +++--- src/main/webapp/crypto-02/BenchmarkTest01830.html | 6 +++--- src/main/webapp/crypto-02/BenchmarkTest01895.html | 4 ++-- src/main/webapp/crypto-02/BenchmarkTest01896.html | 4 ++-- src/main/webapp/crypto-02/BenchmarkTest01897.html | 4 ++-- src/main/webapp/crypto-02/BenchmarkTest01898.html | 4 ++-- src/main/webapp/crypto-02/BenchmarkTest01899.html | 4 ++-- src/main/webapp/crypto-02/BenchmarkTest01900.html | 4 ++-- src/main/webapp/crypto-02/BenchmarkTest01901.html | 4 ++-- src/main/webapp/crypto-02/BenchmarkTest01975.html | 9 ++++----- src/main/webapp/crypto-02/BenchmarkTest01976.html | 9 ++++----- src/main/webapp/crypto-02/BenchmarkTest01977.html | 9 ++++----- src/main/webapp/crypto-02/BenchmarkTest01978.html | 9 ++++----- src/main/webapp/crypto-02/BenchmarkTest01979.html | 9 ++++----- src/main/webapp/crypto-02/BenchmarkTest01980.html | 9 ++++----- src/main/webapp/crypto-02/BenchmarkTest01981.html | 9 ++++----- src/main/webapp/crypto-02/BenchmarkTest01982.html | 9 ++++----- src/main/webapp/crypto-02/BenchmarkTest02017.html | 4 ++-- src/main/webapp/crypto-02/BenchmarkTest02018.html | 4 ++-- src/main/webapp/crypto-02/BenchmarkTest02019.html | 4 ++-- src/main/webapp/crypto-02/BenchmarkTest02020.html | 4 ++-- src/main/webapp/crypto-02/BenchmarkTest02021.html | 4 ++-- src/main/webapp/crypto-02/BenchmarkTest02022.html | 4 ++-- src/main/webapp/crypto-02/BenchmarkTest02023.html | 4 ++-- src/main/webapp/crypto-02/BenchmarkTest02024.html | 4 ++-- src/main/webapp/crypto-02/BenchmarkTest02103.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest02193.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest02194.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest02289.html | 7 +++---- src/main/webapp/crypto-02/BenchmarkTest02290.html | 7 +++---- src/main/webapp/crypto-02/BenchmarkTest02291.html | 7 +++---- src/main/webapp/crypto-02/BenchmarkTest02292.html | 7 +++---- src/main/webapp/crypto-02/BenchmarkTest02293.html | 7 +++---- src/main/webapp/crypto-02/BenchmarkTest02294.html | 7 +++---- src/main/webapp/crypto-02/BenchmarkTest02295.html | 7 +++---- src/main/webapp/crypto-02/BenchmarkTest02296.html | 7 +++---- src/main/webapp/crypto-02/BenchmarkTest02297.html | 7 +++---- src/main/webapp/crypto-02/BenchmarkTest02298.html | 7 +++---- src/main/webapp/crypto-02/BenchmarkTest02372.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest02373.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest02458.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest02547.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest02548.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest02549.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest02550.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest02551.html | 2 +- src/main/webapp/crypto-02/BenchmarkTest02552.html | 2 +- src/main/webapp/crypto-03/BenchmarkTest02658.html | 2 +- src/main/webapp/crypto-03/BenchmarkTest02662.html | 2 +- src/main/webapp/crypto-03/BenchmarkTest02663.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00003.html | 6 +++--- src/main/webapp/hash-00/BenchmarkTest00009.html | 9 ++++----- src/main/webapp/hash-00/BenchmarkTest00022.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00046.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00069.html | 6 +++--- src/main/webapp/hash-00/BenchmarkTest00070.html | 6 +++--- src/main/webapp/hash-00/BenchmarkTest00071.html | 6 +++--- src/main/webapp/hash-00/BenchmarkTest00072.html | 6 +++--- src/main/webapp/hash-00/BenchmarkTest00073.html | 6 +++--- src/main/webapp/hash-00/BenchmarkTest00074.html | 6 +++--- src/main/webapp/hash-00/BenchmarkTest00075.html | 6 +++--- src/main/webapp/hash-00/BenchmarkTest00076.html | 6 +++--- src/main/webapp/hash-00/BenchmarkTest00141.html | 4 ++-- src/main/webapp/hash-00/BenchmarkTest00142.html | 4 ++-- src/main/webapp/hash-00/BenchmarkTest00143.html | 4 ++-- src/main/webapp/hash-00/BenchmarkTest00223.html | 9 ++++----- src/main/webapp/hash-00/BenchmarkTest00224.html | 9 ++++----- src/main/webapp/hash-00/BenchmarkTest00225.html | 9 ++++----- src/main/webapp/hash-00/BenchmarkTest00226.html | 9 ++++----- src/main/webapp/hash-00/BenchmarkTest00227.html | 9 ++++----- src/main/webapp/hash-00/BenchmarkTest00228.html | 9 ++++----- src/main/webapp/hash-00/BenchmarkTest00229.html | 9 ++++----- src/main/webapp/hash-00/BenchmarkTest00266.html | 4 ++-- src/main/webapp/hash-00/BenchmarkTest00267.html | 4 ++-- src/main/webapp/hash-00/BenchmarkTest00268.html | 4 ++-- src/main/webapp/hash-00/BenchmarkTest00269.html | 4 ++-- src/main/webapp/hash-00/BenchmarkTest00270.html | 4 ++-- src/main/webapp/hash-00/BenchmarkTest00271.html | 4 ++-- src/main/webapp/hash-00/BenchmarkTest00272.html | 4 ++-- src/main/webapp/hash-00/BenchmarkTest00273.html | 4 ++-- src/main/webapp/hash-00/BenchmarkTest00274.html | 4 ++-- src/main/webapp/hash-00/BenchmarkTest00346.html | 7 +++---- src/main/webapp/hash-00/BenchmarkTest00372.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00373.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00462.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00463.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00531.html | 7 +++---- src/main/webapp/hash-00/BenchmarkTest00532.html | 7 +++---- src/main/webapp/hash-00/BenchmarkTest00533.html | 7 +++---- src/main/webapp/hash-00/BenchmarkTest00534.html | 7 +++---- src/main/webapp/hash-00/BenchmarkTest00535.html | 7 +++---- src/main/webapp/hash-00/BenchmarkTest00536.html | 7 +++---- src/main/webapp/hash-00/BenchmarkTest00537.html | 7 +++---- src/main/webapp/hash-00/BenchmarkTest00538.html | 7 +++---- src/main/webapp/hash-00/BenchmarkTest00539.html | 7 +++---- src/main/webapp/hash-00/BenchmarkTest00540.html | 7 +++---- src/main/webapp/hash-00/BenchmarkTest00634.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00635.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00639.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00640.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00704.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00705.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00709.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00710.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00789.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00790.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00791.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00792.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00793.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00794.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00795.html | 2 +- src/main/webapp/hash-00/BenchmarkTest00796.html | 2 +- src/main/webapp/hash-01/BenchmarkTest00797.html | 2 +- src/main/webapp/hash-01/BenchmarkTest00798.html | 2 +- src/main/webapp/hash-01/BenchmarkTest00868.html | 2 +- src/main/webapp/hash-01/BenchmarkTest00872.html | 2 +- src/main/webapp/hash-01/BenchmarkTest00873.html | 2 +- src/main/webapp/hash-01/BenchmarkTest00877.html | 2 +- src/main/webapp/hash-01/BenchmarkTest00878.html | 2 +- src/main/webapp/hash-01/BenchmarkTest00961.html | 6 +++--- src/main/webapp/hash-01/BenchmarkTest00962.html | 6 +++--- src/main/webapp/hash-01/BenchmarkTest00963.html | 6 +++--- src/main/webapp/hash-01/BenchmarkTest00964.html | 6 +++--- src/main/webapp/hash-01/BenchmarkTest00965.html | 6 +++--- src/main/webapp/hash-01/BenchmarkTest00966.html | 6 +++--- src/main/webapp/hash-01/BenchmarkTest00967.html | 6 +++--- src/main/webapp/hash-01/BenchmarkTest01037.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01038.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01039.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01040.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01041.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01042.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01043.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01044.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01045.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01120.html | 9 ++++----- src/main/webapp/hash-01/BenchmarkTest01121.html | 9 ++++----- src/main/webapp/hash-01/BenchmarkTest01122.html | 9 ++++----- src/main/webapp/hash-01/BenchmarkTest01123.html | 9 ++++----- src/main/webapp/hash-01/BenchmarkTest01124.html | 9 ++++----- src/main/webapp/hash-01/BenchmarkTest01125.html | 9 ++++----- src/main/webapp/hash-01/BenchmarkTest01126.html | 9 ++++----- src/main/webapp/hash-01/BenchmarkTest01164.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01165.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01166.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01167.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01168.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01169.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01170.html | 4 ++-- src/main/webapp/hash-01/BenchmarkTest01244.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01248.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01249.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01333.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01334.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01410.html | 7 +++---- src/main/webapp/hash-01/BenchmarkTest01411.html | 7 +++---- src/main/webapp/hash-01/BenchmarkTest01412.html | 7 +++---- src/main/webapp/hash-01/BenchmarkTest01413.html | 7 +++---- src/main/webapp/hash-01/BenchmarkTest01414.html | 7 +++---- src/main/webapp/hash-01/BenchmarkTest01415.html | 7 +++---- src/main/webapp/hash-01/BenchmarkTest01416.html | 7 +++---- src/main/webapp/hash-01/BenchmarkTest01576.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01577.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01581.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01582.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01649.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01650.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01651.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01652.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01653.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01654.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01655.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01656.html | 2 +- src/main/webapp/hash-01/BenchmarkTest01757.html | 2 +- src/main/webapp/hash-02/BenchmarkTest01761.html | 2 +- src/main/webapp/hash-02/BenchmarkTest01762.html | 2 +- src/main/webapp/hash-02/BenchmarkTest01766.html | 2 +- src/main/webapp/hash-02/BenchmarkTest01844.html | 6 +++--- src/main/webapp/hash-02/BenchmarkTest01845.html | 6 +++--- src/main/webapp/hash-02/BenchmarkTest01846.html | 6 +++--- src/main/webapp/hash-02/BenchmarkTest01847.html | 6 +++--- src/main/webapp/hash-02/BenchmarkTest01848.html | 6 +++--- src/main/webapp/hash-02/BenchmarkTest01849.html | 6 +++--- src/main/webapp/hash-02/BenchmarkTest01911.html | 4 ++-- src/main/webapp/hash-02/BenchmarkTest01912.html | 4 ++-- src/main/webapp/hash-02/BenchmarkTest01913.html | 4 ++-- src/main/webapp/hash-02/BenchmarkTest01993.html | 9 ++++----- src/main/webapp/hash-02/BenchmarkTest01994.html | 9 ++++----- src/main/webapp/hash-02/BenchmarkTest01995.html | 9 ++++----- src/main/webapp/hash-02/BenchmarkTest01996.html | 9 ++++----- src/main/webapp/hash-02/BenchmarkTest01997.html | 9 ++++----- src/main/webapp/hash-02/BenchmarkTest01998.html | 9 ++++----- src/main/webapp/hash-02/BenchmarkTest02041.html | 4 ++-- src/main/webapp/hash-02/BenchmarkTest02042.html | 4 ++-- src/main/webapp/hash-02/BenchmarkTest02043.html | 4 ++-- src/main/webapp/hash-02/BenchmarkTest02044.html | 4 ++-- src/main/webapp/hash-02/BenchmarkTest02118.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02119.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02213.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02214.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02218.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02219.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02307.html | 7 +++---- src/main/webapp/hash-02/BenchmarkTest02308.html | 7 +++---- src/main/webapp/hash-02/BenchmarkTest02309.html | 7 +++---- src/main/webapp/hash-02/BenchmarkTest02310.html | 7 +++---- src/main/webapp/hash-02/BenchmarkTest02311.html | 7 +++---- src/main/webapp/hash-02/BenchmarkTest02312.html | 7 +++---- src/main/webapp/hash-02/BenchmarkTest02387.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02388.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02392.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02393.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02477.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02478.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02573.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02574.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02575.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02576.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02577.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02672.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02673.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02677.html | 2 +- src/main/webapp/hash-02/BenchmarkTest02678.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest00012.html | 4 ++-- src/main/webapp/ldapi-00/BenchmarkTest00021.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest00138.html | 4 ++-- src/main/webapp/ldapi-00/BenchmarkTest00139.html | 4 ++-- src/main/webapp/ldapi-00/BenchmarkTest00367.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest00530.html | 7 +++---- src/main/webapp/ldapi-00/BenchmarkTest00630.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest00694.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest00695.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest00947.html | 6 +++--- src/main/webapp/ldapi-00/BenchmarkTest00948.html | 6 +++--- src/main/webapp/ldapi-00/BenchmarkTest00959.html | 6 +++--- src/main/webapp/ldapi-00/BenchmarkTest01023.html | 4 ++-- src/main/webapp/ldapi-00/BenchmarkTest01024.html | 4 ++-- src/main/webapp/ldapi-00/BenchmarkTest01154.html | 4 ++-- src/main/webapp/ldapi-00/BenchmarkTest01243.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest01402.html | 7 +++---- src/main/webapp/ldapi-00/BenchmarkTest01491.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest01492.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest01501.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest01756.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest01831.html | 6 +++--- src/main/webapp/ldapi-00/BenchmarkTest01832.html | 6 +++--- src/main/webapp/ldapi-00/BenchmarkTest01902.html | 4 ++-- src/main/webapp/ldapi-00/BenchmarkTest01903.html | 4 ++-- src/main/webapp/ldapi-00/BenchmarkTest01909.html | 4 ++-- src/main/webapp/ldapi-00/BenchmarkTest02025.html | 4 ++-- src/main/webapp/ldapi-00/BenchmarkTest02036.html | 4 ++-- src/main/webapp/ldapi-00/BenchmarkTest02037.html | 4 ++-- src/main/webapp/ldapi-00/BenchmarkTest02104.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest02114.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest02208.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest02299.html | 7 +++---- src/main/webapp/ldapi-00/BenchmarkTest02305.html | 7 +++---- src/main/webapp/ldapi-00/BenchmarkTest02306.html | 7 +++---- src/main/webapp/ldapi-00/BenchmarkTest02472.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest02553.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest02571.html | 2 +- src/main/webapp/ldapi-00/BenchmarkTest02572.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00001.html | 6 +++--- src/main/webapp/pathtraver-00/BenchmarkTest00002.html | 6 +++--- src/main/webapp/pathtraver-00/BenchmarkTest00011.html | 4 ++-- src/main/webapp/pathtraver-00/BenchmarkTest00060.html | 6 +++--- src/main/webapp/pathtraver-00/BenchmarkTest00061.html | 6 +++--- src/main/webapp/pathtraver-00/BenchmarkTest00062.html | 6 +++--- src/main/webapp/pathtraver-00/BenchmarkTest00063.html | 6 +++--- src/main/webapp/pathtraver-00/BenchmarkTest00064.html | 6 +++--- src/main/webapp/pathtraver-00/BenchmarkTest00065.html | 6 +++--- src/main/webapp/pathtraver-00/BenchmarkTest00131.html | 4 ++-- src/main/webapp/pathtraver-00/BenchmarkTest00132.html | 4 ++-- src/main/webapp/pathtraver-00/BenchmarkTest00133.html | 4 ++-- src/main/webapp/pathtraver-00/BenchmarkTest00134.html | 4 ++-- src/main/webapp/pathtraver-00/BenchmarkTest00135.html | 4 ++-- src/main/webapp/pathtraver-00/BenchmarkTest00136.html | 4 ++-- src/main/webapp/pathtraver-00/BenchmarkTest00137.html | 4 ++-- src/main/webapp/pathtraver-00/BenchmarkTest00215.html | 9 ++++----- src/main/webapp/pathtraver-00/BenchmarkTest00216.html | 9 ++++----- src/main/webapp/pathtraver-00/BenchmarkTest00217.html | 9 ++++----- src/main/webapp/pathtraver-00/BenchmarkTest00218.html | 9 ++++----- src/main/webapp/pathtraver-00/BenchmarkTest00219.html | 9 ++++----- src/main/webapp/pathtraver-00/BenchmarkTest00220.html | 9 ++++----- src/main/webapp/pathtraver-00/BenchmarkTest00221.html | 9 ++++----- src/main/webapp/pathtraver-00/BenchmarkTest00222.html | 9 ++++----- src/main/webapp/pathtraver-00/BenchmarkTest00261.html | 4 ++-- src/main/webapp/pathtraver-00/BenchmarkTest00262.html | 4 ++-- src/main/webapp/pathtraver-00/BenchmarkTest00263.html | 4 ++-- src/main/webapp/pathtraver-00/BenchmarkTest00264.html | 4 ++-- src/main/webapp/pathtraver-00/BenchmarkTest00265.html | 4 ++-- src/main/webapp/pathtraver-00/BenchmarkTest00362.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00363.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00452.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00453.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00457.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00458.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00525.html | 7 +++---- src/main/webapp/pathtraver-00/BenchmarkTest00526.html | 7 +++---- src/main/webapp/pathtraver-00/BenchmarkTest00527.html | 7 +++---- src/main/webapp/pathtraver-00/BenchmarkTest00528.html | 7 +++---- src/main/webapp/pathtraver-00/BenchmarkTest00529.html | 7 +++---- src/main/webapp/pathtraver-00/BenchmarkTest00619.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00620.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00624.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00625.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00629.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00699.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00700.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00783.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00784.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00785.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00786.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00787.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00788.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00862.html | 2 +- src/main/webapp/pathtraver-00/BenchmarkTest00863.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest00867.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest00949.html | 6 +++--- src/main/webapp/pathtraver-01/BenchmarkTest00950.html | 6 +++--- src/main/webapp/pathtraver-01/BenchmarkTest00951.html | 6 +++--- src/main/webapp/pathtraver-01/BenchmarkTest00952.html | 6 +++--- src/main/webapp/pathtraver-01/BenchmarkTest00953.html | 6 +++--- src/main/webapp/pathtraver-01/BenchmarkTest00954.html | 6 +++--- src/main/webapp/pathtraver-01/BenchmarkTest00955.html | 6 +++--- src/main/webapp/pathtraver-01/BenchmarkTest00956.html | 6 +++--- src/main/webapp/pathtraver-01/BenchmarkTest00957.html | 6 +++--- src/main/webapp/pathtraver-01/BenchmarkTest00958.html | 6 +++--- src/main/webapp/pathtraver-01/BenchmarkTest01025.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01026.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01027.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01028.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01029.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01030.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01031.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01032.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01033.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01034.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01035.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01036.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01109.html | 9 ++++----- src/main/webapp/pathtraver-01/BenchmarkTest01110.html | 9 ++++----- src/main/webapp/pathtraver-01/BenchmarkTest01111.html | 9 ++++----- src/main/webapp/pathtraver-01/BenchmarkTest01112.html | 9 ++++----- src/main/webapp/pathtraver-01/BenchmarkTest01113.html | 9 ++++----- src/main/webapp/pathtraver-01/BenchmarkTest01114.html | 9 ++++----- src/main/webapp/pathtraver-01/BenchmarkTest01115.html | 9 ++++----- src/main/webapp/pathtraver-01/BenchmarkTest01116.html | 9 ++++----- src/main/webapp/pathtraver-01/BenchmarkTest01117.html | 9 ++++----- src/main/webapp/pathtraver-01/BenchmarkTest01118.html | 9 ++++----- src/main/webapp/pathtraver-01/BenchmarkTest01155.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01156.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01157.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01158.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01159.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01160.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01161.html | 4 ++-- src/main/webapp/pathtraver-01/BenchmarkTest01233.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest01234.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest01238.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest01239.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest01328.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest01329.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest01403.html | 7 +++---- src/main/webapp/pathtraver-01/BenchmarkTest01404.html | 7 +++---- src/main/webapp/pathtraver-01/BenchmarkTest01405.html | 7 +++---- src/main/webapp/pathtraver-01/BenchmarkTest01406.html | 7 +++---- src/main/webapp/pathtraver-01/BenchmarkTest01407.html | 7 +++---- src/main/webapp/pathtraver-01/BenchmarkTest01408.html | 7 +++---- src/main/webapp/pathtraver-01/BenchmarkTest01409.html | 7 +++---- src/main/webapp/pathtraver-01/BenchmarkTest01496.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest01497.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest01571.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest01572.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest01642.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest01643.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest01644.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest01645.html | 2 +- src/main/webapp/pathtraver-01/BenchmarkTest01646.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest01647.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest01746.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest01747.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest01751.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest01752.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest01833.html | 6 +++--- src/main/webapp/pathtraver-02/BenchmarkTest01834.html | 6 +++--- src/main/webapp/pathtraver-02/BenchmarkTest01835.html | 6 +++--- src/main/webapp/pathtraver-02/BenchmarkTest01836.html | 6 +++--- src/main/webapp/pathtraver-02/BenchmarkTest01837.html | 6 +++--- src/main/webapp/pathtraver-02/BenchmarkTest01838.html | 6 +++--- src/main/webapp/pathtraver-02/BenchmarkTest01839.html | 6 +++--- src/main/webapp/pathtraver-02/BenchmarkTest01840.html | 6 +++--- src/main/webapp/pathtraver-02/BenchmarkTest01841.html | 6 +++--- src/main/webapp/pathtraver-02/BenchmarkTest01904.html | 4 ++-- src/main/webapp/pathtraver-02/BenchmarkTest01905.html | 4 ++-- src/main/webapp/pathtraver-02/BenchmarkTest01906.html | 4 ++-- src/main/webapp/pathtraver-02/BenchmarkTest01907.html | 4 ++-- src/main/webapp/pathtraver-02/BenchmarkTest01908.html | 4 ++-- src/main/webapp/pathtraver-02/BenchmarkTest01983.html | 9 ++++----- src/main/webapp/pathtraver-02/BenchmarkTest01984.html | 9 ++++----- src/main/webapp/pathtraver-02/BenchmarkTest01985.html | 9 ++++----- src/main/webapp/pathtraver-02/BenchmarkTest01986.html | 9 ++++----- src/main/webapp/pathtraver-02/BenchmarkTest01987.html | 9 ++++----- src/main/webapp/pathtraver-02/BenchmarkTest01988.html | 9 ++++----- src/main/webapp/pathtraver-02/BenchmarkTest01989.html | 9 ++++----- src/main/webapp/pathtraver-02/BenchmarkTest01990.html | 9 ++++----- src/main/webapp/pathtraver-02/BenchmarkTest01991.html | 9 ++++----- src/main/webapp/pathtraver-02/BenchmarkTest02026.html | 4 ++-- src/main/webapp/pathtraver-02/BenchmarkTest02027.html | 4 ++-- src/main/webapp/pathtraver-02/BenchmarkTest02028.html | 4 ++-- src/main/webapp/pathtraver-02/BenchmarkTest02029.html | 4 ++-- src/main/webapp/pathtraver-02/BenchmarkTest02030.html | 4 ++-- src/main/webapp/pathtraver-02/BenchmarkTest02031.html | 4 ++-- src/main/webapp/pathtraver-02/BenchmarkTest02032.html | 4 ++-- src/main/webapp/pathtraver-02/BenchmarkTest02033.html | 4 ++-- src/main/webapp/pathtraver-02/BenchmarkTest02034.html | 4 ++-- src/main/webapp/pathtraver-02/BenchmarkTest02035.html | 4 ++-- src/main/webapp/pathtraver-02/BenchmarkTest02108.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest02109.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest02113.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest02198.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest02199.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest02203.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest02204.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest02300.html | 7 +++---- src/main/webapp/pathtraver-02/BenchmarkTest02301.html | 7 +++---- src/main/webapp/pathtraver-02/BenchmarkTest02302.html | 7 +++---- src/main/webapp/pathtraver-02/BenchmarkTest02303.html | 7 +++---- src/main/webapp/pathtraver-02/BenchmarkTest02304.html | 7 +++---- src/main/webapp/pathtraver-02/BenchmarkTest02377.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest02378.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest02382.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest02383.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest02462.html | 2 +- src/main/webapp/pathtraver-02/BenchmarkTest02463.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02467.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02468.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02554.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02555.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02556.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02557.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02558.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02559.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02560.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02561.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02562.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02563.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02564.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02565.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02566.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02567.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02568.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02569.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02570.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02667.html | 2 +- src/main/webapp/pathtraver-03/BenchmarkTest02668.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest00016.html | 4 ++-- src/main/webapp/securecookie-00/BenchmarkTest00087.html | 6 +++--- src/main/webapp/securecookie-00/BenchmarkTest00088.html | 6 +++--- src/main/webapp/securecookie-00/BenchmarkTest00089.html | 6 +++--- src/main/webapp/securecookie-00/BenchmarkTest00169.html | 4 ++-- src/main/webapp/securecookie-00/BenchmarkTest00170.html | 4 ++-- src/main/webapp/securecookie-00/BenchmarkTest00241.html | 9 ++++----- src/main/webapp/securecookie-00/BenchmarkTest00242.html | 9 ++++----- src/main/webapp/securecookie-00/BenchmarkTest00300.html | 4 ++-- src/main/webapp/securecookie-00/BenchmarkTest00348.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest00403.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest00565.html | 7 +++---- src/main/webapp/securecookie-00/BenchmarkTest00566.html | 7 +++---- src/main/webapp/securecookie-00/BenchmarkTest00655.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest00820.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest00821.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest00903.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest00977.html | 6 +++--- src/main/webapp/securecookie-00/BenchmarkTest01061.html | 4 ++-- src/main/webapp/securecookie-00/BenchmarkTest01062.html | 4 ++-- src/main/webapp/securecookie-00/BenchmarkTest01134.html | 9 ++++----- src/main/webapp/securecookie-00/BenchmarkTest01185.html | 4 ++-- src/main/webapp/securecookie-00/BenchmarkTest01186.html | 4 ++-- src/main/webapp/securecookie-00/BenchmarkTest01187.html | 4 ++-- src/main/webapp/securecookie-00/BenchmarkTest01283.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest01359.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest01436.html | 7 +++---- src/main/webapp/securecookie-00/BenchmarkTest01521.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest01522.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest01682.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest01683.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest01684.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest01861.html | 6 +++--- src/main/webapp/securecookie-00/BenchmarkTest01862.html | 6 +++--- src/main/webapp/securecookie-00/BenchmarkTest01863.html | 6 +++--- src/main/webapp/securecookie-00/BenchmarkTest01935.html | 4 ++-- src/main/webapp/securecookie-00/BenchmarkTest02005.html | 9 ++++----- src/main/webapp/securecookie-00/BenchmarkTest02006.html | 9 ++++----- src/main/webapp/securecookie-00/BenchmarkTest02064.html | 4 ++-- src/main/webapp/securecookie-00/BenchmarkTest02065.html | 4 ++-- src/main/webapp/securecookie-00/BenchmarkTest02066.html | 4 ++-- src/main/webapp/securecookie-00/BenchmarkTest02143.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest02144.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest02248.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest02339.html | 7 +++---- src/main/webapp/securecookie-00/BenchmarkTest02427.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest02507.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest02508.html | 2 +- src/main/webapp/securecookie-00/BenchmarkTest02607.html | 2 +- src/main/webapp/sqli-00/BenchmarkTest00008.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00018.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00026.html | 2 +- src/main/webapp/sqli-00/BenchmarkTest00027.html | 2 +- src/main/webapp/sqli-00/BenchmarkTest00032.html | 2 +- src/main/webapp/sqli-00/BenchmarkTest00037.html | 7 +++---- src/main/webapp/sqli-00/BenchmarkTest00038.html | 7 +++---- src/main/webapp/sqli-00/BenchmarkTest00039.html | 7 +++---- src/main/webapp/sqli-00/BenchmarkTest00052.html | 2 +- src/main/webapp/sqli-00/BenchmarkTest00100.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00101.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00102.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00103.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00104.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00105.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00106.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00107.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00108.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00109.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00110.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00111.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00112.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00113.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00114.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00115.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00190.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00191.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00192.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00193.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00194.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00195.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00196.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00197.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00198.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00199.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00200.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00201.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00202.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00203.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00204.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00205.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00206.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00328.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00329.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00330.html | 6 +++--- src/main/webapp/sqli-00/BenchmarkTest00331.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00332.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00333.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00334.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00335.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00336.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00337.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00338.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00339.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00340.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00341.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00342.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00343.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00344.html | 4 ++-- src/main/webapp/sqli-00/BenchmarkTest00428.html | 2 +- src/main/webapp/sqli-00/BenchmarkTest00432.html | 2 +- src/main/webapp/sqli-00/BenchmarkTest00433.html | 2 +- src/main/webapp/sqli-00/BenchmarkTest00437.html | 2 +- src/main/webapp/sqli-00/BenchmarkTest00438.html | 2 +- src/main/webapp/sqli-00/BenchmarkTest00509.html | 2 +- src/main/webapp/sqli-00/BenchmarkTest00510.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00512.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00513.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00517.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00518.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00589.html | 9 ++++----- src/main/webapp/sqli-01/BenchmarkTest00590.html | 9 ++++----- src/main/webapp/sqli-01/BenchmarkTest00591.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00592.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00593.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00594.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00595.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00596.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00597.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00598.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00599.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00600.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00601.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00602.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00603.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00604.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00605.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00606.html | 7 +++---- src/main/webapp/sqli-01/BenchmarkTest00672.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00674.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00675.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00679.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00680.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00760.html | 4 ++-- src/main/webapp/sqli-01/BenchmarkTest00761.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00762.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00764.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00765.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00769.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00770.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00774.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00837.html | 4 ++-- src/main/webapp/sqli-01/BenchmarkTest00838.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00839.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00840.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00841.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00842.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00843.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00844.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00845.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00846.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00847.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00848.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00849.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00850.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00851.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00924.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00927.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00928.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00932.html | 2 +- src/main/webapp/sqli-01/BenchmarkTest00933.html | 2 +- src/main/webapp/sqli-02/BenchmarkTest00937.html | 2 +- src/main/webapp/sqli-02/BenchmarkTest00938.html | 2 +- src/main/webapp/sqli-02/BenchmarkTest00996.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest00997.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest00998.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest00999.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest01000.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest01001.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest01002.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest01003.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest01004.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest01005.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest01006.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest01007.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest01008.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest01009.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest01010.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest01011.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest01012.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest01083.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01084.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01085.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01086.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01087.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01088.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01089.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01090.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01091.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01092.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01093.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01094.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01095.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01096.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01097.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01098.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01208.html | 6 +++--- src/main/webapp/sqli-02/BenchmarkTest01209.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01210.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01211.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01212.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01213.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01214.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01215.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01216.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01217.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01218.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01219.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01220.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01221.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01222.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01301.html | 2 +- src/main/webapp/sqli-02/BenchmarkTest01302.html | 2 +- src/main/webapp/sqli-02/BenchmarkTest01303.html | 2 +- src/main/webapp/sqli-02/BenchmarkTest01304.html | 2 +- src/main/webapp/sqli-02/BenchmarkTest01308.html | 2 +- src/main/webapp/sqli-02/BenchmarkTest01309.html | 2 +- src/main/webapp/sqli-02/BenchmarkTest01313.html | 2 +- src/main/webapp/sqli-02/BenchmarkTest01314.html | 2 +- src/main/webapp/sqli-02/BenchmarkTest01378.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01379.html | 4 ++-- src/main/webapp/sqli-02/BenchmarkTest01380.html | 2 +- src/main/webapp/sqli-02/BenchmarkTest01383.html | 2 +- src/main/webapp/sqli-02/BenchmarkTest01384.html | 2 +- src/main/webapp/sqli-02/BenchmarkTest01388.html | 2 +- src/main/webapp/sqli-02/BenchmarkTest01389.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01393.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01394.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01459.html | 9 ++++----- src/main/webapp/sqli-03/BenchmarkTest01460.html | 9 ++++----- src/main/webapp/sqli-03/BenchmarkTest01461.html | 9 ++++----- src/main/webapp/sqli-03/BenchmarkTest01462.html | 9 ++++----- src/main/webapp/sqli-03/BenchmarkTest01463.html | 9 ++++----- src/main/webapp/sqli-03/BenchmarkTest01464.html | 7 +++---- src/main/webapp/sqli-03/BenchmarkTest01465.html | 7 +++---- src/main/webapp/sqli-03/BenchmarkTest01466.html | 7 +++---- src/main/webapp/sqli-03/BenchmarkTest01467.html | 7 +++---- src/main/webapp/sqli-03/BenchmarkTest01468.html | 7 +++---- src/main/webapp/sqli-03/BenchmarkTest01469.html | 7 +++---- src/main/webapp/sqli-03/BenchmarkTest01470.html | 7 +++---- src/main/webapp/sqli-03/BenchmarkTest01471.html | 7 +++---- src/main/webapp/sqli-03/BenchmarkTest01472.html | 7 +++---- src/main/webapp/sqli-03/BenchmarkTest01473.html | 7 +++---- src/main/webapp/sqli-03/BenchmarkTest01474.html | 7 +++---- src/main/webapp/sqli-03/BenchmarkTest01475.html | 7 +++---- src/main/webapp/sqli-03/BenchmarkTest01476.html | 7 +++---- src/main/webapp/sqli-03/BenchmarkTest01477.html | 7 +++---- src/main/webapp/sqli-03/BenchmarkTest01552.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01556.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01557.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01620.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01621.html | 4 ++-- src/main/webapp/sqli-03/BenchmarkTest01622.html | 4 ++-- src/main/webapp/sqli-03/BenchmarkTest01623.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01626.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01627.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01631.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01712.html | 4 ++-- src/main/webapp/sqli-03/BenchmarkTest01713.html | 4 ++-- src/main/webapp/sqli-03/BenchmarkTest01714.html | 4 ++-- src/main/webapp/sqli-03/BenchmarkTest01715.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01716.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01717.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01718.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01719.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01720.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01721.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01722.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01723.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01724.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01725.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01726.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01727.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01728.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01729.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01730.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01731.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01732.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01733.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01803.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01806.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01807.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01811.html | 2 +- src/main/webapp/sqli-03/BenchmarkTest01812.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest01816.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest01817.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest01877.html | 6 +++--- src/main/webapp/sqli-04/BenchmarkTest01878.html | 6 +++--- src/main/webapp/sqli-04/BenchmarkTest01879.html | 6 +++--- src/main/webapp/sqli-04/BenchmarkTest01880.html | 6 +++--- src/main/webapp/sqli-04/BenchmarkTest01881.html | 6 +++--- src/main/webapp/sqli-04/BenchmarkTest01882.html | 6 +++--- src/main/webapp/sqli-04/BenchmarkTest01883.html | 6 +++--- src/main/webapp/sqli-04/BenchmarkTest01884.html | 6 +++--- src/main/webapp/sqli-04/BenchmarkTest01885.html | 6 +++--- src/main/webapp/sqli-04/BenchmarkTest01886.html | 6 +++--- src/main/webapp/sqli-04/BenchmarkTest01887.html | 6 +++--- src/main/webapp/sqli-04/BenchmarkTest01888.html | 6 +++--- src/main/webapp/sqli-04/BenchmarkTest01889.html | 6 +++--- src/main/webapp/sqli-04/BenchmarkTest01890.html | 6 +++--- src/main/webapp/sqli-04/BenchmarkTest01891.html | 6 +++--- src/main/webapp/sqli-04/BenchmarkTest01961.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest01962.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest01963.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest01964.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest01965.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest01966.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest01967.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest01968.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest01969.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest01970.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest01971.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest01972.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest01973.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02087.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02088.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02089.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02090.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02091.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02092.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02093.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02094.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02095.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02096.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02097.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02098.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02099.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02169.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02170.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest02173.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest02174.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest02178.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest02179.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest02183.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest02184.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest02188.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest02264.html | 4 ++-- src/main/webapp/sqli-04/BenchmarkTest02265.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest02266.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest02268.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest02269.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest02273.html | 2 +- src/main/webapp/sqli-04/BenchmarkTest02274.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02278.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02279.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02283.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02284.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02288.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02353.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02354.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02355.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02356.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02357.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02358.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02359.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02360.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02361.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02362.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02363.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02364.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02365.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02366.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02367.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02368.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02369.html | 7 +++---- src/main/webapp/sqli-05/BenchmarkTest02449.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02452.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02453.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02528.html | 4 ++-- src/main/webapp/sqli-05/BenchmarkTest02529.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02530.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02532.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02533.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02537.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02538.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02542.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02543.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02625.html | 4 ++-- src/main/webapp/sqli-05/BenchmarkTest02626.html | 4 ++-- src/main/webapp/sqli-05/BenchmarkTest02627.html | 4 ++-- src/main/webapp/sqli-05/BenchmarkTest02628.html | 4 ++-- src/main/webapp/sqli-05/BenchmarkTest02629.html | 4 ++-- src/main/webapp/sqli-05/BenchmarkTest02630.html | 4 ++-- src/main/webapp/sqli-05/BenchmarkTest02631.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02632.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02633.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02634.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02635.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02636.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02637.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02638.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02639.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02640.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02641.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02642.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02643.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02644.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02645.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02646.html | 2 +- src/main/webapp/sqli-05/BenchmarkTest02647.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02648.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02649.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02650.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02651.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02652.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02653.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02654.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02655.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02656.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02657.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02727.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02728.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02732.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02733.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02737.html | 2 +- src/main/webapp/sqli-06/BenchmarkTest02738.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest00004.html | 6 +++--- src/main/webapp/trustbound-00/BenchmarkTest00031.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest00097.html | 6 +++--- src/main/webapp/trustbound-00/BenchmarkTest00098.html | 6 +++--- src/main/webapp/trustbound-00/BenchmarkTest00099.html | 6 +++--- src/main/webapp/trustbound-00/BenchmarkTest00189.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest00250.html | 9 ++++----- src/main/webapp/trustbound-00/BenchmarkTest00251.html | 9 ++++----- src/main/webapp/trustbound-00/BenchmarkTest00252.html | 9 ++++----- src/main/webapp/trustbound-00/BenchmarkTest00253.html | 9 ++++----- src/main/webapp/trustbound-00/BenchmarkTest00321.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest00322.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest00323.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest00324.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest00325.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest00326.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest00327.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest00427.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest00508.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest00586.html | 7 +++---- src/main/webapp/trustbound-00/BenchmarkTest00587.html | 7 +++---- src/main/webapp/trustbound-00/BenchmarkTest00588.html | 7 +++---- src/main/webapp/trustbound-00/BenchmarkTest00669.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest00670.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest00754.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest00755.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest00759.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest00833.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest00834.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest00835.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest00836.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest00922.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest00923.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest00991.html | 6 +++--- src/main/webapp/trustbound-00/BenchmarkTest00992.html | 6 +++--- src/main/webapp/trustbound-00/BenchmarkTest00993.html | 6 +++--- src/main/webapp/trustbound-00/BenchmarkTest00994.html | 6 +++--- src/main/webapp/trustbound-00/BenchmarkTest00995.html | 6 +++--- src/main/webapp/trustbound-00/BenchmarkTest01080.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest01081.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest01082.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest01142.html | 9 ++++----- src/main/webapp/trustbound-00/BenchmarkTest01143.html | 9 ++++----- src/main/webapp/trustbound-00/BenchmarkTest01144.html | 9 ++++----- src/main/webapp/trustbound-00/BenchmarkTest01145.html | 9 ++++----- src/main/webapp/trustbound-00/BenchmarkTest01146.html | 9 ++++----- src/main/webapp/trustbound-00/BenchmarkTest01203.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest01204.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest01205.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest01206.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest01207.html | 4 ++-- src/main/webapp/trustbound-00/BenchmarkTest01299.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest01374.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest01454.html | 7 +++---- src/main/webapp/trustbound-00/BenchmarkTest01455.html | 7 +++---- src/main/webapp/trustbound-00/BenchmarkTest01456.html | 7 +++---- src/main/webapp/trustbound-00/BenchmarkTest01457.html | 7 +++---- src/main/webapp/trustbound-00/BenchmarkTest01458.html | 7 +++---- src/main/webapp/trustbound-00/BenchmarkTest01546.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest01547.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest01551.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest01616.html | 2 +- src/main/webapp/trustbound-00/BenchmarkTest01617.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest01708.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest01709.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest01710.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest01711.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest01802.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest01872.html | 6 +++--- src/main/webapp/trustbound-01/BenchmarkTest01873.html | 6 +++--- src/main/webapp/trustbound-01/BenchmarkTest01874.html | 6 +++--- src/main/webapp/trustbound-01/BenchmarkTest01875.html | 6 +++--- src/main/webapp/trustbound-01/BenchmarkTest01876.html | 6 +++--- src/main/webapp/trustbound-01/BenchmarkTest01955.html | 4 ++-- src/main/webapp/trustbound-01/BenchmarkTest01956.html | 4 ++-- src/main/webapp/trustbound-01/BenchmarkTest01957.html | 4 ++-- src/main/webapp/trustbound-01/BenchmarkTest01958.html | 4 ++-- src/main/webapp/trustbound-01/BenchmarkTest01959.html | 4 ++-- src/main/webapp/trustbound-01/BenchmarkTest01960.html | 4 ++-- src/main/webapp/trustbound-01/BenchmarkTest02015.html | 9 ++++----- src/main/webapp/trustbound-01/BenchmarkTest02016.html | 9 ++++----- src/main/webapp/trustbound-01/BenchmarkTest02084.html | 4 ++-- src/main/webapp/trustbound-01/BenchmarkTest02085.html | 4 ++-- src/main/webapp/trustbound-01/BenchmarkTest02086.html | 4 ++-- src/main/webapp/trustbound-01/BenchmarkTest02168.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest02263.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest02352.html | 7 +++---- src/main/webapp/trustbound-01/BenchmarkTest02447.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest02448.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest02523.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest02527.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest02622.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest02623.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest02624.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest02722.html | 2 +- src/main/webapp/trustbound-01/BenchmarkTest02723.html | 2 +- src/main/webapp/weakrand-00/BenchmarkTest00010.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00042.html | 2 +- src/main/webapp/weakrand-00/BenchmarkTest00066.html | 6 +++--- src/main/webapp/weakrand-00/BenchmarkTest00067.html | 6 +++--- src/main/webapp/weakrand-00/BenchmarkTest00068.html | 6 +++--- src/main/webapp/weakrand-00/BenchmarkTest00078.html | 6 +++--- src/main/webapp/weakrand-00/BenchmarkTest00079.html | 6 +++--- src/main/webapp/weakrand-00/BenchmarkTest00080.html | 6 +++--- src/main/webapp/weakrand-00/BenchmarkTest00081.html | 6 +++--- src/main/webapp/weakrand-00/BenchmarkTest00082.html | 6 +++--- src/main/webapp/weakrand-00/BenchmarkTest00083.html | 6 +++--- src/main/webapp/weakrand-00/BenchmarkTest00084.html | 6 +++--- src/main/webapp/weakrand-00/BenchmarkTest00085.html | 6 +++--- src/main/webapp/weakrand-00/BenchmarkTest00086.html | 6 +++--- src/main/webapp/weakrand-00/BenchmarkTest00094.html | 6 +++--- src/main/webapp/weakrand-00/BenchmarkTest00095.html | 6 +++--- src/main/webapp/weakrand-00/BenchmarkTest00096.html | 6 +++--- src/main/webapp/weakrand-00/BenchmarkTest00140.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00160.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00161.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00162.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00163.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00164.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00165.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00166.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00167.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00168.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00178.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00179.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00180.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00181.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00182.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00183.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00184.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00185.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00186.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00187.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00188.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00230.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00231.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00232.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00233.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00234.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00235.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00236.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00237.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00238.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00239.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00240.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00243.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00244.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00245.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00246.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00247.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00248.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00249.html | 9 ++++----- src/main/webapp/weakrand-00/BenchmarkTest00296.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00297.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00298.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00299.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00312.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00313.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00314.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00315.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00316.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00317.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00318.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00319.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00320.html | 4 ++-- src/main/webapp/weakrand-00/BenchmarkTest00368.html | 2 +- src/main/webapp/weakrand-00/BenchmarkTest00397.html | 2 +- src/main/webapp/weakrand-00/BenchmarkTest00398.html | 2 +- src/main/webapp/weakrand-00/BenchmarkTest00402.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00413.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00417.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00418.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00422.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00423.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00482.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00483.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00487.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00488.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00502.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00503.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00507.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00560.html | 7 +++---- src/main/webapp/weakrand-01/BenchmarkTest00561.html | 7 +++---- src/main/webapp/weakrand-01/BenchmarkTest00562.html | 7 +++---- src/main/webapp/weakrand-01/BenchmarkTest00563.html | 7 +++---- src/main/webapp/weakrand-01/BenchmarkTest00564.html | 7 +++---- src/main/webapp/weakrand-01/BenchmarkTest00577.html | 7 +++---- src/main/webapp/weakrand-01/BenchmarkTest00578.html | 7 +++---- src/main/webapp/weakrand-01/BenchmarkTest00579.html | 7 +++---- src/main/webapp/weakrand-01/BenchmarkTest00580.html | 7 +++---- src/main/webapp/weakrand-01/BenchmarkTest00581.html | 7 +++---- src/main/webapp/weakrand-01/BenchmarkTest00582.html | 7 +++---- src/main/webapp/weakrand-01/BenchmarkTest00583.html | 7 +++---- src/main/webapp/weakrand-01/BenchmarkTest00584.html | 7 +++---- src/main/webapp/weakrand-01/BenchmarkTest00585.html | 7 +++---- src/main/webapp/weakrand-01/BenchmarkTest00654.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00660.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00664.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00665.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00734.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00735.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00744.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00745.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00749.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00750.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00817.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00818.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00819.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00828.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00829.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00830.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00831.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00832.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00898.html | 2 +- src/main/webapp/weakrand-01/BenchmarkTest00902.html | 2 +- src/main/webapp/weakrand-02/BenchmarkTest00912.html | 2 +- src/main/webapp/weakrand-02/BenchmarkTest00913.html | 2 +- src/main/webapp/weakrand-02/BenchmarkTest00917.html | 2 +- src/main/webapp/weakrand-02/BenchmarkTest00918.html | 2 +- src/main/webapp/weakrand-02/BenchmarkTest00960.html | 6 +++--- src/main/webapp/weakrand-02/BenchmarkTest00971.html | 6 +++--- src/main/webapp/weakrand-02/BenchmarkTest00972.html | 6 +++--- src/main/webapp/weakrand-02/BenchmarkTest00973.html | 6 +++--- src/main/webapp/weakrand-02/BenchmarkTest00974.html | 6 +++--- src/main/webapp/weakrand-02/BenchmarkTest00975.html | 6 +++--- src/main/webapp/weakrand-02/BenchmarkTest00976.html | 6 +++--- src/main/webapp/weakrand-02/BenchmarkTest00984.html | 6 +++--- src/main/webapp/weakrand-02/BenchmarkTest00985.html | 6 +++--- src/main/webapp/weakrand-02/BenchmarkTest00986.html | 6 +++--- src/main/webapp/weakrand-02/BenchmarkTest00987.html | 6 +++--- src/main/webapp/weakrand-02/BenchmarkTest00988.html | 6 +++--- src/main/webapp/weakrand-02/BenchmarkTest00989.html | 6 +++--- src/main/webapp/weakrand-02/BenchmarkTest00990.html | 6 +++--- src/main/webapp/weakrand-02/BenchmarkTest01058.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01059.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01060.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01069.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01070.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01071.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01072.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01073.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01074.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01075.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01076.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01077.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01078.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01079.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01119.html | 9 ++++----- src/main/webapp/weakrand-02/BenchmarkTest01127.html | 9 ++++----- src/main/webapp/weakrand-02/BenchmarkTest01128.html | 9 ++++----- src/main/webapp/weakrand-02/BenchmarkTest01129.html | 9 ++++----- src/main/webapp/weakrand-02/BenchmarkTest01130.html | 9 ++++----- src/main/webapp/weakrand-02/BenchmarkTest01131.html | 9 ++++----- src/main/webapp/weakrand-02/BenchmarkTest01132.html | 9 ++++----- src/main/webapp/weakrand-02/BenchmarkTest01133.html | 9 ++++----- src/main/webapp/weakrand-02/BenchmarkTest01135.html | 9 ++++----- src/main/webapp/weakrand-02/BenchmarkTest01136.html | 9 ++++----- src/main/webapp/weakrand-02/BenchmarkTest01137.html | 9 ++++----- src/main/webapp/weakrand-02/BenchmarkTest01138.html | 9 ++++----- src/main/webapp/weakrand-02/BenchmarkTest01139.html | 9 ++++----- src/main/webapp/weakrand-02/BenchmarkTest01140.html | 9 ++++----- src/main/webapp/weakrand-02/BenchmarkTest01141.html | 9 ++++----- src/main/webapp/weakrand-02/BenchmarkTest01162.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01163.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01183.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01184.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01195.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01196.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01197.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01198.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01199.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01200.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01201.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01202.html | 4 ++-- src/main/webapp/weakrand-02/BenchmarkTest01273.html | 2 +- src/main/webapp/weakrand-02/BenchmarkTest01274.html | 2 +- src/main/webapp/weakrand-02/BenchmarkTest01278.html | 2 +- src/main/webapp/weakrand-02/BenchmarkTest01279.html | 2 +- src/main/webapp/weakrand-02/BenchmarkTest01293.html | 2 +- src/main/webapp/weakrand-02/BenchmarkTest01294.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01298.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01354.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01358.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01368.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01369.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01373.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01431.html | 7 +++---- src/main/webapp/weakrand-03/BenchmarkTest01432.html | 7 +++---- src/main/webapp/weakrand-03/BenchmarkTest01433.html | 7 +++---- src/main/webapp/weakrand-03/BenchmarkTest01434.html | 7 +++---- src/main/webapp/weakrand-03/BenchmarkTest01435.html | 7 +++---- src/main/webapp/weakrand-03/BenchmarkTest01447.html | 7 +++---- src/main/webapp/weakrand-03/BenchmarkTest01448.html | 7 +++---- src/main/webapp/weakrand-03/BenchmarkTest01449.html | 7 +++---- src/main/webapp/weakrand-03/BenchmarkTest01450.html | 7 +++---- src/main/webapp/weakrand-03/BenchmarkTest01451.html | 7 +++---- src/main/webapp/weakrand-03/BenchmarkTest01452.html | 7 +++---- src/main/webapp/weakrand-03/BenchmarkTest01453.html | 7 +++---- src/main/webapp/weakrand-03/BenchmarkTest01502.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01536.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01537.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01541.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01542.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01602.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01611.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01612.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01648.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01675.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01676.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01677.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01678.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01679.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01680.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01681.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01694.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01695.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01696.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01697.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01698.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01699.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01700.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01701.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01702.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01703.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01704.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01705.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01706.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01707.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01781.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01782.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01786.html | 2 +- src/main/webapp/weakrand-03/BenchmarkTest01787.html | 2 +- src/main/webapp/weakrand-04/BenchmarkTest01797.html | 2 +- src/main/webapp/weakrand-04/BenchmarkTest01801.html | 2 +- src/main/webapp/weakrand-04/BenchmarkTest01842.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01843.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01853.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01854.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01855.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01856.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01857.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01858.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01859.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01860.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01866.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01867.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01868.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01869.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01870.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01871.html | 6 +++--- src/main/webapp/weakrand-04/BenchmarkTest01910.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01930.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01931.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01932.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01933.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01934.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01945.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01946.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01947.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01948.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01949.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01950.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01951.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01952.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01953.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01954.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest01992.html | 9 ++++----- src/main/webapp/weakrand-04/BenchmarkTest01999.html | 9 ++++----- src/main/webapp/weakrand-04/BenchmarkTest02000.html | 9 ++++----- src/main/webapp/weakrand-04/BenchmarkTest02001.html | 9 ++++----- src/main/webapp/weakrand-04/BenchmarkTest02002.html | 9 ++++----- src/main/webapp/weakrand-04/BenchmarkTest02003.html | 9 ++++----- src/main/webapp/weakrand-04/BenchmarkTest02004.html | 9 ++++----- src/main/webapp/weakrand-04/BenchmarkTest02007.html | 9 ++++----- src/main/webapp/weakrand-04/BenchmarkTest02008.html | 9 ++++----- src/main/webapp/weakrand-04/BenchmarkTest02009.html | 9 ++++----- src/main/webapp/weakrand-04/BenchmarkTest02010.html | 9 ++++----- src/main/webapp/weakrand-04/BenchmarkTest02011.html | 9 ++++----- src/main/webapp/weakrand-04/BenchmarkTest02012.html | 9 ++++----- src/main/webapp/weakrand-04/BenchmarkTest02013.html | 9 ++++----- src/main/webapp/weakrand-04/BenchmarkTest02014.html | 9 ++++----- src/main/webapp/weakrand-04/BenchmarkTest02038.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02039.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02040.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02060.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02061.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02062.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02063.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02071.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02072.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02073.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02074.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02075.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02076.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02077.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02078.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02079.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02080.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02081.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02082.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02083.html | 4 ++-- src/main/webapp/weakrand-04/BenchmarkTest02138.html | 2 +- src/main/webapp/weakrand-04/BenchmarkTest02139.html | 2 +- src/main/webapp/weakrand-04/BenchmarkTest02158.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02159.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02163.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02164.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02209.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02254.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02258.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02259.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02337.html | 7 +++---- src/main/webapp/weakrand-05/BenchmarkTest02338.html | 7 +++---- src/main/webapp/weakrand-05/BenchmarkTest02345.html | 7 +++---- src/main/webapp/weakrand-05/BenchmarkTest02346.html | 7 +++---- src/main/webapp/weakrand-05/BenchmarkTest02347.html | 7 +++---- src/main/webapp/weakrand-05/BenchmarkTest02348.html | 7 +++---- src/main/webapp/weakrand-05/BenchmarkTest02349.html | 7 +++---- src/main/webapp/weakrand-05/BenchmarkTest02350.html | 7 +++---- src/main/webapp/weakrand-05/BenchmarkTest02351.html | 7 +++---- src/main/webapp/weakrand-05/BenchmarkTest02417.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02418.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02422.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02423.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02437.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02438.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02442.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02443.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02473.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02497.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02498.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02502.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02503.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02522.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02602.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02603.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02604.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02605.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02606.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02614.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02615.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02616.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02617.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02618.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02619.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02620.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02621.html | 2 +- src/main/webapp/weakrand-05/BenchmarkTest02702.html | 2 +- src/main/webapp/weakrand-06/BenchmarkTest02703.html | 2 +- src/main/webapp/weakrand-06/BenchmarkTest02707.html | 2 +- src/main/webapp/weakrand-06/BenchmarkTest02708.html | 2 +- src/main/webapp/weakrand-06/BenchmarkTest02717.html | 2 +- src/main/webapp/weakrand-06/BenchmarkTest02718.html | 2 +- src/main/webapp/xpathi-00/BenchmarkTest00116.html | 6 +++--- src/main/webapp/xpathi-00/BenchmarkTest00117.html | 6 +++--- src/main/webapp/xpathi-00/BenchmarkTest00118.html | 6 +++--- src/main/webapp/xpathi-00/BenchmarkTest00207.html | 4 ++-- src/main/webapp/xpathi-00/BenchmarkTest00442.html | 2 +- src/main/webapp/xpathi-00/BenchmarkTest00607.html | 7 +++---- src/main/webapp/xpathi-00/BenchmarkTest00852.html | 2 +- src/main/webapp/xpathi-00/BenchmarkTest01013.html | 6 +++--- src/main/webapp/xpathi-00/BenchmarkTest01014.html | 6 +++--- src/main/webapp/xpathi-00/BenchmarkTest01223.html | 4 ++-- src/main/webapp/xpathi-00/BenchmarkTest01224.html | 4 ++-- src/main/webapp/xpathi-00/BenchmarkTest01225.html | 4 ++-- src/main/webapp/xpathi-00/BenchmarkTest01478.html | 7 +++---- src/main/webapp/xpathi-00/BenchmarkTest01479.html | 7 +++---- src/main/webapp/xpathi-00/BenchmarkTest01561.html | 2 +- src/main/webapp/xpathi-00/BenchmarkTest01562.html | 2 +- src/main/webapp/xpathi-00/BenchmarkTest01632.html | 2 +- src/main/webapp/xpathi-00/BenchmarkTest01734.html | 2 +- src/main/webapp/xpathi-00/BenchmarkTest01735.html | 2 +- src/main/webapp/xpathi-00/BenchmarkTest01736.html | 2 +- src/main/webapp/xpathi-00/BenchmarkTest01821.html | 2 +- src/main/webapp/xpathi-00/BenchmarkTest01892.html | 6 +++--- src/main/webapp/xpathi-00/BenchmarkTest01893.html | 6 +++--- src/main/webapp/xpathi-00/BenchmarkTest01894.html | 6 +++--- src/main/webapp/xpathi-00/BenchmarkTest01974.html | 4 ++-- src/main/webapp/xpathi-00/BenchmarkTest02100.html | 4 ++-- src/main/webapp/xpathi-00/BenchmarkTest02189.html | 2 +- src/main/webapp/xpathi-00/BenchmarkTest02370.html | 7 +++---- src/main/webapp/xpathi-00/BenchmarkTest02457.html | 2 +- src/main/webapp/xpathi-Index.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00013.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00014.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00036.html | 7 +++---- src/main/webapp/xss-00/BenchmarkTest00041.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00047.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00048.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00049.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00144.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00145.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00146.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00147.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00148.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00149.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00150.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00151.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00152.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00153.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00154.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00155.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00156.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00157.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00275.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00276.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00277.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00278.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00279.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00280.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00281.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00282.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00283.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00284.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00285.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00286.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00287.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00288.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00289.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00290.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00291.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00292.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00301.html | 4 ++-- src/main/webapp/xss-00/BenchmarkTest00377.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00378.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00382.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00383.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00387.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00388.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00392.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00393.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00467.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00468.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00472.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00473.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00477.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00478.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00492.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00493.html | 2 +- src/main/webapp/xss-00/BenchmarkTest00541.html | 7 +++---- src/main/webapp/xss-00/BenchmarkTest00542.html | 7 +++---- src/main/webapp/xss-00/BenchmarkTest00543.html | 7 +++---- src/main/webapp/xss-01/BenchmarkTest00544.html | 7 +++---- src/main/webapp/xss-01/BenchmarkTest00545.html | 7 +++---- src/main/webapp/xss-01/BenchmarkTest00546.html | 7 +++---- src/main/webapp/xss-01/BenchmarkTest00547.html | 7 +++---- src/main/webapp/xss-01/BenchmarkTest00548.html | 7 +++---- src/main/webapp/xss-01/BenchmarkTest00549.html | 7 +++---- src/main/webapp/xss-01/BenchmarkTest00550.html | 7 +++---- src/main/webapp/xss-01/BenchmarkTest00551.html | 7 +++---- src/main/webapp/xss-01/BenchmarkTest00552.html | 7 +++---- src/main/webapp/xss-01/BenchmarkTest00553.html | 7 +++---- src/main/webapp/xss-01/BenchmarkTest00554.html | 7 +++---- src/main/webapp/xss-01/BenchmarkTest00555.html | 7 +++---- src/main/webapp/xss-01/BenchmarkTest00556.html | 7 +++---- src/main/webapp/xss-01/BenchmarkTest00557.html | 7 +++---- src/main/webapp/xss-01/BenchmarkTest00644.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00645.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00649.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00650.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00714.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00715.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00719.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00720.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00724.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00725.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00729.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00730.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00799.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00800.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00801.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00802.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00803.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00804.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00805.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00806.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00807.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00808.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00809.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00810.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00811.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00812.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00813.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00822.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00882.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00883.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00887.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00888.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00892.html | 2 +- src/main/webapp/xss-01/BenchmarkTest00893.html | 2 +- src/main/webapp/xss-01/BenchmarkTest01046.html | 4 ++-- src/main/webapp/xss-01/BenchmarkTest01047.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01048.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01049.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01050.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01051.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01052.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01053.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01054.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01055.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01056.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01057.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01063.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01171.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01172.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01173.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01174.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01175.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01176.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01177.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01178.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01179.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01180.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01181.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01188.html | 4 ++-- src/main/webapp/xss-02/BenchmarkTest01253.html | 2 +- src/main/webapp/xss-02/BenchmarkTest01254.html | 2 +- src/main/webapp/xss-02/BenchmarkTest01258.html | 2 +- src/main/webapp/xss-02/BenchmarkTest01259.html | 2 +- src/main/webapp/xss-02/BenchmarkTest01263.html | 2 +- src/main/webapp/xss-02/BenchmarkTest01264.html | 2 +- src/main/webapp/xss-02/BenchmarkTest01268.html | 2 +- src/main/webapp/xss-02/BenchmarkTest01284.html | 2 +- src/main/webapp/xss-02/BenchmarkTest01338.html | 2 +- src/main/webapp/xss-02/BenchmarkTest01339.html | 2 +- src/main/webapp/xss-02/BenchmarkTest01343.html | 2 +- src/main/webapp/xss-02/BenchmarkTest01344.html | 2 +- src/main/webapp/xss-02/BenchmarkTest01348.html | 2 +- src/main/webapp/xss-02/BenchmarkTest01349.html | 2 +- src/main/webapp/xss-02/BenchmarkTest01417.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01418.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01419.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01420.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01421.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01422.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01423.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01424.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01425.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01426.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01427.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01428.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01429.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01437.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01438.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01439.html | 7 +++---- src/main/webapp/xss-02/BenchmarkTest01506.html | 2 +- src/main/webapp/xss-02/BenchmarkTest01507.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01511.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01512.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01586.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01587.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01591.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01592.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01596.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01597.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01657.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01658.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01659.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01660.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01661.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01662.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01663.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01664.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01665.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01666.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01667.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01668.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01669.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01670.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01671.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01767.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01771.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01772.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01776.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01777.html | 2 +- src/main/webapp/xss-03/BenchmarkTest01914.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest01915.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest01916.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest01917.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest01918.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest01919.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest01920.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest01921.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest01922.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest01923.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest01924.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest01925.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest01926.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest01927.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest02045.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest02046.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest02047.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest02048.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest02049.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest02050.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest02051.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest02052.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest02053.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest02054.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest02055.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest02056.html | 4 ++-- src/main/webapp/xss-03/BenchmarkTest02057.html | 4 ++-- src/main/webapp/xss-04/BenchmarkTest02123.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02124.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02128.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02129.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02133.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02134.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02223.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02224.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02228.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02229.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02233.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02234.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02238.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02239.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02313.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02314.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02315.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02316.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02317.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02318.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02319.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02320.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02321.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02322.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02323.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02324.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02325.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02326.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02327.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02328.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02329.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02330.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02331.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02332.html | 7 +++---- src/main/webapp/xss-04/BenchmarkTest02397.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02398.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02402.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02403.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02407.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02408.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02482.html | 2 +- src/main/webapp/xss-04/BenchmarkTest02483.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02487.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02488.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02492.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02493.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02578.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02579.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02580.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02581.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02582.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02583.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02584.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02585.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02586.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02587.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02588.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02589.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02590.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02591.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02592.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02593.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02594.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02595.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02596.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02597.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02598.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02599.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02600.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02601.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02608.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02609.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02682.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02683.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02687.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02688.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02692.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02693.html | 2 +- src/main/webapp/xss-05/BenchmarkTest02712.html | 2 +- 1991 files changed, 3956 insertions(+), 4346 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..10f32753b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.DS_Store +.java-version +target/ +testfiles/ + diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00006.html b/src/main/webapp/cmdi-00/BenchmarkTest00006.html index 981f12065f..a2fdf6637c 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00006.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00006.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00007.html b/src/main/webapp/cmdi-00/BenchmarkTest00007.html index 5cdefb6e50..2e4a11360a 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00007.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00007.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00015.html b/src/main/webapp/cmdi-00/BenchmarkTest00015.html index 45aa9dd2e4..fac341eb81 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00015.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00015.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00017.html b/src/main/webapp/cmdi-00/BenchmarkTest00017.html index 9884a69850..5963e7c91d 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00017.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00017.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00077.html b/src/main/webapp/cmdi-00/BenchmarkTest00077.html index 9deec8f9d3..5bdb9359a8 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00077.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00077.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00077" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00090.html b/src/main/webapp/cmdi-00/BenchmarkTest00090.html index e1727a22db..48edda3952 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00090.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00090.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00090" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00091.html b/src/main/webapp/cmdi-00/BenchmarkTest00091.html index b92935a77f..c31bd88971 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00091.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00091.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00091" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00092.html b/src/main/webapp/cmdi-00/BenchmarkTest00092.html index 4bd13ddcec..abaf977e95 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00092.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00092.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00092" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00093.html b/src/main/webapp/cmdi-00/BenchmarkTest00093.html index 417ad1171e..41a89e98e6 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00093.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00093.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00093" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00158.html b/src/main/webapp/cmdi-00/BenchmarkTest00158.html index f665c4908b..bb4d9bb8a4 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00158.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00158.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00159.html b/src/main/webapp/cmdi-00/BenchmarkTest00159.html index 7c8cacc749..e0b98f427c 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00159.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00159.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00171.html b/src/main/webapp/cmdi-00/BenchmarkTest00171.html index dc105e4e4b..c0e2bc1824 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00171.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00171.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00172.html b/src/main/webapp/cmdi-00/BenchmarkTest00172.html index 649077e772..85f2ad6c26 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00172.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00172.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00173.html b/src/main/webapp/cmdi-00/BenchmarkTest00173.html index c8da7a4bd1..668a717a1b 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00173.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00173.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00174.html b/src/main/webapp/cmdi-00/BenchmarkTest00174.html index 31ed5eeb07..3486475a8f 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00174.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00174.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00175.html b/src/main/webapp/cmdi-00/BenchmarkTest00175.html index 83d1d7b44d..2a8a75e680 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00175.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00175.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00176.html b/src/main/webapp/cmdi-00/BenchmarkTest00176.html index e2f1b6708e..0729a3ba91 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00176.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00176.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00177.html b/src/main/webapp/cmdi-00/BenchmarkTest00177.html index 62696a1182..8b060857c3 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00177.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00177.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00293.html b/src/main/webapp/cmdi-00/BenchmarkTest00293.html index 19d390e5e0..18b531e728 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00293.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00293.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00294.html b/src/main/webapp/cmdi-00/BenchmarkTest00294.html index 5ad8bc25f1..6979933cd2 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00294.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00294.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00295.html b/src/main/webapp/cmdi-00/BenchmarkTest00295.html index e682016eb5..5101cfe758 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00295.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00295.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00302.html b/src/main/webapp/cmdi-00/BenchmarkTest00302.html index e787c36385..329e9c4ca5 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00302.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00302.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00303.html b/src/main/webapp/cmdi-00/BenchmarkTest00303.html index 37889bed92..e19308bc75 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00303.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00303.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00304.html b/src/main/webapp/cmdi-00/BenchmarkTest00304.html index 6006aeea48..d5cface2c5 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00304.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00304.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00305.html b/src/main/webapp/cmdi-00/BenchmarkTest00305.html index 11f8eae100..296be44287 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00305.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00305.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00306.html b/src/main/webapp/cmdi-00/BenchmarkTest00306.html index c80a35097c..fd83c95abd 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00306.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00306.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00307.html b/src/main/webapp/cmdi-00/BenchmarkTest00307.html index e71fbb813c..37e50bd3b8 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00307.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00307.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00308.html b/src/main/webapp/cmdi-00/BenchmarkTest00308.html index 359d042fd3..8623354d77 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00308.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00308.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00309.html b/src/main/webapp/cmdi-00/BenchmarkTest00309.html index f5da275d7d..00fbf7105f 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00309.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00309.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00310.html b/src/main/webapp/cmdi-00/BenchmarkTest00310.html index 1f8907f89d..c528e9381c 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00310.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00310.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00311.html b/src/main/webapp/cmdi-00/BenchmarkTest00311.html index 78ddb16e8a..f6f82e4855 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00311.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00311.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00407.html b/src/main/webapp/cmdi-00/BenchmarkTest00407.html index 4e5e44ee21..7561aa01b2 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00407.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00407.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00408.html b/src/main/webapp/cmdi-00/BenchmarkTest00408.html index f33798b673..c7a77daec7 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00408.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00408.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00410.html b/src/main/webapp/cmdi-00/BenchmarkTest00410.html index e491d4ed35..bffed9de5b 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00410.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00410.html @@ -9,7 +9,7 @@

-
Reading. [BenchmarkTest00410, FOO=echo Injection]
+
Reading. [BenchmarkTest00410, FOO=echo Injection]
Movies. [BenchmarkTest00410, Movies]
Writing. [BenchmarkTest00410, Writing]
Singing. [BenchmarkTest00410, Singing]
diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00411.html b/src/main/webapp/cmdi-00/BenchmarkTest00411.html index c7e8d51965..d181d5ce33 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00411.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00411.html @@ -10,7 +10,7 @@

Please make your car selection, and edit the value to be sent [value]:

-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00495.html b/src/main/webapp/cmdi-00/BenchmarkTest00495.html index 8626f1e996..dbfa345d85 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00495.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00495.html @@ -9,7 +9,7 @@

-
Reading. [BenchmarkTest00495, FOO=echo Injection]
+
Reading. [BenchmarkTest00495, FOO=echo Injection]
Movies. [BenchmarkTest00495, Movies]
Writing. [BenchmarkTest00495, Writing]
Singing. [BenchmarkTest00495, Singing]
diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00496.html b/src/main/webapp/cmdi-00/BenchmarkTest00496.html index 6da0411e4c..7f10044600 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00496.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00496.html @@ -10,7 +10,7 @@

Please make your car selection, and edit the value to be sent [value]:

-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00498.html b/src/main/webapp/cmdi-00/BenchmarkTest00498.html index 0871bd22b9..f497ce9cfd 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00498.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00498.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00558.html b/src/main/webapp/cmdi-00/BenchmarkTest00558.html index 3e9dc41f55..c34ca98d18 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00558.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00558.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00558 input[id=BenchmarkTest00558]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00559.html b/src/main/webapp/cmdi-00/BenchmarkTest00559.html index 04c10a3d6f..e195dfcef3 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00559.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00559.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00559 input[id=BenchmarkTest00559]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00567.html b/src/main/webapp/cmdi-00/BenchmarkTest00567.html index 7068a4f25d..cc987bcc81 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00567.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00567.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00567 input[id=BenchmarkTest00567]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00568.html b/src/main/webapp/cmdi-00/BenchmarkTest00568.html index b15d0bbd4b..5d1c6fc979 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00568.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00568.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00568 input[id=BenchmarkTest00568]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00569.html b/src/main/webapp/cmdi-00/BenchmarkTest00569.html index 1e1357cfb3..a40fe1db69 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00569.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00569.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00569 input[id=BenchmarkTest00569]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00570.html b/src/main/webapp/cmdi-00/BenchmarkTest00570.html index a928335bdb..6b8eb9dd80 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00570.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00570.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00570 input[id=BenchmarkTest00570]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00571.html b/src/main/webapp/cmdi-00/BenchmarkTest00571.html index 8de793ddd1..31e18e56ce 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00571.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00571.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00571 input[id=BenchmarkTest00571]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00572.html b/src/main/webapp/cmdi-00/BenchmarkTest00572.html index b33933afbf..33d337b394 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00572.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00572.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00572 input[id=BenchmarkTest00572]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00573.html b/src/main/webapp/cmdi-00/BenchmarkTest00573.html index 5f5b7f476d..d2e050f6cc 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00573.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00573.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00573 input[id=BenchmarkTest00573]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00574.html b/src/main/webapp/cmdi-00/BenchmarkTest00574.html index ee0f29f3f4..1b1d76d260 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00574.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00574.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00574 input[id=BenchmarkTest00574]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00575.html b/src/main/webapp/cmdi-00/BenchmarkTest00575.html index e11932bc7a..ea970353dd 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00575.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00575.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00575 input[id=BenchmarkTest00575]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00576.html b/src/main/webapp/cmdi-00/BenchmarkTest00576.html index 4e79a1c54a..9a5e7c38d3 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00576.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00576.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00576 input[id=BenchmarkTest00576]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00659.html b/src/main/webapp/cmdi-00/BenchmarkTest00659.html index 6bf57eb5af..aad983834f 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00659.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00659.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00739.html b/src/main/webapp/cmdi-00/BenchmarkTest00739.html index ee71bafcfc..4b1c3a4c97 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00739.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00739.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00740.html b/src/main/webapp/cmdi-00/BenchmarkTest00740.html index abf33cd6d1..356d8e9f09 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00740.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00740.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00743.html b/src/main/webapp/cmdi-00/BenchmarkTest00743.html index 05fd3840ea..8fc25211c6 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00743.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00743.html @@ -10,7 +10,7 @@

Please make your car selection, and edit the value to be sent [value]:

-
 
+
 

diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00815.html b/src/main/webapp/cmdi-00/BenchmarkTest00815.html index 5b9a85b69a..9ffa3c7782 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00815.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00815.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00816.html b/src/main/webapp/cmdi-00/BenchmarkTest00816.html index f74bf27081..ee9a17b365 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00816.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00816.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00823.html b/src/main/webapp/cmdi-00/BenchmarkTest00823.html index 39c8152a75..cfc92f5c0c 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00823.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00823.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00824.html b/src/main/webapp/cmdi-00/BenchmarkTest00824.html index 1d5b18a1b5..ccbae4484c 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00824.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00824.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00825.html b/src/main/webapp/cmdi-00/BenchmarkTest00825.html index 5f717cb65c..3db5287836 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00825.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00825.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00826.html b/src/main/webapp/cmdi-00/BenchmarkTest00826.html index 200c74ffa7..c481e5d316 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00826.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00826.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-00/BenchmarkTest00827.html b/src/main/webapp/cmdi-00/BenchmarkTest00827.html index fa5a6c88c2..7177856ea3 100644 --- a/src/main/webapp/cmdi-00/BenchmarkTest00827.html +++ b/src/main/webapp/cmdi-00/BenchmarkTest00827.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-01/BenchmarkTest00897.html b/src/main/webapp/cmdi-01/BenchmarkTest00897.html index a3144afa78..431c01c2a5 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest00897.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest00897.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest00907.html b/src/main/webapp/cmdi-01/BenchmarkTest00907.html index d17dbcfbab..a2ec33eb88 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest00907.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest00907.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest00908.html b/src/main/webapp/cmdi-01/BenchmarkTest00908.html index dd385ee5ea..0d5721514a 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest00908.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest00908.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-01/BenchmarkTest00909.html b/src/main/webapp/cmdi-01/BenchmarkTest00909.html index c0da291585..9ec468ac18 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest00909.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest00909.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/cmdi-01/BenchmarkTest00968.html b/src/main/webapp/cmdi-01/BenchmarkTest00968.html index d7b0f437f8..f259210b0e 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest00968.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest00968.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00968" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest00969.html b/src/main/webapp/cmdi-01/BenchmarkTest00969.html index 87e91191ab..1b575eea45 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest00969.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest00969.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00969" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest00970.html b/src/main/webapp/cmdi-01/BenchmarkTest00970.html index e0f12474b8..085f3bf2c5 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest00970.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest00970.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00970" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest00978.html b/src/main/webapp/cmdi-01/BenchmarkTest00978.html index 36379093be..8a99fbf783 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest00978.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest00978.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00978" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest00979.html b/src/main/webapp/cmdi-01/BenchmarkTest00979.html index 3bd4f6d998..10d58c1015 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest00979.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest00979.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00979" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest00980.html b/src/main/webapp/cmdi-01/BenchmarkTest00980.html index 0ba2e5dc27..5d0f1b5d2f 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest00980.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest00980.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00980" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest00981.html b/src/main/webapp/cmdi-01/BenchmarkTest00981.html index 86775fb155..f402a24e31 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest00981.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest00981.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00981" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest00982.html b/src/main/webapp/cmdi-01/BenchmarkTest00982.html index 655aeed5a1..5bb39bf49d 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest00982.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest00982.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00982" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest00983.html b/src/main/webapp/cmdi-01/BenchmarkTest00983.html index 7812342efa..4c1b132f0d 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest00983.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest00983.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00983" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01064.html b/src/main/webapp/cmdi-01/BenchmarkTest01064.html index c582e1ec82..b4da2d0f9f 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01064.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01064.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01065.html b/src/main/webapp/cmdi-01/BenchmarkTest01065.html index 667f5537ac..6c79b467d2 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01065.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01065.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01066.html b/src/main/webapp/cmdi-01/BenchmarkTest01066.html index b96837d0a2..ddd358290f 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01066.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01066.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01067.html b/src/main/webapp/cmdi-01/BenchmarkTest01067.html index 57dce32938..3f4f060690 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01067.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01067.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01068.html b/src/main/webapp/cmdi-01/BenchmarkTest01068.html index a4a4027534..12645b800d 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01068.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01068.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01182.html b/src/main/webapp/cmdi-01/BenchmarkTest01182.html index a523125cb0..6c6adcc804 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01182.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01182.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01189.html b/src/main/webapp/cmdi-01/BenchmarkTest01189.html index b8d63de8fe..879d575714 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01189.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01189.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01190.html b/src/main/webapp/cmdi-01/BenchmarkTest01190.html index 86d60c5583..8b8ce8f937 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01190.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01190.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01191.html b/src/main/webapp/cmdi-01/BenchmarkTest01191.html index ae7ca4fe5d..ef8a9b6c61 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01191.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01191.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01192.html b/src/main/webapp/cmdi-01/BenchmarkTest01192.html index e8838db57c..09d53df94c 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01192.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01192.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01193.html b/src/main/webapp/cmdi-01/BenchmarkTest01193.html index d61ee2533b..ec177d72d0 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01193.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01193.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01194.html b/src/main/webapp/cmdi-01/BenchmarkTest01194.html index fea2cea325..1eceb26736 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01194.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01194.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01269.html b/src/main/webapp/cmdi-01/BenchmarkTest01269.html index b0dfe0c402..fdd0fe4a01 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01269.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01269.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01287.html b/src/main/webapp/cmdi-01/BenchmarkTest01287.html index 2456b3a8a2..5c54cfaa00 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01287.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01287.html @@ -10,7 +10,7 @@

Please make your car selection, and edit the value to be sent [value]:

-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01289.html b/src/main/webapp/cmdi-01/BenchmarkTest01289.html index b82528d61c..fe2b969165 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01289.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01289.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01290.html b/src/main/webapp/cmdi-01/BenchmarkTest01290.html index 01941df31d..6dce4a15c8 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01290.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01290.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01353.html b/src/main/webapp/cmdi-01/BenchmarkTest01353.html index 05158b8528..e239ffe61a 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01353.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01353.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01361.html b/src/main/webapp/cmdi-01/BenchmarkTest01361.html index f7af54aea9..f646fad4e7 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01361.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01361.html @@ -9,7 +9,7 @@

-
Reading. [BenchmarkTest01361, FOO=echo Injection]
+
Reading. [BenchmarkTest01361, FOO=echo Injection]
Movies. [BenchmarkTest01361, Movies]
Writing. [BenchmarkTest01361, Writing]
Singing. [BenchmarkTest01361, Singing]
diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01363.html b/src/main/webapp/cmdi-01/BenchmarkTest01363.html index c8caa3b12b..69a8614a52 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01363.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01363.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01364.html b/src/main/webapp/cmdi-01/BenchmarkTest01364.html index db7a4f5d05..cdfeba64f7 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01364.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01364.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01430.html b/src/main/webapp/cmdi-01/BenchmarkTest01430.html index 34cc1dcb6f..895970fb93 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01430.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01430.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01430 input[id=BenchmarkTest01430]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01440.html b/src/main/webapp/cmdi-01/BenchmarkTest01440.html index 5500cc4ee4..760aac8362 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01440.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01440.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01440 input[id=BenchmarkTest01440]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01441.html b/src/main/webapp/cmdi-01/BenchmarkTest01441.html index b44157553b..9d581390e4 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01441.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01441.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01441 input[id=BenchmarkTest01441]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01442.html b/src/main/webapp/cmdi-01/BenchmarkTest01442.html index d5d4d67373..3008be8856 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01442.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01442.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01442 input[id=BenchmarkTest01442]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01443.html b/src/main/webapp/cmdi-01/BenchmarkTest01443.html index aec9189d66..0bd2a9e2c9 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01443.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01443.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01443 input[id=BenchmarkTest01443]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01444.html b/src/main/webapp/cmdi-01/BenchmarkTest01444.html index 63aeadeeaf..5760be14f7 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01444.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01444.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01444 input[id=BenchmarkTest01444]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01445.html b/src/main/webapp/cmdi-01/BenchmarkTest01445.html index 6a431db934..45205b5373 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01445.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01445.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01445 input[id=BenchmarkTest01445]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01446.html b/src/main/webapp/cmdi-01/BenchmarkTest01446.html index 79f89296ca..5f0fcd6a07 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01446.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01446.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01446 input[id=BenchmarkTest01446]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01516.html b/src/main/webapp/cmdi-01/BenchmarkTest01516.html index 6a8ead14ba..85386daf27 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01516.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01516.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01517.html b/src/main/webapp/cmdi-01/BenchmarkTest01517.html index 68d7021dab..dbdb33d807 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01517.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01517.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01526.html b/src/main/webapp/cmdi-01/BenchmarkTest01526.html index f587fce1ec..dba058cf9b 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01526.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01526.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01527.html b/src/main/webapp/cmdi-01/BenchmarkTest01527.html index 4f839509ac..0f98843c22 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01527.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01527.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01531.html b/src/main/webapp/cmdi-01/BenchmarkTest01531.html index b6ac58cc28..9e2862cc3a 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01531.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01531.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01532.html b/src/main/webapp/cmdi-01/BenchmarkTest01532.html index 8db414481a..c45ffe330b 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01532.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01532.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01533.html b/src/main/webapp/cmdi-01/BenchmarkTest01533.html index 401735a850..31b1350c22 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01533.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01533.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01601.html b/src/main/webapp/cmdi-01/BenchmarkTest01601.html index 4af4ac7bcf..0128cb3a4b 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01601.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01601.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01606.html b/src/main/webapp/cmdi-01/BenchmarkTest01606.html index 22c1f5d578..9c85cca7a6 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01606.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01606.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01607.html b/src/main/webapp/cmdi-01/BenchmarkTest01607.html index e8d812acdd..dae9ba9ed4 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01607.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01607.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01608.html b/src/main/webapp/cmdi-01/BenchmarkTest01608.html index 6428b47989..5e4a5a4163 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01608.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01608.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01672.html b/src/main/webapp/cmdi-01/BenchmarkTest01672.html index f856101e4f..926725e185 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01672.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01672.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01673.html b/src/main/webapp/cmdi-01/BenchmarkTest01673.html index a6e86c510f..e149c6d2a4 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01673.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01673.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01674.html b/src/main/webapp/cmdi-01/BenchmarkTest01674.html index 06f5baac63..f7e624ab60 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01674.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01674.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01685.html b/src/main/webapp/cmdi-01/BenchmarkTest01685.html index 84ac8ca22a..7e4889ec4a 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01685.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01685.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01686.html b/src/main/webapp/cmdi-01/BenchmarkTest01686.html index be44a1af90..114180cad1 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01686.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01686.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01687.html b/src/main/webapp/cmdi-01/BenchmarkTest01687.html index ea0a56b6e2..42d46acd4b 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01687.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01687.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01688.html b/src/main/webapp/cmdi-01/BenchmarkTest01688.html index 620455ad40..86eef3b01b 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01688.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01688.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01689.html b/src/main/webapp/cmdi-01/BenchmarkTest01689.html index 9231725496..4a462cafad 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01689.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01689.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01690.html b/src/main/webapp/cmdi-01/BenchmarkTest01690.html index dca7b01a3c..cbd2019b09 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01690.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01690.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-01/BenchmarkTest01691.html b/src/main/webapp/cmdi-01/BenchmarkTest01691.html index 7d1e8d9b32..6f0defefec 100644 --- a/src/main/webapp/cmdi-01/BenchmarkTest01691.html +++ b/src/main/webapp/cmdi-01/BenchmarkTest01691.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01692.html b/src/main/webapp/cmdi-02/BenchmarkTest01692.html index 4e314fd0f7..10c0adce03 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01692.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01692.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01693.html b/src/main/webapp/cmdi-02/BenchmarkTest01693.html index b915da171a..f7a7017715 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01693.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01693.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01791.html b/src/main/webapp/cmdi-02/BenchmarkTest01791.html index f4cf05e6bb..9956fd5bb8 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01791.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01791.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01792.html b/src/main/webapp/cmdi-02/BenchmarkTest01792.html index 60bdec7522..3debb6dde0 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01792.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01792.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01793.html b/src/main/webapp/cmdi-02/BenchmarkTest01793.html index 2a746c4c89..6f65a31635 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01793.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01793.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01795.html b/src/main/webapp/cmdi-02/BenchmarkTest01795.html index 65eeb2cef5..d0da5f974d 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01795.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01795.html @@ -10,7 +10,7 @@

Please make your car selection, and edit the value to be sent [value]:

-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01850.html b/src/main/webapp/cmdi-02/BenchmarkTest01850.html index a6033173ef..99235670dc 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01850.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01850.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01850" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01851.html b/src/main/webapp/cmdi-02/BenchmarkTest01851.html index 9d4a052e96..02435be8e9 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01851.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01851.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01851" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01852.html b/src/main/webapp/cmdi-02/BenchmarkTest01852.html index e405fac6b3..94ce05798f 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01852.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01852.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01852" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01864.html b/src/main/webapp/cmdi-02/BenchmarkTest01864.html index dead13d2ad..d6068be252 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01864.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01864.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01864" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01865.html b/src/main/webapp/cmdi-02/BenchmarkTest01865.html index f178baec27..5df0b1c2f0 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01865.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01865.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01865" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01928.html b/src/main/webapp/cmdi-02/BenchmarkTest01928.html index 3238ca29e6..647715f701 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01928.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01928.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01929.html b/src/main/webapp/cmdi-02/BenchmarkTest01929.html index eb2d4e7705..797a059194 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01929.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01929.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01936.html b/src/main/webapp/cmdi-02/BenchmarkTest01936.html index 725447bf8f..67bf8b792a 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01936.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01936.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01937.html b/src/main/webapp/cmdi-02/BenchmarkTest01937.html index a60b3cd9fd..84b6d3120d 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01937.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01937.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01938.html b/src/main/webapp/cmdi-02/BenchmarkTest01938.html index ae1d9bd873..dc7dd2db18 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01938.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01938.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01939.html b/src/main/webapp/cmdi-02/BenchmarkTest01939.html index dab38efcaf..151afeae0d 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01939.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01939.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01940.html b/src/main/webapp/cmdi-02/BenchmarkTest01940.html index 8cbeefaabd..8cefd4323d 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01940.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01940.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01941.html b/src/main/webapp/cmdi-02/BenchmarkTest01941.html index 6c7c5b41f7..b9f34543b0 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01941.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01941.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01942.html b/src/main/webapp/cmdi-02/BenchmarkTest01942.html index 961195640b..8dddb98608 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01942.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01942.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01943.html b/src/main/webapp/cmdi-02/BenchmarkTest01943.html index fc4628d659..27cb951c1b 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01943.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01943.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest01944.html b/src/main/webapp/cmdi-02/BenchmarkTest01944.html index 8f6a30c946..e0b3158249 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest01944.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest01944.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02058.html b/src/main/webapp/cmdi-02/BenchmarkTest02058.html index 96614a70b8..14015decaa 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02058.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02058.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02059.html b/src/main/webapp/cmdi-02/BenchmarkTest02059.html index 2ef53758c9..5d595335b1 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02059.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02059.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02067.html b/src/main/webapp/cmdi-02/BenchmarkTest02067.html index 899093e7bb..b83524fd98 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02067.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02067.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02068.html b/src/main/webapp/cmdi-02/BenchmarkTest02068.html index 847524ad34..d4321b595c 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02068.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02068.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02069.html b/src/main/webapp/cmdi-02/BenchmarkTest02069.html index 5bab3574d9..8c65829c1f 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02069.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02069.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02070.html b/src/main/webapp/cmdi-02/BenchmarkTest02070.html index 326518fa2c..60eae2f42d 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02070.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02070.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02148.html b/src/main/webapp/cmdi-02/BenchmarkTest02148.html index c82589a408..5e0af56b2a 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02148.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02148.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02149.html b/src/main/webapp/cmdi-02/BenchmarkTest02149.html index d8be6115a2..c12275941a 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02149.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02149.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02153.html b/src/main/webapp/cmdi-02/BenchmarkTest02153.html index 3d5ad71319..94a7bdb2a0 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02153.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02153.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02154.html b/src/main/webapp/cmdi-02/BenchmarkTest02154.html index 7a2b3f11eb..439415d0d0 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02154.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02154.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02155.html b/src/main/webapp/cmdi-02/BenchmarkTest02155.html index f8e6b367d8..8b81ba7ff0 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02155.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02155.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02156.html b/src/main/webapp/cmdi-02/BenchmarkTest02156.html index aa1e733e70..10c709d712 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02156.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02156.html @@ -9,7 +9,7 @@

-
Reading. [BenchmarkTest02156, FOO=echo Injection]
+
Reading. [BenchmarkTest02156, FOO=echo Injection]
Movies. [BenchmarkTest02156, Movies]
Writing. [BenchmarkTest02156, Writing]
Singing. [BenchmarkTest02156, Singing]
diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02243.html b/src/main/webapp/cmdi-02/BenchmarkTest02243.html index 0df393a40a..4156eb4a9f 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02243.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02243.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02244.html b/src/main/webapp/cmdi-02/BenchmarkTest02244.html index 9c803f224b..7b064abf49 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02244.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02244.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02249.html b/src/main/webapp/cmdi-02/BenchmarkTest02249.html index a57446f223..fc8835db3f 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02249.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02249.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02253.html b/src/main/webapp/cmdi-02/BenchmarkTest02253.html index ceb090083e..d9798e1502 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02253.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02253.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02333.html b/src/main/webapp/cmdi-02/BenchmarkTest02333.html index 10a2f2123a..bb8317aa54 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02333.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02333.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02333 input[id=BenchmarkTest02333]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02334.html b/src/main/webapp/cmdi-02/BenchmarkTest02334.html index 19ccee28e5..83dc5c7fc7 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02334.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02334.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02334 input[id=BenchmarkTest02334]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02335.html b/src/main/webapp/cmdi-02/BenchmarkTest02335.html index fd9e5f1206..2698d86d89 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02335.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02335.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02335 input[id=BenchmarkTest02335]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02336.html b/src/main/webapp/cmdi-02/BenchmarkTest02336.html index da15e3dddb..5406c750a2 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02336.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02336.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02336 input[id=BenchmarkTest02336]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02340.html b/src/main/webapp/cmdi-02/BenchmarkTest02340.html index 1d7a57c483..2ea0487c76 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02340.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02340.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02340 input[id=BenchmarkTest02340]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02341.html b/src/main/webapp/cmdi-02/BenchmarkTest02341.html index ddc30e528d..90d3366c42 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02341.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02341.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02341 input[id=BenchmarkTest02341]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02342.html b/src/main/webapp/cmdi-02/BenchmarkTest02342.html index aacd794b42..37ff0a1efb 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02342.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02342.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02342 input[id=BenchmarkTest02342]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02343.html b/src/main/webapp/cmdi-02/BenchmarkTest02343.html index e6600cd6ba..a32d86710c 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02343.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02343.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02343 input[id=BenchmarkTest02343]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02344.html b/src/main/webapp/cmdi-02/BenchmarkTest02344.html index fa25435edd..3ab1546b3c 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02344.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02344.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02344 input[id=BenchmarkTest02344]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02412.html b/src/main/webapp/cmdi-02/BenchmarkTest02412.html index 72e8537c4f..685defc530 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02412.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02412.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02413.html b/src/main/webapp/cmdi-02/BenchmarkTest02413.html index 69fd97de18..39a7675af0 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02413.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02413.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02428.html b/src/main/webapp/cmdi-02/BenchmarkTest02428.html index b0a03747de..403cc80023 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02428.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02428.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02431.html b/src/main/webapp/cmdi-02/BenchmarkTest02431.html index f85c7fc9c1..00557c22d5 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02431.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02431.html @@ -10,7 +10,7 @@

Please make your car selection, and edit the value to be sent [value]:

-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02433.html b/src/main/webapp/cmdi-02/BenchmarkTest02433.html index 6dd117b90f..536fc03d1c 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02433.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02433.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02510.html b/src/main/webapp/cmdi-02/BenchmarkTest02510.html index c97ccc8242..1299d70606 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02510.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02510.html @@ -9,7 +9,7 @@

-
Reading. [BenchmarkTest02510, FOO=echo Injection]
+
Reading. [BenchmarkTest02510, FOO=echo Injection]
Movies. [BenchmarkTest02510, Movies]
Writing. [BenchmarkTest02510, Writing]
Singing. [BenchmarkTest02510, Singing]
diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02511.html b/src/main/webapp/cmdi-02/BenchmarkTest02511.html index a02e39eec1..6403ef046a 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02511.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02511.html @@ -10,7 +10,7 @@

Please make your car selection, and edit the value to be sent [value]:

-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02513.html b/src/main/webapp/cmdi-02/BenchmarkTest02513.html index 9e7236864b..6aa666d5e7 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02513.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02513.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02514.html b/src/main/webapp/cmdi-02/BenchmarkTest02514.html index 0d189aee5c..44f8997d29 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02514.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02514.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02515.html b/src/main/webapp/cmdi-02/BenchmarkTest02515.html index 0bc71df65c..7fdef37e0a 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02515.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02515.html @@ -9,7 +9,7 @@

-
Reading. [BenchmarkTest02515, FOO=echo Injection]
+
Reading. [BenchmarkTest02515, FOO=echo Injection]
Movies. [BenchmarkTest02515, Movies]
Writing. [BenchmarkTest02515, Writing]
Singing. [BenchmarkTest02515, Singing]
diff --git a/src/main/webapp/cmdi-02/BenchmarkTest02516.html b/src/main/webapp/cmdi-02/BenchmarkTest02516.html index d04244fcef..c255b22bb0 100644 --- a/src/main/webapp/cmdi-02/BenchmarkTest02516.html +++ b/src/main/webapp/cmdi-02/BenchmarkTest02516.html @@ -10,7 +10,7 @@

Please make your car selection, and edit the value to be sent [value]:

-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-03/BenchmarkTest02518.html b/src/main/webapp/cmdi-03/BenchmarkTest02518.html index de7e5b54aa..d131d39cfb 100644 --- a/src/main/webapp/cmdi-03/BenchmarkTest02518.html +++ b/src/main/webapp/cmdi-03/BenchmarkTest02518.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-03/BenchmarkTest02610.html b/src/main/webapp/cmdi-03/BenchmarkTest02610.html index 7e851936ba..ca4f8d80b7 100644 --- a/src/main/webapp/cmdi-03/BenchmarkTest02610.html +++ b/src/main/webapp/cmdi-03/BenchmarkTest02610.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-03/BenchmarkTest02611.html b/src/main/webapp/cmdi-03/BenchmarkTest02611.html index 111c22a8c2..00b3b9785f 100644 --- a/src/main/webapp/cmdi-03/BenchmarkTest02611.html +++ b/src/main/webapp/cmdi-03/BenchmarkTest02611.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-03/BenchmarkTest02612.html b/src/main/webapp/cmdi-03/BenchmarkTest02612.html index 6944813682..8f5d32c725 100644 --- a/src/main/webapp/cmdi-03/BenchmarkTest02612.html +++ b/src/main/webapp/cmdi-03/BenchmarkTest02612.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-03/BenchmarkTest02613.html b/src/main/webapp/cmdi-03/BenchmarkTest02613.html index 548505bb3e..bb9854c88a 100644 --- a/src/main/webapp/cmdi-03/BenchmarkTest02613.html +++ b/src/main/webapp/cmdi-03/BenchmarkTest02613.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-03/BenchmarkTest02697.html b/src/main/webapp/cmdi-03/BenchmarkTest02697.html index 3a5ff73724..045ab8ab34 100644 --- a/src/main/webapp/cmdi-03/BenchmarkTest02697.html +++ b/src/main/webapp/cmdi-03/BenchmarkTest02697.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-03/BenchmarkTest02698.html b/src/main/webapp/cmdi-03/BenchmarkTest02698.html index f19e834696..5ffb9b8361 100644 --- a/src/main/webapp/cmdi-03/BenchmarkTest02698.html +++ b/src/main/webapp/cmdi-03/BenchmarkTest02698.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/cmdi-03/BenchmarkTest02713.html b/src/main/webapp/cmdi-03/BenchmarkTest02713.html index 959eff3174..b8b0982108 100644 --- a/src/main/webapp/cmdi-03/BenchmarkTest02713.html +++ b/src/main/webapp/cmdi-03/BenchmarkTest02713.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/cmdi-03/BenchmarkTest02714.html b/src/main/webapp/cmdi-03/BenchmarkTest02714.html index befaa19925..0dc6ed06ab 100644 --- a/src/main/webapp/cmdi-03/BenchmarkTest02714.html +++ b/src/main/webapp/cmdi-03/BenchmarkTest02714.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/crypto-00/BenchmarkTest00005.html b/src/main/webapp/crypto-00/BenchmarkTest00005.html index f876a732c7..0614a4d339 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00005.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00005.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00035.html b/src/main/webapp/crypto-00/BenchmarkTest00035.html index 9622bd63a2..7c865f183d 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00035.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00035.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00035 input[id=BenchmarkTest00035]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00050.html b/src/main/webapp/crypto-00/BenchmarkTest00050.html index 490d41ba82..5a5867aa54 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00050.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00050.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00053.html b/src/main/webapp/crypto-00/BenchmarkTest00053.html index 3ebc4a2a58..7fab6186af 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00053.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00053.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00053" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00054.html b/src/main/webapp/crypto-00/BenchmarkTest00054.html index f96a2e1fe0..38e1647085 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00054.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00054.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00054" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00055.html b/src/main/webapp/crypto-00/BenchmarkTest00055.html index b36cfd5cbf..ebe94678b5 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00055.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00055.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00055" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00056.html b/src/main/webapp/crypto-00/BenchmarkTest00056.html index e403314235..5207d627e8 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00056.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00056.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00056" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00057.html b/src/main/webapp/crypto-00/BenchmarkTest00057.html index 4594b6fd48..bd6dd9b961 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00057.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00057.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00057" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00058.html b/src/main/webapp/crypto-00/BenchmarkTest00058.html index fee2d1c6c8..889ac3e5c4 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00058.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00058.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00058" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00059.html b/src/main/webapp/crypto-00/BenchmarkTest00059.html index c9e21c36ec..c39f3d7004 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00059.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00059.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00059" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00119.html b/src/main/webapp/crypto-00/BenchmarkTest00119.html index 23924f9ce2..0f947c57cc 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00119.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00119.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00120.html b/src/main/webapp/crypto-00/BenchmarkTest00120.html index 028492f152..c310bd8220 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00120.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00120.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00121.html b/src/main/webapp/crypto-00/BenchmarkTest00121.html index de11de3f01..4d2449d9f1 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00121.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00121.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00122.html b/src/main/webapp/crypto-00/BenchmarkTest00122.html index 29ddd9d316..6166464254 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00122.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00122.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00123.html b/src/main/webapp/crypto-00/BenchmarkTest00123.html index ab0855d310..4feae0e874 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00123.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00123.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00124.html b/src/main/webapp/crypto-00/BenchmarkTest00124.html index fe626a609d..c8295fab6a 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00124.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00124.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00125.html b/src/main/webapp/crypto-00/BenchmarkTest00125.html index 3d46beb076..865f47adf6 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00125.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00125.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00126.html b/src/main/webapp/crypto-00/BenchmarkTest00126.html index e665fc6c82..08c28c8e30 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00126.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00126.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00127.html b/src/main/webapp/crypto-00/BenchmarkTest00127.html index df9da9e423..00388ba8cb 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00127.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00127.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00128.html b/src/main/webapp/crypto-00/BenchmarkTest00128.html index 53e223da47..6e4aa7049f 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00128.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00128.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00129.html b/src/main/webapp/crypto-00/BenchmarkTest00129.html index 21dda09368..d26daf98c5 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00129.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00129.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00130.html b/src/main/webapp/crypto-00/BenchmarkTest00130.html index fac5da33b8..c51f782b9e 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00130.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00130.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00208.html b/src/main/webapp/crypto-00/BenchmarkTest00208.html index 9143931c67..54e40bccfb 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00208.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00208.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00208.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00209.html b/src/main/webapp/crypto-00/BenchmarkTest00209.html index 5f59ea4406..a904f46652 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00209.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00209.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00209.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00210.html b/src/main/webapp/crypto-00/BenchmarkTest00210.html index fc13736101..27e28eb13e 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00210.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00210.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00210.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00211.html b/src/main/webapp/crypto-00/BenchmarkTest00211.html index 9b7440495d..ff1eefed71 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00211.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00211.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00211.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00212.html b/src/main/webapp/crypto-00/BenchmarkTest00212.html index ad30f9e964..3e1b5fbb86 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00212.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00212.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00212.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00213.html b/src/main/webapp/crypto-00/BenchmarkTest00213.html index bd1a07c321..f877d06d5b 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00213.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00213.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00213.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00214.html b/src/main/webapp/crypto-00/BenchmarkTest00214.html index f7b4c3c06d..0a4d44d80f 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00214.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00214.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00214.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00254.html b/src/main/webapp/crypto-00/BenchmarkTest00254.html index 24be5b9913..34f6f02dc9 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00254.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00254.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00255.html b/src/main/webapp/crypto-00/BenchmarkTest00255.html index de022904c6..64c886e995 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00255.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00255.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00256.html b/src/main/webapp/crypto-00/BenchmarkTest00256.html index 88d563cb1d..c426fcbc44 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00256.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00256.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00257.html b/src/main/webapp/crypto-00/BenchmarkTest00257.html index 4e79a7598a..96f1ab7cd4 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00257.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00257.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00258.html b/src/main/webapp/crypto-00/BenchmarkTest00258.html index 68f4502d27..0c46f60853 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00258.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00258.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00259.html b/src/main/webapp/crypto-00/BenchmarkTest00259.html index 2fe4e55465..6b7554b2f1 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00259.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00259.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00260.html b/src/main/webapp/crypto-00/BenchmarkTest00260.html index 030947c76d..8a7bd48119 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00260.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00260.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00352.html b/src/main/webapp/crypto-00/BenchmarkTest00352.html index f901d49c80..cc61e9b327 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00352.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00352.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00353.html b/src/main/webapp/crypto-00/BenchmarkTest00353.html index fb868ecb47..59f95e4ec9 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00353.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00353.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00357.html b/src/main/webapp/crypto-00/BenchmarkTest00357.html index 04c4eb534b..193e7791cd 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00357.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00357.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00358.html b/src/main/webapp/crypto-00/BenchmarkTest00358.html index 3c973df5e7..9c78a573f2 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00358.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00358.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00443.html b/src/main/webapp/crypto-00/BenchmarkTest00443.html index e5a3acf021..b3cd9a6d9e 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00443.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00443.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00447.html b/src/main/webapp/crypto-00/BenchmarkTest00447.html index da09f27c6c..d9f26c02de 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00447.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00447.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00448.html b/src/main/webapp/crypto-00/BenchmarkTest00448.html index 9b234517f0..4c6d3dbe55 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00448.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00448.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00521.html b/src/main/webapp/crypto-00/BenchmarkTest00521.html index 50c68ae1f9..a0adcc0dbe 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00521.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00521.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00521 input[id=BenchmarkTest00521]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00522.html b/src/main/webapp/crypto-00/BenchmarkTest00522.html index 4a8fa1db33..2370e52647 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00522.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00522.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00522 input[id=BenchmarkTest00522]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00523.html b/src/main/webapp/crypto-00/BenchmarkTest00523.html index b33158abba..a738679ad5 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00523.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00523.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00523 input[id=BenchmarkTest00523]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00524.html b/src/main/webapp/crypto-00/BenchmarkTest00524.html index 216fecf740..6447558b0c 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00524.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00524.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00524 input[id=BenchmarkTest00524]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-00/BenchmarkTest00609.html b/src/main/webapp/crypto-00/BenchmarkTest00609.html index 64b5e20955..e440058aa3 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00609.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00609.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00610.html b/src/main/webapp/crypto-00/BenchmarkTest00610.html index 77a2676368..efea2953e5 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00610.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00610.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00614.html b/src/main/webapp/crypto-00/BenchmarkTest00614.html index aeabd24fe4..69711ececc 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00614.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00614.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00615.html b/src/main/webapp/crypto-00/BenchmarkTest00615.html index a67cf3dac5..469890a01d 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00615.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00615.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00684.html b/src/main/webapp/crypto-00/BenchmarkTest00684.html index f8d334baec..f534fa79f1 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00684.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00684.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00685.html b/src/main/webapp/crypto-00/BenchmarkTest00685.html index 16c0247d9b..9f64b00dcb 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00685.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00685.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00689.html b/src/main/webapp/crypto-00/BenchmarkTest00689.html index 271eb53e10..98792f1335 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00689.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00689.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-00/BenchmarkTest00690.html b/src/main/webapp/crypto-00/BenchmarkTest00690.html index 2f40ac8ecf..c2eb76885a 100644 --- a/src/main/webapp/crypto-00/BenchmarkTest00690.html +++ b/src/main/webapp/crypto-00/BenchmarkTest00690.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00775.html b/src/main/webapp/crypto-01/BenchmarkTest00775.html index 4fd36ec8a0..fb6f71df9b 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00775.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00775.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00776.html b/src/main/webapp/crypto-01/BenchmarkTest00776.html index 3101a51b90..e5a2926e54 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00776.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00776.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00777.html b/src/main/webapp/crypto-01/BenchmarkTest00777.html index e7b44a7fa6..69f0cc7b50 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00777.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00777.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00778.html b/src/main/webapp/crypto-01/BenchmarkTest00778.html index 59f2ffcd1f..b4561fa6db 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00778.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00778.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00779.html b/src/main/webapp/crypto-01/BenchmarkTest00779.html index d2cc5c09d7..742e6f9ad7 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00779.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00779.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00780.html b/src/main/webapp/crypto-01/BenchmarkTest00780.html index 7bd9a00151..f098192381 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00780.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00780.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00781.html b/src/main/webapp/crypto-01/BenchmarkTest00781.html index 245ec1d022..9e938ced1e 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00781.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00781.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00782.html b/src/main/webapp/crypto-01/BenchmarkTest00782.html index dc184e9026..fd43e7bbfd 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00782.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00782.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00853.html b/src/main/webapp/crypto-01/BenchmarkTest00853.html index 2de0f6b0e8..ba44dffdae 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00853.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00853.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00857.html b/src/main/webapp/crypto-01/BenchmarkTest00857.html index a679d8b243..d2f2d6f6c9 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00857.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00857.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00858.html b/src/main/webapp/crypto-01/BenchmarkTest00858.html index 6c588dce1b..572e220c4e 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00858.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00858.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00942.html b/src/main/webapp/crypto-01/BenchmarkTest00942.html index 5c0d34e6e1..e766473e11 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00942.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00942.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00942" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00943.html b/src/main/webapp/crypto-01/BenchmarkTest00943.html index 3a65a50f51..6fafec4647 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00943.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00943.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00943" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00944.html b/src/main/webapp/crypto-01/BenchmarkTest00944.html index 6bbc8870a6..f1c6565d8c 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00944.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00944.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00944" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00945.html b/src/main/webapp/crypto-01/BenchmarkTest00945.html index 490dcf95da..5b2f511640 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00945.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00945.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00945" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-01/BenchmarkTest00946.html b/src/main/webapp/crypto-01/BenchmarkTest00946.html index d718aeabee..dedb68f71d 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest00946.html +++ b/src/main/webapp/crypto-01/BenchmarkTest00946.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00946" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-01/BenchmarkTest01015.html b/src/main/webapp/crypto-01/BenchmarkTest01015.html index b332714e38..826d635fd1 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01015.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01015.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01016.html b/src/main/webapp/crypto-01/BenchmarkTest01016.html index c7e606ee78..3bd7e0a25b 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01016.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01016.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01017.html b/src/main/webapp/crypto-01/BenchmarkTest01017.html index 5561b38272..4d157adb04 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01017.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01017.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01018.html b/src/main/webapp/crypto-01/BenchmarkTest01018.html index 9e522ebb12..65962a9427 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01018.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01018.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01019.html b/src/main/webapp/crypto-01/BenchmarkTest01019.html index 3e70dfd017..b98d839cc8 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01019.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01019.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01020.html b/src/main/webapp/crypto-01/BenchmarkTest01020.html index a12d137a50..95285518e1 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01020.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01020.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01021.html b/src/main/webapp/crypto-01/BenchmarkTest01021.html index 02b99cc78b..f1834ef293 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01021.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01021.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01022.html b/src/main/webapp/crypto-01/BenchmarkTest01022.html index 0fdccf8969..0922d4900b 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01022.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01022.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01099.html b/src/main/webapp/crypto-01/BenchmarkTest01099.html index 81a1a315c2..35a414c0f1 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01099.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01099.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01099.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01100.html b/src/main/webapp/crypto-01/BenchmarkTest01100.html index e59a680bd2..1efc95b667 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01100.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01100.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01100.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01101.html b/src/main/webapp/crypto-01/BenchmarkTest01101.html index 2b53224489..c323df817a 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01101.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01101.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01101.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01102.html b/src/main/webapp/crypto-01/BenchmarkTest01102.html index 3d513f1861..907ae49018 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01102.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01102.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01102.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01103.html b/src/main/webapp/crypto-01/BenchmarkTest01103.html index aa82d3199d..d8740066a4 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01103.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01103.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01103.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01104.html b/src/main/webapp/crypto-01/BenchmarkTest01104.html index ddecb3f5b8..0d1582e2fe 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01104.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01104.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01104.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01105.html b/src/main/webapp/crypto-01/BenchmarkTest01105.html index 539dd2a1f7..f055695290 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01105.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01105.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01105.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01106.html b/src/main/webapp/crypto-01/BenchmarkTest01106.html index a01889a250..96e602ebbf 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01106.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01106.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01106.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01107.html b/src/main/webapp/crypto-01/BenchmarkTest01107.html index 60adb55765..9556de82fe 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01107.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01107.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01107.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01108.html b/src/main/webapp/crypto-01/BenchmarkTest01108.html index fbc4426b76..f5bf6aa455 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01108.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01108.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01108.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01147.html b/src/main/webapp/crypto-01/BenchmarkTest01147.html index dd5c42b724..17a939d919 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01147.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01147.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01148.html b/src/main/webapp/crypto-01/BenchmarkTest01148.html index f064419be0..982584e70f 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01148.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01148.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01149.html b/src/main/webapp/crypto-01/BenchmarkTest01149.html index 02ab5c9787..46042d061c 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01149.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01149.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01150.html b/src/main/webapp/crypto-01/BenchmarkTest01150.html index 6a10c56b9f..17bb7a4ba9 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01150.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01150.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01151.html b/src/main/webapp/crypto-01/BenchmarkTest01151.html index 5fc6a2d2f2..d5df8023c6 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01151.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01151.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01152.html b/src/main/webapp/crypto-01/BenchmarkTest01152.html index e34f9023ce..79b1573c27 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01152.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01152.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01153.html b/src/main/webapp/crypto-01/BenchmarkTest01153.html index 8378de8217..bf81533652 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01153.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01153.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01228.html b/src/main/webapp/crypto-01/BenchmarkTest01228.html index 4fc9f04737..391e4a58fe 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01228.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01228.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest01229.html b/src/main/webapp/crypto-01/BenchmarkTest01229.html index e1101ce8e0..a3552682fb 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01229.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01229.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest01318.html b/src/main/webapp/crypto-01/BenchmarkTest01318.html index d1822372f8..a9fbdaa741 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01318.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01318.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest01319.html b/src/main/webapp/crypto-01/BenchmarkTest01319.html index da6ceb9b95..9a2d803000 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01319.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01319.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest01323.html b/src/main/webapp/crypto-01/BenchmarkTest01323.html index 7dface5214..5fd23c20b1 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01323.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01323.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest01324.html b/src/main/webapp/crypto-01/BenchmarkTest01324.html index 20c5d92eed..00fd1f6515 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01324.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01324.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest01398.html b/src/main/webapp/crypto-01/BenchmarkTest01398.html index f2f469a735..1086622973 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01398.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01398.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01398 input[id=BenchmarkTest01398]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01399.html b/src/main/webapp/crypto-01/BenchmarkTest01399.html index 0ce65ebf3f..ba39f2a5be 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01399.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01399.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01399 input[id=BenchmarkTest01399]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01400.html b/src/main/webapp/crypto-01/BenchmarkTest01400.html index ed4327d86f..767300fe6d 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01400.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01400.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01400 input[id=BenchmarkTest01400]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01401.html b/src/main/webapp/crypto-01/BenchmarkTest01401.html index e3b5f56a22..001f511e88 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01401.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01401.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01401 input[id=BenchmarkTest01401]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-01/BenchmarkTest01481.html b/src/main/webapp/crypto-01/BenchmarkTest01481.html index a90d46a7be..5e202d0e5d 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01481.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01481.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest01482.html b/src/main/webapp/crypto-01/BenchmarkTest01482.html index 4f2d695e2c..c0a4f02c59 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01482.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01482.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest01486.html b/src/main/webapp/crypto-01/BenchmarkTest01486.html index 2d6e93ccd9..03efc36010 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01486.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01486.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest01487.html b/src/main/webapp/crypto-01/BenchmarkTest01487.html index 227a171528..d74d6aab55 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01487.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01487.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest01566.html b/src/main/webapp/crypto-01/BenchmarkTest01566.html index bc6e245326..157e8066e7 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01566.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01566.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-01/BenchmarkTest01567.html b/src/main/webapp/crypto-01/BenchmarkTest01567.html index cceaeafb94..e06d7629c8 100644 --- a/src/main/webapp/crypto-01/BenchmarkTest01567.html +++ b/src/main/webapp/crypto-01/BenchmarkTest01567.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01634.html b/src/main/webapp/crypto-02/BenchmarkTest01634.html index 7e54747633..650bc8c70e 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01634.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01634.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01635.html b/src/main/webapp/crypto-02/BenchmarkTest01635.html index e128ec98bb..8eeb80ff0c 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01635.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01635.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01636.html b/src/main/webapp/crypto-02/BenchmarkTest01636.html index ad02ab4de3..663cc140db 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01636.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01636.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01637.html b/src/main/webapp/crypto-02/BenchmarkTest01637.html index 540a9d6706..00480cd033 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01637.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01637.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01638.html b/src/main/webapp/crypto-02/BenchmarkTest01638.html index 646dfbecc0..0c9fff5b07 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01638.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01638.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01639.html b/src/main/webapp/crypto-02/BenchmarkTest01639.html index 9fd9136611..c872180c73 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01639.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01639.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01640.html b/src/main/webapp/crypto-02/BenchmarkTest01640.html index 4f251ee3da..14b9ab76ce 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01640.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01640.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01641.html b/src/main/webapp/crypto-02/BenchmarkTest01641.html index 6989da5b96..569b9099ce 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01641.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01641.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01737.html b/src/main/webapp/crypto-02/BenchmarkTest01737.html index b4192ecca0..19033f3924 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01737.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01737.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01741.html b/src/main/webapp/crypto-02/BenchmarkTest01741.html index b8abb39e21..84aaa06b6a 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01741.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01741.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01742.html b/src/main/webapp/crypto-02/BenchmarkTest01742.html index a166058f8c..7639c66393 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01742.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01742.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01822.html b/src/main/webapp/crypto-02/BenchmarkTest01822.html index a428283036..231ac5df3d 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01822.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01822.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01822" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01823.html b/src/main/webapp/crypto-02/BenchmarkTest01823.html index 656a8dc717..9ab5190185 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01823.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01823.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01823" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01824.html b/src/main/webapp/crypto-02/BenchmarkTest01824.html index 0f77edb32f..1bc009ca7d 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01824.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01824.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01824" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01825.html b/src/main/webapp/crypto-02/BenchmarkTest01825.html index edc5a626b7..a74ab2712a 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01825.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01825.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01825" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01826.html b/src/main/webapp/crypto-02/BenchmarkTest01826.html index 6ad7516312..5901e2a1a8 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01826.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01826.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01826" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01827.html b/src/main/webapp/crypto-02/BenchmarkTest01827.html index 979dbb4100..c21d20a791 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01827.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01827.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01827" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01828.html b/src/main/webapp/crypto-02/BenchmarkTest01828.html index 030788352c..36c6f4bd25 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01828.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01828.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01828" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01829.html b/src/main/webapp/crypto-02/BenchmarkTest01829.html index edbf907952..38950d3a73 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01829.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01829.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01829" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01830.html b/src/main/webapp/crypto-02/BenchmarkTest01830.html index dc75400843..fa7826aca0 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01830.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01830.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01830" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/crypto-02/BenchmarkTest01895.html b/src/main/webapp/crypto-02/BenchmarkTest01895.html index 723564295a..1829a66257 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01895.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01895.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest01896.html b/src/main/webapp/crypto-02/BenchmarkTest01896.html index 576b820814..15639e241b 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01896.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01896.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest01897.html b/src/main/webapp/crypto-02/BenchmarkTest01897.html index ffa05676d4..8857f2e666 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01897.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01897.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest01898.html b/src/main/webapp/crypto-02/BenchmarkTest01898.html index 788c658d5a..21f856628f 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01898.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01898.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest01899.html b/src/main/webapp/crypto-02/BenchmarkTest01899.html index 6b3189afdd..87c899b491 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01899.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01899.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest01900.html b/src/main/webapp/crypto-02/BenchmarkTest01900.html index 8d36d80738..fe0819d6c9 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01900.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01900.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest01901.html b/src/main/webapp/crypto-02/BenchmarkTest01901.html index 304c1e6840..e4432c4605 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01901.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01901.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest01975.html b/src/main/webapp/crypto-02/BenchmarkTest01975.html index 74ff788ebb..5a9cce6fc3 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01975.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01975.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01975.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest01976.html b/src/main/webapp/crypto-02/BenchmarkTest01976.html index 2850744ea6..14dd022e09 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01976.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01976.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01976.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest01977.html b/src/main/webapp/crypto-02/BenchmarkTest01977.html index 997e952d92..ebe82c6698 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01977.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01977.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01977.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest01978.html b/src/main/webapp/crypto-02/BenchmarkTest01978.html index 9e0d380676..b9e78322b7 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01978.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01978.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01978.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest01979.html b/src/main/webapp/crypto-02/BenchmarkTest01979.html index 8152292857..a59fb0aac8 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01979.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01979.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01979.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest01980.html b/src/main/webapp/crypto-02/BenchmarkTest01980.html index bd5653808b..07249b85f2 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01980.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01980.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01980.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest01981.html b/src/main/webapp/crypto-02/BenchmarkTest01981.html index 4a35aa6c3d..f9e0b40c4d 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01981.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01981.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01981.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest01982.html b/src/main/webapp/crypto-02/BenchmarkTest01982.html index b60787fa77..22ebfac6c3 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest01982.html +++ b/src/main/webapp/crypto-02/BenchmarkTest01982.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01982.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02017.html b/src/main/webapp/crypto-02/BenchmarkTest02017.html index c494821964..1eaab25377 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02017.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02017.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02018.html b/src/main/webapp/crypto-02/BenchmarkTest02018.html index e89c717bd4..722621be3c 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02018.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02018.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02019.html b/src/main/webapp/crypto-02/BenchmarkTest02019.html index e7979a0945..41aa4276d5 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02019.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02019.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02020.html b/src/main/webapp/crypto-02/BenchmarkTest02020.html index 0962ce799b..091675b9d3 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02020.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02020.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02021.html b/src/main/webapp/crypto-02/BenchmarkTest02021.html index e1ae5a8814..f5be2c5ac6 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02021.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02021.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02022.html b/src/main/webapp/crypto-02/BenchmarkTest02022.html index 4545515f8f..0bf290aa81 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02022.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02022.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02023.html b/src/main/webapp/crypto-02/BenchmarkTest02023.html index 383f873ae4..1247172779 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02023.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02023.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02024.html b/src/main/webapp/crypto-02/BenchmarkTest02024.html index 34c1cc2251..1c84e048fc 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02024.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02024.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02103.html b/src/main/webapp/crypto-02/BenchmarkTest02103.html index a0a7230141..15776ab0c2 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02103.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02103.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest02193.html b/src/main/webapp/crypto-02/BenchmarkTest02193.html index 811ce7369a..501416e475 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02193.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02193.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest02194.html b/src/main/webapp/crypto-02/BenchmarkTest02194.html index f1b7be0572..72b5033ef8 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02194.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02194.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest02289.html b/src/main/webapp/crypto-02/BenchmarkTest02289.html index 37e765c2d4..744fd3c5c4 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02289.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02289.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02289 input[id=BenchmarkTest02289]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02290.html b/src/main/webapp/crypto-02/BenchmarkTest02290.html index 2469c6feb9..cfd1eb909a 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02290.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02290.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02290 input[id=BenchmarkTest02290]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02291.html b/src/main/webapp/crypto-02/BenchmarkTest02291.html index 6c173f8510..7f37fe9aa2 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02291.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02291.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02291 input[id=BenchmarkTest02291]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02292.html b/src/main/webapp/crypto-02/BenchmarkTest02292.html index 36233fe987..b1dc4b60f2 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02292.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02292.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02292 input[id=BenchmarkTest02292]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02293.html b/src/main/webapp/crypto-02/BenchmarkTest02293.html index a189baad62..cef54f66a8 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02293.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02293.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02293 input[id=BenchmarkTest02293]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02294.html b/src/main/webapp/crypto-02/BenchmarkTest02294.html index 9178d17e5d..4e0a392144 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02294.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02294.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02294 input[id=BenchmarkTest02294]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02295.html b/src/main/webapp/crypto-02/BenchmarkTest02295.html index d8b4a78a87..1ec121ed47 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02295.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02295.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02295 input[id=BenchmarkTest02295]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02296.html b/src/main/webapp/crypto-02/BenchmarkTest02296.html index ed00179b71..88afbbc3dc 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02296.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02296.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02296 input[id=BenchmarkTest02296]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02297.html b/src/main/webapp/crypto-02/BenchmarkTest02297.html index 631736dd2c..71039f1767 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02297.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02297.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02297 input[id=BenchmarkTest02297]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02298.html b/src/main/webapp/crypto-02/BenchmarkTest02298.html index 0995952e10..030b55ef14 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02298.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02298.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02298 input[id=BenchmarkTest02298]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/crypto-02/BenchmarkTest02372.html b/src/main/webapp/crypto-02/BenchmarkTest02372.html index d9d3e0eaf6..879b7ae5af 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02372.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02372.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest02373.html b/src/main/webapp/crypto-02/BenchmarkTest02373.html index 1e82d61bbc..bb70089ba9 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02373.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02373.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest02458.html b/src/main/webapp/crypto-02/BenchmarkTest02458.html index c5df482458..bf62bffd1f 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02458.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02458.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest02547.html b/src/main/webapp/crypto-02/BenchmarkTest02547.html index 13ca8865c5..9a95f04848 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02547.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02547.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest02548.html b/src/main/webapp/crypto-02/BenchmarkTest02548.html index 247631d2e1..f5e95ff3f8 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02548.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02548.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest02549.html b/src/main/webapp/crypto-02/BenchmarkTest02549.html index 5d3fe352fa..da5e1fee4b 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02549.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02549.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest02550.html b/src/main/webapp/crypto-02/BenchmarkTest02550.html index 97c26fd162..0b2895bc28 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02550.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02550.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest02551.html b/src/main/webapp/crypto-02/BenchmarkTest02551.html index 2325707420..6f2989b800 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02551.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02551.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-02/BenchmarkTest02552.html b/src/main/webapp/crypto-02/BenchmarkTest02552.html index b1c5c17574..e05e286948 100644 --- a/src/main/webapp/crypto-02/BenchmarkTest02552.html +++ b/src/main/webapp/crypto-02/BenchmarkTest02552.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-03/BenchmarkTest02658.html b/src/main/webapp/crypto-03/BenchmarkTest02658.html index 3534449779..8c7babaf9a 100644 --- a/src/main/webapp/crypto-03/BenchmarkTest02658.html +++ b/src/main/webapp/crypto-03/BenchmarkTest02658.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-03/BenchmarkTest02662.html b/src/main/webapp/crypto-03/BenchmarkTest02662.html index 21027f62fd..8e4e33b892 100644 --- a/src/main/webapp/crypto-03/BenchmarkTest02662.html +++ b/src/main/webapp/crypto-03/BenchmarkTest02662.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/crypto-03/BenchmarkTest02663.html b/src/main/webapp/crypto-03/BenchmarkTest02663.html index 7a3d2ffb6e..1eaf0ebfa9 100644 --- a/src/main/webapp/crypto-03/BenchmarkTest02663.html +++ b/src/main/webapp/crypto-03/BenchmarkTest02663.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00003.html b/src/main/webapp/hash-00/BenchmarkTest00003.html index 83f810157b..e04fca7c0c 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00003.html +++ b/src/main/webapp/hash-00/BenchmarkTest00003.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00003" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-00/BenchmarkTest00009.html b/src/main/webapp/hash-00/BenchmarkTest00009.html index cf6dd3e83b..d6a2862df0 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00009.html +++ b/src/main/webapp/hash-00/BenchmarkTest00009.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00009.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00022.html b/src/main/webapp/hash-00/BenchmarkTest00022.html index 28b6bd4f20..64987164bd 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00022.html +++ b/src/main/webapp/hash-00/BenchmarkTest00022.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00046.html b/src/main/webapp/hash-00/BenchmarkTest00046.html index e7e4c6986e..7a535e9987 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00046.html +++ b/src/main/webapp/hash-00/BenchmarkTest00046.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00069.html b/src/main/webapp/hash-00/BenchmarkTest00069.html index 990950436d..f7d0dc02cc 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00069.html +++ b/src/main/webapp/hash-00/BenchmarkTest00069.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00069" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-00/BenchmarkTest00070.html b/src/main/webapp/hash-00/BenchmarkTest00070.html index a4e1718e01..6747729438 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00070.html +++ b/src/main/webapp/hash-00/BenchmarkTest00070.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00070" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-00/BenchmarkTest00071.html b/src/main/webapp/hash-00/BenchmarkTest00071.html index 7354b927f8..4fc5f88e45 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00071.html +++ b/src/main/webapp/hash-00/BenchmarkTest00071.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00071" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-00/BenchmarkTest00072.html b/src/main/webapp/hash-00/BenchmarkTest00072.html index d86fec3540..66b32078de 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00072.html +++ b/src/main/webapp/hash-00/BenchmarkTest00072.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00072" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-00/BenchmarkTest00073.html b/src/main/webapp/hash-00/BenchmarkTest00073.html index 1cf2ceba33..017387ae2d 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00073.html +++ b/src/main/webapp/hash-00/BenchmarkTest00073.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00073" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-00/BenchmarkTest00074.html b/src/main/webapp/hash-00/BenchmarkTest00074.html index 839e96fa16..4e9a2f1408 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00074.html +++ b/src/main/webapp/hash-00/BenchmarkTest00074.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00074" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-00/BenchmarkTest00075.html b/src/main/webapp/hash-00/BenchmarkTest00075.html index b9d7d5649a..65416d0427 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00075.html +++ b/src/main/webapp/hash-00/BenchmarkTest00075.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00075" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-00/BenchmarkTest00076.html b/src/main/webapp/hash-00/BenchmarkTest00076.html index e284d898ed..873121dfb1 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00076.html +++ b/src/main/webapp/hash-00/BenchmarkTest00076.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00076" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-00/BenchmarkTest00141.html b/src/main/webapp/hash-00/BenchmarkTest00141.html index 9d0b13a5dc..786a8d5e4d 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00141.html +++ b/src/main/webapp/hash-00/BenchmarkTest00141.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00142.html b/src/main/webapp/hash-00/BenchmarkTest00142.html index e958a2d4cc..366072c68a 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00142.html +++ b/src/main/webapp/hash-00/BenchmarkTest00142.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00143.html b/src/main/webapp/hash-00/BenchmarkTest00143.html index 8d3bba0ad5..6e897347a9 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00143.html +++ b/src/main/webapp/hash-00/BenchmarkTest00143.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00223.html b/src/main/webapp/hash-00/BenchmarkTest00223.html index 6e0e2d361b..1ced41bb56 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00223.html +++ b/src/main/webapp/hash-00/BenchmarkTest00223.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00223.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00224.html b/src/main/webapp/hash-00/BenchmarkTest00224.html index 7476253761..dc794cad41 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00224.html +++ b/src/main/webapp/hash-00/BenchmarkTest00224.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00224.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00225.html b/src/main/webapp/hash-00/BenchmarkTest00225.html index 50a98c0d74..b03315cb9e 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00225.html +++ b/src/main/webapp/hash-00/BenchmarkTest00225.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00225.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00226.html b/src/main/webapp/hash-00/BenchmarkTest00226.html index ab62a9adbc..64247691fe 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00226.html +++ b/src/main/webapp/hash-00/BenchmarkTest00226.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00226.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00227.html b/src/main/webapp/hash-00/BenchmarkTest00227.html index 22073bcdb1..0e2d692e21 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00227.html +++ b/src/main/webapp/hash-00/BenchmarkTest00227.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00227.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00228.html b/src/main/webapp/hash-00/BenchmarkTest00228.html index 7efdfea7db..45993ab391 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00228.html +++ b/src/main/webapp/hash-00/BenchmarkTest00228.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00228.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00229.html b/src/main/webapp/hash-00/BenchmarkTest00229.html index ddbd1b39a0..4037a16e31 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00229.html +++ b/src/main/webapp/hash-00/BenchmarkTest00229.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00229.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00266.html b/src/main/webapp/hash-00/BenchmarkTest00266.html index 319cb07146..d4ccc7f61e 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00266.html +++ b/src/main/webapp/hash-00/BenchmarkTest00266.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00267.html b/src/main/webapp/hash-00/BenchmarkTest00267.html index 5b08cb0ae0..70c497edd0 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00267.html +++ b/src/main/webapp/hash-00/BenchmarkTest00267.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00268.html b/src/main/webapp/hash-00/BenchmarkTest00268.html index 4e98981717..a144aac832 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00268.html +++ b/src/main/webapp/hash-00/BenchmarkTest00268.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00269.html b/src/main/webapp/hash-00/BenchmarkTest00269.html index 8b0ad85967..463fb5ad9d 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00269.html +++ b/src/main/webapp/hash-00/BenchmarkTest00269.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00270.html b/src/main/webapp/hash-00/BenchmarkTest00270.html index 7a213ea2d1..23f4e0b9ad 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00270.html +++ b/src/main/webapp/hash-00/BenchmarkTest00270.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00271.html b/src/main/webapp/hash-00/BenchmarkTest00271.html index 8d02c42ca7..3d657bd9d4 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00271.html +++ b/src/main/webapp/hash-00/BenchmarkTest00271.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00272.html b/src/main/webapp/hash-00/BenchmarkTest00272.html index 51a443b37d..29d181ac5a 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00272.html +++ b/src/main/webapp/hash-00/BenchmarkTest00272.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00273.html b/src/main/webapp/hash-00/BenchmarkTest00273.html index d6e92c4ea3..7b8a48acf2 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00273.html +++ b/src/main/webapp/hash-00/BenchmarkTest00273.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00274.html b/src/main/webapp/hash-00/BenchmarkTest00274.html index 8fa6c68af7..b1b45bcd30 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00274.html +++ b/src/main/webapp/hash-00/BenchmarkTest00274.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00346.html b/src/main/webapp/hash-00/BenchmarkTest00346.html index 231ba7e8cb..8512504766 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00346.html +++ b/src/main/webapp/hash-00/BenchmarkTest00346.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00346 input[id=BenchmarkTest00346]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00372.html b/src/main/webapp/hash-00/BenchmarkTest00372.html index 8d33124eed..6558405659 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00372.html +++ b/src/main/webapp/hash-00/BenchmarkTest00372.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00373.html b/src/main/webapp/hash-00/BenchmarkTest00373.html index ec5ea0c4d4..701cd91041 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00373.html +++ b/src/main/webapp/hash-00/BenchmarkTest00373.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00462.html b/src/main/webapp/hash-00/BenchmarkTest00462.html index e4267e6075..9893bf374c 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00462.html +++ b/src/main/webapp/hash-00/BenchmarkTest00462.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00463.html b/src/main/webapp/hash-00/BenchmarkTest00463.html index c45e8ebf57..e890aba7ac 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00463.html +++ b/src/main/webapp/hash-00/BenchmarkTest00463.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00531.html b/src/main/webapp/hash-00/BenchmarkTest00531.html index 37cce356ae..4ef973bf1d 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00531.html +++ b/src/main/webapp/hash-00/BenchmarkTest00531.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00531 input[id=BenchmarkTest00531]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00532.html b/src/main/webapp/hash-00/BenchmarkTest00532.html index 62f129f011..aef7102d61 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00532.html +++ b/src/main/webapp/hash-00/BenchmarkTest00532.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00532 input[id=BenchmarkTest00532]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00533.html b/src/main/webapp/hash-00/BenchmarkTest00533.html index 0c56b4f893..75e6ce94dd 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00533.html +++ b/src/main/webapp/hash-00/BenchmarkTest00533.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00533 input[id=BenchmarkTest00533]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00534.html b/src/main/webapp/hash-00/BenchmarkTest00534.html index 14f76701e7..c2d19374c3 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00534.html +++ b/src/main/webapp/hash-00/BenchmarkTest00534.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00534 input[id=BenchmarkTest00534]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00535.html b/src/main/webapp/hash-00/BenchmarkTest00535.html index c59db1ac15..c1d67a4004 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00535.html +++ b/src/main/webapp/hash-00/BenchmarkTest00535.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00535 input[id=BenchmarkTest00535]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00536.html b/src/main/webapp/hash-00/BenchmarkTest00536.html index 86c75d48a7..77e39a296a 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00536.html +++ b/src/main/webapp/hash-00/BenchmarkTest00536.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00536 input[id=BenchmarkTest00536]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00537.html b/src/main/webapp/hash-00/BenchmarkTest00537.html index e837e77f65..81a1552c98 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00537.html +++ b/src/main/webapp/hash-00/BenchmarkTest00537.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00537 input[id=BenchmarkTest00537]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00538.html b/src/main/webapp/hash-00/BenchmarkTest00538.html index accfc5b6e5..ec853158ce 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00538.html +++ b/src/main/webapp/hash-00/BenchmarkTest00538.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00538 input[id=BenchmarkTest00538]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00539.html b/src/main/webapp/hash-00/BenchmarkTest00539.html index 417d200053..0665f963d7 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00539.html +++ b/src/main/webapp/hash-00/BenchmarkTest00539.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00539 input[id=BenchmarkTest00539]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00540.html b/src/main/webapp/hash-00/BenchmarkTest00540.html index dda735cecf..8ac9686a1a 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00540.html +++ b/src/main/webapp/hash-00/BenchmarkTest00540.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00540 input[id=BenchmarkTest00540]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-00/BenchmarkTest00634.html b/src/main/webapp/hash-00/BenchmarkTest00634.html index c3f09da9fe..3a0bba98c0 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00634.html +++ b/src/main/webapp/hash-00/BenchmarkTest00634.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00635.html b/src/main/webapp/hash-00/BenchmarkTest00635.html index fd40479758..6d14f91ee7 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00635.html +++ b/src/main/webapp/hash-00/BenchmarkTest00635.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00639.html b/src/main/webapp/hash-00/BenchmarkTest00639.html index a00b29a8cf..f251e823ff 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00639.html +++ b/src/main/webapp/hash-00/BenchmarkTest00639.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00640.html b/src/main/webapp/hash-00/BenchmarkTest00640.html index a55ca80e85..ae7331eb5a 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00640.html +++ b/src/main/webapp/hash-00/BenchmarkTest00640.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00704.html b/src/main/webapp/hash-00/BenchmarkTest00704.html index 178c3f8ee2..1761b4c398 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00704.html +++ b/src/main/webapp/hash-00/BenchmarkTest00704.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00705.html b/src/main/webapp/hash-00/BenchmarkTest00705.html index 849ea8d448..1a4eaf84bc 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00705.html +++ b/src/main/webapp/hash-00/BenchmarkTest00705.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00709.html b/src/main/webapp/hash-00/BenchmarkTest00709.html index 44389ef034..05e5086601 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00709.html +++ b/src/main/webapp/hash-00/BenchmarkTest00709.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00710.html b/src/main/webapp/hash-00/BenchmarkTest00710.html index 37556f8fb9..160bd8a8ca 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00710.html +++ b/src/main/webapp/hash-00/BenchmarkTest00710.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00789.html b/src/main/webapp/hash-00/BenchmarkTest00789.html index 088675cf7b..a30f16ff32 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00789.html +++ b/src/main/webapp/hash-00/BenchmarkTest00789.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00790.html b/src/main/webapp/hash-00/BenchmarkTest00790.html index 7e06fae1ad..714130a2a2 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00790.html +++ b/src/main/webapp/hash-00/BenchmarkTest00790.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00791.html b/src/main/webapp/hash-00/BenchmarkTest00791.html index 72c7fcd7a3..00721a7479 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00791.html +++ b/src/main/webapp/hash-00/BenchmarkTest00791.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00792.html b/src/main/webapp/hash-00/BenchmarkTest00792.html index 2a0c631d6a..4db07e7b87 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00792.html +++ b/src/main/webapp/hash-00/BenchmarkTest00792.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00793.html b/src/main/webapp/hash-00/BenchmarkTest00793.html index b1bdb78669..5a203c89b4 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00793.html +++ b/src/main/webapp/hash-00/BenchmarkTest00793.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00794.html b/src/main/webapp/hash-00/BenchmarkTest00794.html index 6001cdd257..3c085766de 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00794.html +++ b/src/main/webapp/hash-00/BenchmarkTest00794.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00795.html b/src/main/webapp/hash-00/BenchmarkTest00795.html index 034322bd36..5534081a28 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00795.html +++ b/src/main/webapp/hash-00/BenchmarkTest00795.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-00/BenchmarkTest00796.html b/src/main/webapp/hash-00/BenchmarkTest00796.html index 39cdc172a3..bad4f63218 100644 --- a/src/main/webapp/hash-00/BenchmarkTest00796.html +++ b/src/main/webapp/hash-00/BenchmarkTest00796.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest00797.html b/src/main/webapp/hash-01/BenchmarkTest00797.html index 9d45c91b2c..e4f522e930 100644 --- a/src/main/webapp/hash-01/BenchmarkTest00797.html +++ b/src/main/webapp/hash-01/BenchmarkTest00797.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest00798.html b/src/main/webapp/hash-01/BenchmarkTest00798.html index 3ca84886fa..f1307aef66 100644 --- a/src/main/webapp/hash-01/BenchmarkTest00798.html +++ b/src/main/webapp/hash-01/BenchmarkTest00798.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest00868.html b/src/main/webapp/hash-01/BenchmarkTest00868.html index a58aaa9caf..57175725a5 100644 --- a/src/main/webapp/hash-01/BenchmarkTest00868.html +++ b/src/main/webapp/hash-01/BenchmarkTest00868.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest00872.html b/src/main/webapp/hash-01/BenchmarkTest00872.html index aaaf3f91bf..bdb6d6d137 100644 --- a/src/main/webapp/hash-01/BenchmarkTest00872.html +++ b/src/main/webapp/hash-01/BenchmarkTest00872.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest00873.html b/src/main/webapp/hash-01/BenchmarkTest00873.html index 454588965b..e7769bfe13 100644 --- a/src/main/webapp/hash-01/BenchmarkTest00873.html +++ b/src/main/webapp/hash-01/BenchmarkTest00873.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest00877.html b/src/main/webapp/hash-01/BenchmarkTest00877.html index 0a10e5df79..908c204c0b 100644 --- a/src/main/webapp/hash-01/BenchmarkTest00877.html +++ b/src/main/webapp/hash-01/BenchmarkTest00877.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest00878.html b/src/main/webapp/hash-01/BenchmarkTest00878.html index eaf9a492ae..6cb310bc76 100644 --- a/src/main/webapp/hash-01/BenchmarkTest00878.html +++ b/src/main/webapp/hash-01/BenchmarkTest00878.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest00961.html b/src/main/webapp/hash-01/BenchmarkTest00961.html index ef79a6a80f..ded0b639ee 100644 --- a/src/main/webapp/hash-01/BenchmarkTest00961.html +++ b/src/main/webapp/hash-01/BenchmarkTest00961.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00961" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-01/BenchmarkTest00962.html b/src/main/webapp/hash-01/BenchmarkTest00962.html index 1e447b74ab..5371c3ec9a 100644 --- a/src/main/webapp/hash-01/BenchmarkTest00962.html +++ b/src/main/webapp/hash-01/BenchmarkTest00962.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00962" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-01/BenchmarkTest00963.html b/src/main/webapp/hash-01/BenchmarkTest00963.html index 1a28ce25ab..4c436dafc9 100644 --- a/src/main/webapp/hash-01/BenchmarkTest00963.html +++ b/src/main/webapp/hash-01/BenchmarkTest00963.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00963" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-01/BenchmarkTest00964.html b/src/main/webapp/hash-01/BenchmarkTest00964.html index e03bd64607..9c0aacd138 100644 --- a/src/main/webapp/hash-01/BenchmarkTest00964.html +++ b/src/main/webapp/hash-01/BenchmarkTest00964.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00964" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-01/BenchmarkTest00965.html b/src/main/webapp/hash-01/BenchmarkTest00965.html index 02d2bb35cf..d669448329 100644 --- a/src/main/webapp/hash-01/BenchmarkTest00965.html +++ b/src/main/webapp/hash-01/BenchmarkTest00965.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00965" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-01/BenchmarkTest00966.html b/src/main/webapp/hash-01/BenchmarkTest00966.html index 090e3f6313..11089a2c8c 100644 --- a/src/main/webapp/hash-01/BenchmarkTest00966.html +++ b/src/main/webapp/hash-01/BenchmarkTest00966.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00966" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-01/BenchmarkTest00967.html b/src/main/webapp/hash-01/BenchmarkTest00967.html index 8355073240..e531cd657c 100644 --- a/src/main/webapp/hash-01/BenchmarkTest00967.html +++ b/src/main/webapp/hash-01/BenchmarkTest00967.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00967" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-01/BenchmarkTest01037.html b/src/main/webapp/hash-01/BenchmarkTest01037.html index a5471e00c1..d26431e226 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01037.html +++ b/src/main/webapp/hash-01/BenchmarkTest01037.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01038.html b/src/main/webapp/hash-01/BenchmarkTest01038.html index f23784dd60..1af7b8b6d8 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01038.html +++ b/src/main/webapp/hash-01/BenchmarkTest01038.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01039.html b/src/main/webapp/hash-01/BenchmarkTest01039.html index 03c03d21a4..47cba9b9b2 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01039.html +++ b/src/main/webapp/hash-01/BenchmarkTest01039.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01040.html b/src/main/webapp/hash-01/BenchmarkTest01040.html index 7b1e2c85c7..0b058f957a 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01040.html +++ b/src/main/webapp/hash-01/BenchmarkTest01040.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01041.html b/src/main/webapp/hash-01/BenchmarkTest01041.html index a186787831..4e0a65a3da 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01041.html +++ b/src/main/webapp/hash-01/BenchmarkTest01041.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01042.html b/src/main/webapp/hash-01/BenchmarkTest01042.html index a4b9fb940d..efd561cd06 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01042.html +++ b/src/main/webapp/hash-01/BenchmarkTest01042.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01043.html b/src/main/webapp/hash-01/BenchmarkTest01043.html index e75656e4da..35dd055bbd 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01043.html +++ b/src/main/webapp/hash-01/BenchmarkTest01043.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01044.html b/src/main/webapp/hash-01/BenchmarkTest01044.html index 69d09df4ec..eb218f3088 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01044.html +++ b/src/main/webapp/hash-01/BenchmarkTest01044.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01045.html b/src/main/webapp/hash-01/BenchmarkTest01045.html index 7b526145bc..f272922229 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01045.html +++ b/src/main/webapp/hash-01/BenchmarkTest01045.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01120.html b/src/main/webapp/hash-01/BenchmarkTest01120.html index e067129bcd..4321c294c5 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01120.html +++ b/src/main/webapp/hash-01/BenchmarkTest01120.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01120.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01121.html b/src/main/webapp/hash-01/BenchmarkTest01121.html index 4657a5ba3c..f7840522ca 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01121.html +++ b/src/main/webapp/hash-01/BenchmarkTest01121.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01121.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01122.html b/src/main/webapp/hash-01/BenchmarkTest01122.html index e9c472f0c2..2b3b0a4233 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01122.html +++ b/src/main/webapp/hash-01/BenchmarkTest01122.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01122.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01123.html b/src/main/webapp/hash-01/BenchmarkTest01123.html index 0b2b4ae4fc..cfaa62eef7 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01123.html +++ b/src/main/webapp/hash-01/BenchmarkTest01123.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01123.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01124.html b/src/main/webapp/hash-01/BenchmarkTest01124.html index 04eaa7f79e..61aaf45177 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01124.html +++ b/src/main/webapp/hash-01/BenchmarkTest01124.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01124.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01125.html b/src/main/webapp/hash-01/BenchmarkTest01125.html index 7349425389..1cbc6137ae 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01125.html +++ b/src/main/webapp/hash-01/BenchmarkTest01125.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01125.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01126.html b/src/main/webapp/hash-01/BenchmarkTest01126.html index 329a854980..cdb5f0f837 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01126.html +++ b/src/main/webapp/hash-01/BenchmarkTest01126.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01126.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01164.html b/src/main/webapp/hash-01/BenchmarkTest01164.html index 313c442a48..016b15ab0a 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01164.html +++ b/src/main/webapp/hash-01/BenchmarkTest01164.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01165.html b/src/main/webapp/hash-01/BenchmarkTest01165.html index e944d53890..324e70a878 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01165.html +++ b/src/main/webapp/hash-01/BenchmarkTest01165.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01166.html b/src/main/webapp/hash-01/BenchmarkTest01166.html index 882cbdf458..b8f582c9f9 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01166.html +++ b/src/main/webapp/hash-01/BenchmarkTest01166.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01167.html b/src/main/webapp/hash-01/BenchmarkTest01167.html index bf2ba01544..3862670c4b 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01167.html +++ b/src/main/webapp/hash-01/BenchmarkTest01167.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01168.html b/src/main/webapp/hash-01/BenchmarkTest01168.html index 10852131e1..a1c2d074c2 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01168.html +++ b/src/main/webapp/hash-01/BenchmarkTest01168.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01169.html b/src/main/webapp/hash-01/BenchmarkTest01169.html index 300783ccfc..fe6f4b3027 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01169.html +++ b/src/main/webapp/hash-01/BenchmarkTest01169.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01170.html b/src/main/webapp/hash-01/BenchmarkTest01170.html index d05d723c39..8f9b46479a 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01170.html +++ b/src/main/webapp/hash-01/BenchmarkTest01170.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01244.html b/src/main/webapp/hash-01/BenchmarkTest01244.html index 071595a184..a6ccabe969 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01244.html +++ b/src/main/webapp/hash-01/BenchmarkTest01244.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01248.html b/src/main/webapp/hash-01/BenchmarkTest01248.html index 9f2c2b5870..170ba01175 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01248.html +++ b/src/main/webapp/hash-01/BenchmarkTest01248.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01249.html b/src/main/webapp/hash-01/BenchmarkTest01249.html index 930ce19032..f7673e9340 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01249.html +++ b/src/main/webapp/hash-01/BenchmarkTest01249.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01333.html b/src/main/webapp/hash-01/BenchmarkTest01333.html index 511be505bc..66b148dc8e 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01333.html +++ b/src/main/webapp/hash-01/BenchmarkTest01333.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01334.html b/src/main/webapp/hash-01/BenchmarkTest01334.html index e8b2e38a12..fa02c4814c 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01334.html +++ b/src/main/webapp/hash-01/BenchmarkTest01334.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01410.html b/src/main/webapp/hash-01/BenchmarkTest01410.html index 28c336378f..bbaff0a404 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01410.html +++ b/src/main/webapp/hash-01/BenchmarkTest01410.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01410 input[id=BenchmarkTest01410]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01411.html b/src/main/webapp/hash-01/BenchmarkTest01411.html index 84c34b745c..8168d123ca 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01411.html +++ b/src/main/webapp/hash-01/BenchmarkTest01411.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01411 input[id=BenchmarkTest01411]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01412.html b/src/main/webapp/hash-01/BenchmarkTest01412.html index 5777605447..15f05fa38f 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01412.html +++ b/src/main/webapp/hash-01/BenchmarkTest01412.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01412 input[id=BenchmarkTest01412]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01413.html b/src/main/webapp/hash-01/BenchmarkTest01413.html index 805b7ad31f..f62fb9dcf5 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01413.html +++ b/src/main/webapp/hash-01/BenchmarkTest01413.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01413 input[id=BenchmarkTest01413]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01414.html b/src/main/webapp/hash-01/BenchmarkTest01414.html index 0c47a088e0..a665e994e0 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01414.html +++ b/src/main/webapp/hash-01/BenchmarkTest01414.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01414 input[id=BenchmarkTest01414]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01415.html b/src/main/webapp/hash-01/BenchmarkTest01415.html index 87a6b29c7a..dac22304e2 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01415.html +++ b/src/main/webapp/hash-01/BenchmarkTest01415.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01415 input[id=BenchmarkTest01415]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01416.html b/src/main/webapp/hash-01/BenchmarkTest01416.html index 531b31d431..6514c043bc 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01416.html +++ b/src/main/webapp/hash-01/BenchmarkTest01416.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01416 input[id=BenchmarkTest01416]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-01/BenchmarkTest01576.html b/src/main/webapp/hash-01/BenchmarkTest01576.html index acf1a0abbb..f5baafd42c 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01576.html +++ b/src/main/webapp/hash-01/BenchmarkTest01576.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01577.html b/src/main/webapp/hash-01/BenchmarkTest01577.html index 44cccad7cd..e6a59201ae 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01577.html +++ b/src/main/webapp/hash-01/BenchmarkTest01577.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01581.html b/src/main/webapp/hash-01/BenchmarkTest01581.html index da85a76308..81c7fb208d 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01581.html +++ b/src/main/webapp/hash-01/BenchmarkTest01581.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01582.html b/src/main/webapp/hash-01/BenchmarkTest01582.html index 6f264457ac..6d106c5a99 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01582.html +++ b/src/main/webapp/hash-01/BenchmarkTest01582.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01649.html b/src/main/webapp/hash-01/BenchmarkTest01649.html index bedaaabb7c..f9b196fc48 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01649.html +++ b/src/main/webapp/hash-01/BenchmarkTest01649.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01650.html b/src/main/webapp/hash-01/BenchmarkTest01650.html index 832547f250..b17f272967 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01650.html +++ b/src/main/webapp/hash-01/BenchmarkTest01650.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01651.html b/src/main/webapp/hash-01/BenchmarkTest01651.html index aa7bc2c4e3..b6ea51d886 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01651.html +++ b/src/main/webapp/hash-01/BenchmarkTest01651.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01652.html b/src/main/webapp/hash-01/BenchmarkTest01652.html index 84c0825087..d577ab5885 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01652.html +++ b/src/main/webapp/hash-01/BenchmarkTest01652.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01653.html b/src/main/webapp/hash-01/BenchmarkTest01653.html index 0afa9b2684..92417179b9 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01653.html +++ b/src/main/webapp/hash-01/BenchmarkTest01653.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01654.html b/src/main/webapp/hash-01/BenchmarkTest01654.html index f950360993..c0e65d8649 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01654.html +++ b/src/main/webapp/hash-01/BenchmarkTest01654.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01655.html b/src/main/webapp/hash-01/BenchmarkTest01655.html index 91eb42772f..ef96177794 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01655.html +++ b/src/main/webapp/hash-01/BenchmarkTest01655.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01656.html b/src/main/webapp/hash-01/BenchmarkTest01656.html index bdfd3ac134..76263c5869 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01656.html +++ b/src/main/webapp/hash-01/BenchmarkTest01656.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-01/BenchmarkTest01757.html b/src/main/webapp/hash-01/BenchmarkTest01757.html index 1366e5caa8..afb1516878 100644 --- a/src/main/webapp/hash-01/BenchmarkTest01757.html +++ b/src/main/webapp/hash-01/BenchmarkTest01757.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest01761.html b/src/main/webapp/hash-02/BenchmarkTest01761.html index 1552dc003d..53afee0694 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01761.html +++ b/src/main/webapp/hash-02/BenchmarkTest01761.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest01762.html b/src/main/webapp/hash-02/BenchmarkTest01762.html index 07af0b61ee..7ea8b023fd 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01762.html +++ b/src/main/webapp/hash-02/BenchmarkTest01762.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest01766.html b/src/main/webapp/hash-02/BenchmarkTest01766.html index 8f3372949d..d799a05ccf 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01766.html +++ b/src/main/webapp/hash-02/BenchmarkTest01766.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest01844.html b/src/main/webapp/hash-02/BenchmarkTest01844.html index 906c9776bf..b7a7429e16 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01844.html +++ b/src/main/webapp/hash-02/BenchmarkTest01844.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01844" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-02/BenchmarkTest01845.html b/src/main/webapp/hash-02/BenchmarkTest01845.html index 4152bd7063..93a8ea1e9b 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01845.html +++ b/src/main/webapp/hash-02/BenchmarkTest01845.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01845" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-02/BenchmarkTest01846.html b/src/main/webapp/hash-02/BenchmarkTest01846.html index 8e734d44d5..6d52f2b76b 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01846.html +++ b/src/main/webapp/hash-02/BenchmarkTest01846.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01846" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-02/BenchmarkTest01847.html b/src/main/webapp/hash-02/BenchmarkTest01847.html index eadb96b2a6..400b18ce3a 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01847.html +++ b/src/main/webapp/hash-02/BenchmarkTest01847.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01847" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-02/BenchmarkTest01848.html b/src/main/webapp/hash-02/BenchmarkTest01848.html index c5c51ef834..49d971fae7 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01848.html +++ b/src/main/webapp/hash-02/BenchmarkTest01848.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01848" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-02/BenchmarkTest01849.html b/src/main/webapp/hash-02/BenchmarkTest01849.html index 6e4c32ff40..cd01f450f4 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01849.html +++ b/src/main/webapp/hash-02/BenchmarkTest01849.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01849" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/hash-02/BenchmarkTest01911.html b/src/main/webapp/hash-02/BenchmarkTest01911.html index 0c28430e07..ed4be0b437 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01911.html +++ b/src/main/webapp/hash-02/BenchmarkTest01911.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest01912.html b/src/main/webapp/hash-02/BenchmarkTest01912.html index 56f9804e1e..aab3f75cc2 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01912.html +++ b/src/main/webapp/hash-02/BenchmarkTest01912.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest01913.html b/src/main/webapp/hash-02/BenchmarkTest01913.html index 6c42f8c1f9..9fb8b6f3a5 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01913.html +++ b/src/main/webapp/hash-02/BenchmarkTest01913.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest01993.html b/src/main/webapp/hash-02/BenchmarkTest01993.html index bf0786192d..f58ae7d422 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01993.html +++ b/src/main/webapp/hash-02/BenchmarkTest01993.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01993.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest01994.html b/src/main/webapp/hash-02/BenchmarkTest01994.html index 753eca369d..97a4876b51 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01994.html +++ b/src/main/webapp/hash-02/BenchmarkTest01994.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01994.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest01995.html b/src/main/webapp/hash-02/BenchmarkTest01995.html index ab3dc6b0ed..8377a3f111 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01995.html +++ b/src/main/webapp/hash-02/BenchmarkTest01995.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01995.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest01996.html b/src/main/webapp/hash-02/BenchmarkTest01996.html index 58a314222e..d61e0bc319 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01996.html +++ b/src/main/webapp/hash-02/BenchmarkTest01996.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01996.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest01997.html b/src/main/webapp/hash-02/BenchmarkTest01997.html index 766a3e8a16..a984da97b6 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01997.html +++ b/src/main/webapp/hash-02/BenchmarkTest01997.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01997.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest01998.html b/src/main/webapp/hash-02/BenchmarkTest01998.html index 1a3aaaca18..d1bcea4636 100644 --- a/src/main/webapp/hash-02/BenchmarkTest01998.html +++ b/src/main/webapp/hash-02/BenchmarkTest01998.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01998.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest02041.html b/src/main/webapp/hash-02/BenchmarkTest02041.html index fafdb1b3b5..04f69e727a 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02041.html +++ b/src/main/webapp/hash-02/BenchmarkTest02041.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest02042.html b/src/main/webapp/hash-02/BenchmarkTest02042.html index 6e8f1b71f6..542392f853 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02042.html +++ b/src/main/webapp/hash-02/BenchmarkTest02042.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest02043.html b/src/main/webapp/hash-02/BenchmarkTest02043.html index 0a94ed99fc..668008027d 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02043.html +++ b/src/main/webapp/hash-02/BenchmarkTest02043.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest02044.html b/src/main/webapp/hash-02/BenchmarkTest02044.html index 33c9381c67..eac8bd2f19 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02044.html +++ b/src/main/webapp/hash-02/BenchmarkTest02044.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest02118.html b/src/main/webapp/hash-02/BenchmarkTest02118.html index 1b517ff308..f9586dfb6b 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02118.html +++ b/src/main/webapp/hash-02/BenchmarkTest02118.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02119.html b/src/main/webapp/hash-02/BenchmarkTest02119.html index 825a643ee1..b33d05f245 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02119.html +++ b/src/main/webapp/hash-02/BenchmarkTest02119.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02213.html b/src/main/webapp/hash-02/BenchmarkTest02213.html index 47a49a2742..4d2a37f382 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02213.html +++ b/src/main/webapp/hash-02/BenchmarkTest02213.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02214.html b/src/main/webapp/hash-02/BenchmarkTest02214.html index 9f210e22e7..75a4f9a27b 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02214.html +++ b/src/main/webapp/hash-02/BenchmarkTest02214.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02218.html b/src/main/webapp/hash-02/BenchmarkTest02218.html index c83f29484b..ec0955ae69 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02218.html +++ b/src/main/webapp/hash-02/BenchmarkTest02218.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02219.html b/src/main/webapp/hash-02/BenchmarkTest02219.html index 3e820f887e..027f9716dd 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02219.html +++ b/src/main/webapp/hash-02/BenchmarkTest02219.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02307.html b/src/main/webapp/hash-02/BenchmarkTest02307.html index 1c4c88c8ff..181b493328 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02307.html +++ b/src/main/webapp/hash-02/BenchmarkTest02307.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02307 input[id=BenchmarkTest02307]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest02308.html b/src/main/webapp/hash-02/BenchmarkTest02308.html index 4db03002cc..acd0dd1c92 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02308.html +++ b/src/main/webapp/hash-02/BenchmarkTest02308.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02308 input[id=BenchmarkTest02308]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest02309.html b/src/main/webapp/hash-02/BenchmarkTest02309.html index b177dd406e..c475f534ee 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02309.html +++ b/src/main/webapp/hash-02/BenchmarkTest02309.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02309 input[id=BenchmarkTest02309]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest02310.html b/src/main/webapp/hash-02/BenchmarkTest02310.html index 0d7e353c4f..3904d6ecec 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02310.html +++ b/src/main/webapp/hash-02/BenchmarkTest02310.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02310 input[id=BenchmarkTest02310]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest02311.html b/src/main/webapp/hash-02/BenchmarkTest02311.html index e95ce215b2..6ddd95468b 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02311.html +++ b/src/main/webapp/hash-02/BenchmarkTest02311.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02311 input[id=BenchmarkTest02311]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest02312.html b/src/main/webapp/hash-02/BenchmarkTest02312.html index d792fcfca4..ebff25d9b0 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02312.html +++ b/src/main/webapp/hash-02/BenchmarkTest02312.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02312 input[id=BenchmarkTest02312]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/hash-02/BenchmarkTest02387.html b/src/main/webapp/hash-02/BenchmarkTest02387.html index fd502c49f1..618a9d44ef 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02387.html +++ b/src/main/webapp/hash-02/BenchmarkTest02387.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02388.html b/src/main/webapp/hash-02/BenchmarkTest02388.html index 6d6b3e39f7..b1758833f5 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02388.html +++ b/src/main/webapp/hash-02/BenchmarkTest02388.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02392.html b/src/main/webapp/hash-02/BenchmarkTest02392.html index 8064290dbe..ab5201faf9 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02392.html +++ b/src/main/webapp/hash-02/BenchmarkTest02392.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02393.html b/src/main/webapp/hash-02/BenchmarkTest02393.html index a73331f3e8..3ffe7c7ccc 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02393.html +++ b/src/main/webapp/hash-02/BenchmarkTest02393.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02477.html b/src/main/webapp/hash-02/BenchmarkTest02477.html index 907c08ab6e..33a52ddd05 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02477.html +++ b/src/main/webapp/hash-02/BenchmarkTest02477.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02478.html b/src/main/webapp/hash-02/BenchmarkTest02478.html index 465f33fe7a..9b24d15457 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02478.html +++ b/src/main/webapp/hash-02/BenchmarkTest02478.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02573.html b/src/main/webapp/hash-02/BenchmarkTest02573.html index aa88ac6428..e852965125 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02573.html +++ b/src/main/webapp/hash-02/BenchmarkTest02573.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02574.html b/src/main/webapp/hash-02/BenchmarkTest02574.html index 711cf3a4b7..e47549f722 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02574.html +++ b/src/main/webapp/hash-02/BenchmarkTest02574.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02575.html b/src/main/webapp/hash-02/BenchmarkTest02575.html index 55baaa28e5..f9ba3071d1 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02575.html +++ b/src/main/webapp/hash-02/BenchmarkTest02575.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02576.html b/src/main/webapp/hash-02/BenchmarkTest02576.html index 779a3bd838..a1df0e25d4 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02576.html +++ b/src/main/webapp/hash-02/BenchmarkTest02576.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02577.html b/src/main/webapp/hash-02/BenchmarkTest02577.html index 09d6dfea15..a2ee8c9396 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02577.html +++ b/src/main/webapp/hash-02/BenchmarkTest02577.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02672.html b/src/main/webapp/hash-02/BenchmarkTest02672.html index acc0eaa51f..b9c4004dde 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02672.html +++ b/src/main/webapp/hash-02/BenchmarkTest02672.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02673.html b/src/main/webapp/hash-02/BenchmarkTest02673.html index 05bc70d974..42f359bbb0 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02673.html +++ b/src/main/webapp/hash-02/BenchmarkTest02673.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02677.html b/src/main/webapp/hash-02/BenchmarkTest02677.html index 7c5dd62427..6c444e0f41 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02677.html +++ b/src/main/webapp/hash-02/BenchmarkTest02677.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/hash-02/BenchmarkTest02678.html b/src/main/webapp/hash-02/BenchmarkTest02678.html index 6af7251075..53037525ae 100644 --- a/src/main/webapp/hash-02/BenchmarkTest02678.html +++ b/src/main/webapp/hash-02/BenchmarkTest02678.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest00012.html b/src/main/webapp/ldapi-00/BenchmarkTest00012.html index 79423870d1..fc7adf7685 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest00012.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest00012.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest00021.html b/src/main/webapp/ldapi-00/BenchmarkTest00021.html index 11cfdbb254..d1dca75cfe 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest00021.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest00021.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest00138.html b/src/main/webapp/ldapi-00/BenchmarkTest00138.html index b47aad9c4f..c3be55c104 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest00138.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest00138.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest00139.html b/src/main/webapp/ldapi-00/BenchmarkTest00139.html index 312c4de22c..8920988854 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest00139.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest00139.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest00367.html b/src/main/webapp/ldapi-00/BenchmarkTest00367.html index df58109301..9720778c8e 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest00367.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest00367.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest00530.html b/src/main/webapp/ldapi-00/BenchmarkTest00530.html index a40e0c2149..b7cfc72c73 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest00530.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest00530.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00530 input[id=BenchmarkTest00530]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest00630.html b/src/main/webapp/ldapi-00/BenchmarkTest00630.html index 2b4e1468b2..de928f171f 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest00630.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest00630.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest00694.html b/src/main/webapp/ldapi-00/BenchmarkTest00694.html index 2842298a9d..c03035a4a7 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest00694.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest00694.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest00695.html b/src/main/webapp/ldapi-00/BenchmarkTest00695.html index 8efb8017a0..b2bf68935f 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest00695.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest00695.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest00947.html b/src/main/webapp/ldapi-00/BenchmarkTest00947.html index 8c2755c6dc..4d5e5bf0cb 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest00947.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest00947.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00947" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest00948.html b/src/main/webapp/ldapi-00/BenchmarkTest00948.html index d25afb0939..db2972f939 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest00948.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest00948.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00948" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest00959.html b/src/main/webapp/ldapi-00/BenchmarkTest00959.html index 85fdb7ab09..0da3a4b8b7 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest00959.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest00959.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00959" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest01023.html b/src/main/webapp/ldapi-00/BenchmarkTest01023.html index 0c3bf30770..8c0e9662c9 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest01023.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest01023.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest01024.html b/src/main/webapp/ldapi-00/BenchmarkTest01024.html index 89824cd603..36dcc7e332 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest01024.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest01024.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest01154.html b/src/main/webapp/ldapi-00/BenchmarkTest01154.html index ea62f54f40..84c1d9aac0 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest01154.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest01154.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest01243.html b/src/main/webapp/ldapi-00/BenchmarkTest01243.html index cd1a2c5cd2..d35fab373b 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest01243.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest01243.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest01402.html b/src/main/webapp/ldapi-00/BenchmarkTest01402.html index 2e95e36c93..c3d74ea8c1 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest01402.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest01402.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01402 input[id=BenchmarkTest01402]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest01491.html b/src/main/webapp/ldapi-00/BenchmarkTest01491.html index eb2a635f24..075d080ef3 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest01491.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest01491.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest01492.html b/src/main/webapp/ldapi-00/BenchmarkTest01492.html index 3ced58e0b9..b507bca450 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest01492.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest01492.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest01501.html b/src/main/webapp/ldapi-00/BenchmarkTest01501.html index 7f81d9569e..43bc019fe0 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest01501.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest01501.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest01756.html b/src/main/webapp/ldapi-00/BenchmarkTest01756.html index ea5bf5f527..fbb80ffbc6 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest01756.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest01756.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest01831.html b/src/main/webapp/ldapi-00/BenchmarkTest01831.html index 5505f8f6be..55022c3e27 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest01831.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest01831.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01831" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest01832.html b/src/main/webapp/ldapi-00/BenchmarkTest01832.html index 52ea81f531..fccedfddce 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest01832.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest01832.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01832" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest01902.html b/src/main/webapp/ldapi-00/BenchmarkTest01902.html index a8a85a7d91..3f9f9724f2 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest01902.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest01902.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest01903.html b/src/main/webapp/ldapi-00/BenchmarkTest01903.html index 0ffbbfc2ce..e076056cf2 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest01903.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest01903.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest01909.html b/src/main/webapp/ldapi-00/BenchmarkTest01909.html index e4db5df934..116897a4c1 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest01909.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest01909.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest02025.html b/src/main/webapp/ldapi-00/BenchmarkTest02025.html index 3995418fca..24c476c591 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest02025.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest02025.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest02036.html b/src/main/webapp/ldapi-00/BenchmarkTest02036.html index 967b3f86cc..81a4c93c0d 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest02036.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest02036.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest02037.html b/src/main/webapp/ldapi-00/BenchmarkTest02037.html index de0691148a..5f2546ceaf 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest02037.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest02037.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest02104.html b/src/main/webapp/ldapi-00/BenchmarkTest02104.html index 938a4b047b..465f121ad5 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest02104.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest02104.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest02114.html b/src/main/webapp/ldapi-00/BenchmarkTest02114.html index 7a1260c557..bbc6403519 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest02114.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest02114.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest02208.html b/src/main/webapp/ldapi-00/BenchmarkTest02208.html index c0e4e1e280..b2aba25753 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest02208.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest02208.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest02299.html b/src/main/webapp/ldapi-00/BenchmarkTest02299.html index 077d0e73c1..07678db421 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest02299.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest02299.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02299 input[id=BenchmarkTest02299]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest02305.html b/src/main/webapp/ldapi-00/BenchmarkTest02305.html index 47c61926b8..29c8b47d8d 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest02305.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest02305.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02305 input[id=BenchmarkTest02305]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest02306.html b/src/main/webapp/ldapi-00/BenchmarkTest02306.html index b1f2cc667b..27635dd814 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest02306.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest02306.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02306 input[id=BenchmarkTest02306]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/ldapi-00/BenchmarkTest02472.html b/src/main/webapp/ldapi-00/BenchmarkTest02472.html index 440cd19482..b0d42f0c00 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest02472.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest02472.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest02553.html b/src/main/webapp/ldapi-00/BenchmarkTest02553.html index 354d8981f0..6463ccc127 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest02553.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest02553.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest02571.html b/src/main/webapp/ldapi-00/BenchmarkTest02571.html index 9039eafc55..5e2bfd624c 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest02571.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest02571.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/ldapi-00/BenchmarkTest02572.html b/src/main/webapp/ldapi-00/BenchmarkTest02572.html index b2d0974ed1..2ae919ff0a 100644 --- a/src/main/webapp/ldapi-00/BenchmarkTest02572.html +++ b/src/main/webapp/ldapi-00/BenchmarkTest02572.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00001.html b/src/main/webapp/pathtraver-00/BenchmarkTest00001.html index a8a34c9f13..6b7a219c19 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00001.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00001.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00001" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00002.html b/src/main/webapp/pathtraver-00/BenchmarkTest00002.html index 709d8d546a..9948a69a84 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00002.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00002.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00002" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00011.html b/src/main/webapp/pathtraver-00/BenchmarkTest00011.html index 03b6fcd7d2..6498dc479d 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00011.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00011.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00060.html b/src/main/webapp/pathtraver-00/BenchmarkTest00060.html index 1a8eb6b6ec..5de92b1fd5 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00060.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00060.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00060" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00061.html b/src/main/webapp/pathtraver-00/BenchmarkTest00061.html index e877454374..e8066bede6 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00061.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00061.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00061" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00062.html b/src/main/webapp/pathtraver-00/BenchmarkTest00062.html index ca4b483b46..98558948de 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00062.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00062.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00062" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00063.html b/src/main/webapp/pathtraver-00/BenchmarkTest00063.html index f82b779d1f..d3e0e2d006 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00063.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00063.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00063" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00064.html b/src/main/webapp/pathtraver-00/BenchmarkTest00064.html index 75c4db4bd1..c1c0c6c54e 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00064.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00064.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00064" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00065.html b/src/main/webapp/pathtraver-00/BenchmarkTest00065.html index 09432164c8..b26d8802eb 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00065.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00065.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00065" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00131.html b/src/main/webapp/pathtraver-00/BenchmarkTest00131.html index ced467d883..6bc0be69bf 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00131.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00131.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00132.html b/src/main/webapp/pathtraver-00/BenchmarkTest00132.html index ab9ae917d7..7b933db249 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00132.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00132.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00133.html b/src/main/webapp/pathtraver-00/BenchmarkTest00133.html index dbcc7c1e5b..444e48cb00 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00133.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00133.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00134.html b/src/main/webapp/pathtraver-00/BenchmarkTest00134.html index b7a1986145..3f6a239235 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00134.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00134.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00135.html b/src/main/webapp/pathtraver-00/BenchmarkTest00135.html index 84c2739767..884ae1852a 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00135.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00135.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00136.html b/src/main/webapp/pathtraver-00/BenchmarkTest00136.html index e99893c1c7..96c424e55e 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00136.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00136.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00137.html b/src/main/webapp/pathtraver-00/BenchmarkTest00137.html index 9cc5ce3d4f..2f7904041f 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00137.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00137.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00215.html b/src/main/webapp/pathtraver-00/BenchmarkTest00215.html index 8b74e439a3..c53bc5e7c5 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00215.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00215.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00215.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00216.html b/src/main/webapp/pathtraver-00/BenchmarkTest00216.html index f7fd09df80..b1a0a1b01b 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00216.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00216.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00216.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00217.html b/src/main/webapp/pathtraver-00/BenchmarkTest00217.html index d10f88a865..33e04393d5 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00217.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00217.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00217.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00218.html b/src/main/webapp/pathtraver-00/BenchmarkTest00218.html index 2b70552513..497c5953da 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00218.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00218.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00218.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00219.html b/src/main/webapp/pathtraver-00/BenchmarkTest00219.html index e3966f26c5..888f2b231e 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00219.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00219.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00219.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00220.html b/src/main/webapp/pathtraver-00/BenchmarkTest00220.html index 8032b7b067..1332484fb2 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00220.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00220.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00220.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00221.html b/src/main/webapp/pathtraver-00/BenchmarkTest00221.html index 38f157995f..e9d39c7831 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00221.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00221.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00221.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00222.html b/src/main/webapp/pathtraver-00/BenchmarkTest00222.html index b7ebf5d648..feecabab5b 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00222.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00222.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00222.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00261.html b/src/main/webapp/pathtraver-00/BenchmarkTest00261.html index 8392a63ae8..95fdfce627 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00261.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00261.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00262.html b/src/main/webapp/pathtraver-00/BenchmarkTest00262.html index e8b0be11a1..93ccc43bf8 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00262.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00262.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00263.html b/src/main/webapp/pathtraver-00/BenchmarkTest00263.html index 7f30b889a3..7c0f451cba 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00263.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00263.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00264.html b/src/main/webapp/pathtraver-00/BenchmarkTest00264.html index b701c736db..6c3ba8b2c3 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00264.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00264.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00265.html b/src/main/webapp/pathtraver-00/BenchmarkTest00265.html index ad1389c0b9..9d18dbdf50 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00265.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00265.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00362.html b/src/main/webapp/pathtraver-00/BenchmarkTest00362.html index 6384cc2ffc..809c1aca9f 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00362.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00362.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00363.html b/src/main/webapp/pathtraver-00/BenchmarkTest00363.html index 7f95208d74..3714ada2c2 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00363.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00363.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00452.html b/src/main/webapp/pathtraver-00/BenchmarkTest00452.html index 8c6bf7c3d5..3b995e1d55 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00452.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00452.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00453.html b/src/main/webapp/pathtraver-00/BenchmarkTest00453.html index 1815dba837..9689ed5bc8 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00453.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00453.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00457.html b/src/main/webapp/pathtraver-00/BenchmarkTest00457.html index fa4a48ba03..9e1cbfb89b 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00457.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00457.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00458.html b/src/main/webapp/pathtraver-00/BenchmarkTest00458.html index f781ab42b5..20bc258951 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00458.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00458.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00525.html b/src/main/webapp/pathtraver-00/BenchmarkTest00525.html index 7af779d94e..f7454a83c3 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00525.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00525.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00525 input[id=BenchmarkTest00525]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00526.html b/src/main/webapp/pathtraver-00/BenchmarkTest00526.html index a8da824d8f..b54c7428b4 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00526.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00526.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00526 input[id=BenchmarkTest00526]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00527.html b/src/main/webapp/pathtraver-00/BenchmarkTest00527.html index b566137fec..44099b3b48 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00527.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00527.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00527 input[id=BenchmarkTest00527]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00528.html b/src/main/webapp/pathtraver-00/BenchmarkTest00528.html index f5e8a8894b..b7dd28b724 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00528.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00528.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00528 input[id=BenchmarkTest00528]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00529.html b/src/main/webapp/pathtraver-00/BenchmarkTest00529.html index bc0cbe3bb0..0d47243454 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00529.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00529.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00529 input[id=BenchmarkTest00529]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00619.html b/src/main/webapp/pathtraver-00/BenchmarkTest00619.html index de44f29d96..12db11aa8b 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00619.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00619.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00620.html b/src/main/webapp/pathtraver-00/BenchmarkTest00620.html index e96bb389f9..411385273b 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00620.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00620.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00624.html b/src/main/webapp/pathtraver-00/BenchmarkTest00624.html index 573355f4be..9497a1287a 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00624.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00624.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00625.html b/src/main/webapp/pathtraver-00/BenchmarkTest00625.html index 62a251b792..9ee41165c5 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00625.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00625.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00629.html b/src/main/webapp/pathtraver-00/BenchmarkTest00629.html index 9dee553b3f..21a9f9df55 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00629.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00629.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00699.html b/src/main/webapp/pathtraver-00/BenchmarkTest00699.html index 437b9c6fd1..29d8658834 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00699.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00699.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00700.html b/src/main/webapp/pathtraver-00/BenchmarkTest00700.html index 139168f134..8a7e107b3b 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00700.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00700.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00783.html b/src/main/webapp/pathtraver-00/BenchmarkTest00783.html index 2c252f4edf..b573aa06ec 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00783.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00783.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00784.html b/src/main/webapp/pathtraver-00/BenchmarkTest00784.html index 92e2cc85e7..813790ded3 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00784.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00784.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00785.html b/src/main/webapp/pathtraver-00/BenchmarkTest00785.html index 35da6e534e..ab06f9f78f 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00785.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00785.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00786.html b/src/main/webapp/pathtraver-00/BenchmarkTest00786.html index be9e59fc54..d2992fa266 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00786.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00786.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00787.html b/src/main/webapp/pathtraver-00/BenchmarkTest00787.html index 9246a6837b..0d5dee9fa0 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00787.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00787.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00788.html b/src/main/webapp/pathtraver-00/BenchmarkTest00788.html index 5a190d87cb..4d0f9d62e9 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00788.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00788.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00862.html b/src/main/webapp/pathtraver-00/BenchmarkTest00862.html index 42ad652ea4..5422f176a8 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00862.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00862.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-00/BenchmarkTest00863.html b/src/main/webapp/pathtraver-00/BenchmarkTest00863.html index ff0a81a360..53e7f66a8e 100644 --- a/src/main/webapp/pathtraver-00/BenchmarkTest00863.html +++ b/src/main/webapp/pathtraver-00/BenchmarkTest00863.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest00867.html b/src/main/webapp/pathtraver-01/BenchmarkTest00867.html index 13e25a1e20..4e2a371211 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest00867.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest00867.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest00949.html b/src/main/webapp/pathtraver-01/BenchmarkTest00949.html index 557dac37b8..1f4f039966 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest00949.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest00949.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00949" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest00950.html b/src/main/webapp/pathtraver-01/BenchmarkTest00950.html index e8ab50ed1f..2c5a7cdc35 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest00950.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest00950.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00950" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest00951.html b/src/main/webapp/pathtraver-01/BenchmarkTest00951.html index 8acb5a2b85..6a6d8d49e7 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest00951.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest00951.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00951" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest00952.html b/src/main/webapp/pathtraver-01/BenchmarkTest00952.html index bf13f415ee..522deac240 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest00952.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest00952.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00952" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest00953.html b/src/main/webapp/pathtraver-01/BenchmarkTest00953.html index ecffb4815a..bd3f0e9b00 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest00953.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest00953.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00953" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest00954.html b/src/main/webapp/pathtraver-01/BenchmarkTest00954.html index f0ec4d4ac0..983bc1f5ce 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest00954.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest00954.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00954" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest00955.html b/src/main/webapp/pathtraver-01/BenchmarkTest00955.html index cb79c35792..14b420c51f 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest00955.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest00955.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00955" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest00956.html b/src/main/webapp/pathtraver-01/BenchmarkTest00956.html index d9a97c3b72..7cd86cb264 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest00956.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest00956.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00956" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest00957.html b/src/main/webapp/pathtraver-01/BenchmarkTest00957.html index 4efaedb64f..cc8df34733 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest00957.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest00957.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00957" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest00958.html b/src/main/webapp/pathtraver-01/BenchmarkTest00958.html index 11c29cac9b..fa3aa61096 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest00958.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest00958.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00958" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01025.html b/src/main/webapp/pathtraver-01/BenchmarkTest01025.html index 6f575890da..191e7450d4 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01025.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01025.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01026.html b/src/main/webapp/pathtraver-01/BenchmarkTest01026.html index 99969de7f5..ca66b76825 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01026.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01026.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01027.html b/src/main/webapp/pathtraver-01/BenchmarkTest01027.html index 33ead0a4fb..2dcd0bbbe9 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01027.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01027.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01028.html b/src/main/webapp/pathtraver-01/BenchmarkTest01028.html index 8f5f8c8a1b..678720e035 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01028.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01028.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01029.html b/src/main/webapp/pathtraver-01/BenchmarkTest01029.html index 3e2fd50a73..4baaad6c72 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01029.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01029.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01030.html b/src/main/webapp/pathtraver-01/BenchmarkTest01030.html index 4f223588af..8755ac6c9d 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01030.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01030.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01031.html b/src/main/webapp/pathtraver-01/BenchmarkTest01031.html index b859c85a45..a69d6469a2 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01031.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01031.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01032.html b/src/main/webapp/pathtraver-01/BenchmarkTest01032.html index 40ab4c00bf..e0d21341f5 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01032.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01032.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01033.html b/src/main/webapp/pathtraver-01/BenchmarkTest01033.html index 60b3422abe..1f6c6f9c39 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01033.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01033.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01034.html b/src/main/webapp/pathtraver-01/BenchmarkTest01034.html index 7d5d145b8b..129832916c 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01034.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01034.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01035.html b/src/main/webapp/pathtraver-01/BenchmarkTest01035.html index 4bb56aa782..370220af79 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01035.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01035.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01036.html b/src/main/webapp/pathtraver-01/BenchmarkTest01036.html index 4322f8742d..aafa47554b 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01036.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01036.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01109.html b/src/main/webapp/pathtraver-01/BenchmarkTest01109.html index 185998c546..c15567cd6e 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01109.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01109.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01109.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01110.html b/src/main/webapp/pathtraver-01/BenchmarkTest01110.html index dd44da2949..69c7eb21f7 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01110.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01110.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01110.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01111.html b/src/main/webapp/pathtraver-01/BenchmarkTest01111.html index 4e02bf1e62..f98fd72ce8 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01111.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01111.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01111.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01112.html b/src/main/webapp/pathtraver-01/BenchmarkTest01112.html index 8bbc709778..99ab3a5c96 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01112.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01112.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01112.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01113.html b/src/main/webapp/pathtraver-01/BenchmarkTest01113.html index a2f2f937d8..ab99bebc52 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01113.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01113.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01113.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01114.html b/src/main/webapp/pathtraver-01/BenchmarkTest01114.html index 6658980569..939de27795 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01114.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01114.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01114.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01115.html b/src/main/webapp/pathtraver-01/BenchmarkTest01115.html index b0ed8d44db..b0379dbfbe 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01115.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01115.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01115.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01116.html b/src/main/webapp/pathtraver-01/BenchmarkTest01116.html index 17c8de8a4e..84f4872fef 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01116.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01116.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01116.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01117.html b/src/main/webapp/pathtraver-01/BenchmarkTest01117.html index d040eccde1..1551ea090f 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01117.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01117.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01117.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01118.html b/src/main/webapp/pathtraver-01/BenchmarkTest01118.html index 87361a2df7..64d93171d3 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01118.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01118.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01118.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01155.html b/src/main/webapp/pathtraver-01/BenchmarkTest01155.html index 2dc204188a..d5ec1d3721 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01155.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01155.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01156.html b/src/main/webapp/pathtraver-01/BenchmarkTest01156.html index 52468c03fc..ee120b5720 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01156.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01156.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01157.html b/src/main/webapp/pathtraver-01/BenchmarkTest01157.html index cd0caf68e9..b41e7c2977 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01157.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01157.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01158.html b/src/main/webapp/pathtraver-01/BenchmarkTest01158.html index dc3d63c860..af6108cb84 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01158.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01158.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01159.html b/src/main/webapp/pathtraver-01/BenchmarkTest01159.html index 8166988c43..9e88109f9e 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01159.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01159.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01160.html b/src/main/webapp/pathtraver-01/BenchmarkTest01160.html index d49e27c207..d09dd76bad 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01160.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01160.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01161.html b/src/main/webapp/pathtraver-01/BenchmarkTest01161.html index 8bf9dd72e8..3b7fcd0547 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01161.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01161.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01233.html b/src/main/webapp/pathtraver-01/BenchmarkTest01233.html index c766124e21..18afac4798 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01233.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01233.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01234.html b/src/main/webapp/pathtraver-01/BenchmarkTest01234.html index b4f4eb435d..8b1cdbb241 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01234.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01234.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01238.html b/src/main/webapp/pathtraver-01/BenchmarkTest01238.html index 0741efb12c..c844ddd9c1 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01238.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01238.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01239.html b/src/main/webapp/pathtraver-01/BenchmarkTest01239.html index bbe7475bc2..5573ee5799 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01239.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01239.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01328.html b/src/main/webapp/pathtraver-01/BenchmarkTest01328.html index ca83ab02ab..4cb73f2f38 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01328.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01328.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01329.html b/src/main/webapp/pathtraver-01/BenchmarkTest01329.html index 9f312904cc..ce13b5ea64 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01329.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01329.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01403.html b/src/main/webapp/pathtraver-01/BenchmarkTest01403.html index 537a7e7b62..8baf1c5dc8 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01403.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01403.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01403 input[id=BenchmarkTest01403]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01404.html b/src/main/webapp/pathtraver-01/BenchmarkTest01404.html index 6b11cb1227..654cd8cb01 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01404.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01404.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01404 input[id=BenchmarkTest01404]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01405.html b/src/main/webapp/pathtraver-01/BenchmarkTest01405.html index d52bb3e6ce..dfc99b27c3 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01405.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01405.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01405 input[id=BenchmarkTest01405]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01406.html b/src/main/webapp/pathtraver-01/BenchmarkTest01406.html index ed74c27b99..aba84760fb 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01406.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01406.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01406 input[id=BenchmarkTest01406]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01407.html b/src/main/webapp/pathtraver-01/BenchmarkTest01407.html index 0e883949ab..f891d02dc3 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01407.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01407.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01407 input[id=BenchmarkTest01407]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01408.html b/src/main/webapp/pathtraver-01/BenchmarkTest01408.html index e59039fa68..2c3b0dff1c 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01408.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01408.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01408 input[id=BenchmarkTest01408]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01409.html b/src/main/webapp/pathtraver-01/BenchmarkTest01409.html index 406c0a5f55..7099a206b7 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01409.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01409.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01409 input[id=BenchmarkTest01409]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01496.html b/src/main/webapp/pathtraver-01/BenchmarkTest01496.html index 48e80df3e1..2bca1174ac 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01496.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01496.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01497.html b/src/main/webapp/pathtraver-01/BenchmarkTest01497.html index 00c39fd144..d370f52428 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01497.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01497.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01571.html b/src/main/webapp/pathtraver-01/BenchmarkTest01571.html index 5cc1564a7b..d42996adf1 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01571.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01571.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01572.html b/src/main/webapp/pathtraver-01/BenchmarkTest01572.html index 55c8bf6e25..a6f2535972 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01572.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01572.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01642.html b/src/main/webapp/pathtraver-01/BenchmarkTest01642.html index 870d8d5934..eee4d868a6 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01642.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01642.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01643.html b/src/main/webapp/pathtraver-01/BenchmarkTest01643.html index 536d93ef4c..4b2a4fe3a5 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01643.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01643.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01644.html b/src/main/webapp/pathtraver-01/BenchmarkTest01644.html index cc4bbdd77c..479012561a 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01644.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01644.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01645.html b/src/main/webapp/pathtraver-01/BenchmarkTest01645.html index 7bac2f5d85..f1182e7a64 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01645.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01645.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-01/BenchmarkTest01646.html b/src/main/webapp/pathtraver-01/BenchmarkTest01646.html index dfff6d22f0..aec71009ec 100644 --- a/src/main/webapp/pathtraver-01/BenchmarkTest01646.html +++ b/src/main/webapp/pathtraver-01/BenchmarkTest01646.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01647.html b/src/main/webapp/pathtraver-02/BenchmarkTest01647.html index 9f27b3dc93..a8d85a8310 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01647.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01647.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01746.html b/src/main/webapp/pathtraver-02/BenchmarkTest01746.html index 837fa1c4f1..521089ae70 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01746.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01746.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01747.html b/src/main/webapp/pathtraver-02/BenchmarkTest01747.html index 6762341684..87c420fbef 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01747.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01747.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01751.html b/src/main/webapp/pathtraver-02/BenchmarkTest01751.html index 20400d47c1..52ace1682f 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01751.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01751.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01752.html b/src/main/webapp/pathtraver-02/BenchmarkTest01752.html index fb62e5cdd9..a75fd45a4c 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01752.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01752.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01833.html b/src/main/webapp/pathtraver-02/BenchmarkTest01833.html index d3b0501d81..45d313ad64 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01833.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01833.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01833" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01834.html b/src/main/webapp/pathtraver-02/BenchmarkTest01834.html index ea72168c81..3ad22226df 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01834.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01834.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01834" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01835.html b/src/main/webapp/pathtraver-02/BenchmarkTest01835.html index 48c602cb0f..8e7977924e 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01835.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01835.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01835" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01836.html b/src/main/webapp/pathtraver-02/BenchmarkTest01836.html index 4f9cec3621..d19b61fa43 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01836.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01836.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01836" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01837.html b/src/main/webapp/pathtraver-02/BenchmarkTest01837.html index 1854ff051b..17224949a4 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01837.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01837.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01837" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01838.html b/src/main/webapp/pathtraver-02/BenchmarkTest01838.html index 9af1781f0e..a4314467e1 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01838.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01838.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01838" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01839.html b/src/main/webapp/pathtraver-02/BenchmarkTest01839.html index 08c4c99546..564a5c37da 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01839.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01839.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01839" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01840.html b/src/main/webapp/pathtraver-02/BenchmarkTest01840.html index 1f56512bdd..0f8465f50b 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01840.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01840.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01840" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01841.html b/src/main/webapp/pathtraver-02/BenchmarkTest01841.html index 7a1203e8df..d7d119b51d 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01841.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01841.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01841" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01904.html b/src/main/webapp/pathtraver-02/BenchmarkTest01904.html index 942ad6a4ca..c72de57ae0 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01904.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01904.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01905.html b/src/main/webapp/pathtraver-02/BenchmarkTest01905.html index 28a85fc660..efa074be00 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01905.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01905.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01906.html b/src/main/webapp/pathtraver-02/BenchmarkTest01906.html index 692c17b8d6..45356f42c5 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01906.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01906.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01907.html b/src/main/webapp/pathtraver-02/BenchmarkTest01907.html index 2a1bd990cc..b2eefb11d3 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01907.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01907.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01908.html b/src/main/webapp/pathtraver-02/BenchmarkTest01908.html index deae2cc6f7..1c82990fa8 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01908.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01908.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01983.html b/src/main/webapp/pathtraver-02/BenchmarkTest01983.html index 603d5302e0..e9e45ea73b 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01983.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01983.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01983.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01984.html b/src/main/webapp/pathtraver-02/BenchmarkTest01984.html index 4b33341194..2c984b92c5 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01984.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01984.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01984.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01985.html b/src/main/webapp/pathtraver-02/BenchmarkTest01985.html index 655d0d3a4e..f73d60e2c6 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01985.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01985.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01985.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01986.html b/src/main/webapp/pathtraver-02/BenchmarkTest01986.html index f8b62a56fa..7527a6a098 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01986.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01986.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01986.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01987.html b/src/main/webapp/pathtraver-02/BenchmarkTest01987.html index e01ff3bacb..50dc37c273 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01987.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01987.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01987.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01988.html b/src/main/webapp/pathtraver-02/BenchmarkTest01988.html index f34f5d7822..4e6fbb500b 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01988.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01988.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01988.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01989.html b/src/main/webapp/pathtraver-02/BenchmarkTest01989.html index 58840f76f5..05ce9d535f 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01989.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01989.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01989.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01990.html b/src/main/webapp/pathtraver-02/BenchmarkTest01990.html index da763e2b46..9a32449050 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01990.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01990.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01990.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest01991.html b/src/main/webapp/pathtraver-02/BenchmarkTest01991.html index b9861fac52..ce3021702a 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest01991.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest01991.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01991.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02026.html b/src/main/webapp/pathtraver-02/BenchmarkTest02026.html index 5911ded044..0776e25de0 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02026.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02026.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02027.html b/src/main/webapp/pathtraver-02/BenchmarkTest02027.html index efbfd72142..d6780d1223 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02027.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02027.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02028.html b/src/main/webapp/pathtraver-02/BenchmarkTest02028.html index 3469f03652..5d6275faa4 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02028.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02028.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02029.html b/src/main/webapp/pathtraver-02/BenchmarkTest02029.html index cfa23e9857..e05af6618f 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02029.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02029.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02030.html b/src/main/webapp/pathtraver-02/BenchmarkTest02030.html index 10d9afdbc2..94fba18d95 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02030.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02030.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02031.html b/src/main/webapp/pathtraver-02/BenchmarkTest02031.html index 757740535c..d6da84d76b 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02031.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02031.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02032.html b/src/main/webapp/pathtraver-02/BenchmarkTest02032.html index 612c6116a1..a5971994c0 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02032.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02032.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02033.html b/src/main/webapp/pathtraver-02/BenchmarkTest02033.html index 87231103fc..684484d953 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02033.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02033.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02034.html b/src/main/webapp/pathtraver-02/BenchmarkTest02034.html index b6e6752b6e..922eba4372 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02034.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02034.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02035.html b/src/main/webapp/pathtraver-02/BenchmarkTest02035.html index dcd8aa01de..d5b2e00283 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02035.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02035.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02108.html b/src/main/webapp/pathtraver-02/BenchmarkTest02108.html index cb1589b044..74b6acb5cd 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02108.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02108.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02109.html b/src/main/webapp/pathtraver-02/BenchmarkTest02109.html index 3ada69fc25..05671f728f 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02109.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02109.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02113.html b/src/main/webapp/pathtraver-02/BenchmarkTest02113.html index 8f2738fcb6..07d358027b 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02113.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02113.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02198.html b/src/main/webapp/pathtraver-02/BenchmarkTest02198.html index 70e4f6e273..69327a93c8 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02198.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02198.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02199.html b/src/main/webapp/pathtraver-02/BenchmarkTest02199.html index 5ec39a63bf..3d2ca407e0 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02199.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02199.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02203.html b/src/main/webapp/pathtraver-02/BenchmarkTest02203.html index 13d0a59206..cd18ee18f4 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02203.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02203.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02204.html b/src/main/webapp/pathtraver-02/BenchmarkTest02204.html index 97c2c28648..7a99fed1de 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02204.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02204.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02300.html b/src/main/webapp/pathtraver-02/BenchmarkTest02300.html index 46fde29fb3..b1ebe4932e 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02300.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02300.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02300 input[id=BenchmarkTest02300]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02301.html b/src/main/webapp/pathtraver-02/BenchmarkTest02301.html index 213e011266..5d3267feb2 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02301.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02301.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02301 input[id=BenchmarkTest02301]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02302.html b/src/main/webapp/pathtraver-02/BenchmarkTest02302.html index 229b4cc6ba..e646675ffd 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02302.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02302.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02302 input[id=BenchmarkTest02302]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02303.html b/src/main/webapp/pathtraver-02/BenchmarkTest02303.html index 6319f196d3..1dbfb77d91 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02303.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02303.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02303 input[id=BenchmarkTest02303]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02304.html b/src/main/webapp/pathtraver-02/BenchmarkTest02304.html index c4952c0827..5afb9f2f34 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02304.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02304.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02304 input[id=BenchmarkTest02304]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02377.html b/src/main/webapp/pathtraver-02/BenchmarkTest02377.html index e3d07ed397..a283ad58fd 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02377.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02377.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02378.html b/src/main/webapp/pathtraver-02/BenchmarkTest02378.html index 6b4c817316..144a0bedcc 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02378.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02378.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02382.html b/src/main/webapp/pathtraver-02/BenchmarkTest02382.html index b6db2fe8e8..49e00aeb42 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02382.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02382.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02383.html b/src/main/webapp/pathtraver-02/BenchmarkTest02383.html index b2fbc93832..3db7810d8f 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02383.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02383.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02462.html b/src/main/webapp/pathtraver-02/BenchmarkTest02462.html index 72646ccc27..d0b4c795ba 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02462.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02462.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-02/BenchmarkTest02463.html b/src/main/webapp/pathtraver-02/BenchmarkTest02463.html index 4b079d4e0e..744f9c7a10 100644 --- a/src/main/webapp/pathtraver-02/BenchmarkTest02463.html +++ b/src/main/webapp/pathtraver-02/BenchmarkTest02463.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02467.html b/src/main/webapp/pathtraver-03/BenchmarkTest02467.html index e3168f1cce..822715c99c 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02467.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02467.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02468.html b/src/main/webapp/pathtraver-03/BenchmarkTest02468.html index e7df862a0b..46c9755573 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02468.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02468.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02554.html b/src/main/webapp/pathtraver-03/BenchmarkTest02554.html index fe6718b048..065954301a 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02554.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02554.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02555.html b/src/main/webapp/pathtraver-03/BenchmarkTest02555.html index bff0157a9a..19c168bed7 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02555.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02555.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02556.html b/src/main/webapp/pathtraver-03/BenchmarkTest02556.html index 92d7893e17..0c92346a4b 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02556.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02556.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02557.html b/src/main/webapp/pathtraver-03/BenchmarkTest02557.html index a673cd2ff4..1fe10f79f6 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02557.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02557.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02558.html b/src/main/webapp/pathtraver-03/BenchmarkTest02558.html index 823504c307..6880d60ea2 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02558.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02558.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02559.html b/src/main/webapp/pathtraver-03/BenchmarkTest02559.html index 60d8cc9736..fffc2f9e2a 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02559.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02559.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02560.html b/src/main/webapp/pathtraver-03/BenchmarkTest02560.html index 229021217d..089a8241d3 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02560.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02560.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02561.html b/src/main/webapp/pathtraver-03/BenchmarkTest02561.html index 7f91e651fb..895d9bbf1f 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02561.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02561.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02562.html b/src/main/webapp/pathtraver-03/BenchmarkTest02562.html index 77e0caf964..af18a588f6 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02562.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02562.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02563.html b/src/main/webapp/pathtraver-03/BenchmarkTest02563.html index edd107ffd1..2f17d5ebaf 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02563.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02563.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02564.html b/src/main/webapp/pathtraver-03/BenchmarkTest02564.html index 8fe614236c..225ebdb015 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02564.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02564.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02565.html b/src/main/webapp/pathtraver-03/BenchmarkTest02565.html index 7212fecdca..339af44c7a 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02565.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02565.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02566.html b/src/main/webapp/pathtraver-03/BenchmarkTest02566.html index b4c91391e0..1a67c717fd 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02566.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02566.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02567.html b/src/main/webapp/pathtraver-03/BenchmarkTest02567.html index b9bd2b9b41..1209ce8b61 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02567.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02567.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02568.html b/src/main/webapp/pathtraver-03/BenchmarkTest02568.html index 295c769b65..8f448aac2b 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02568.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02568.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02569.html b/src/main/webapp/pathtraver-03/BenchmarkTest02569.html index 21f8eaa6b8..b99bf537fe 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02569.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02569.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02570.html b/src/main/webapp/pathtraver-03/BenchmarkTest02570.html index 10547fbd08..91c41b4f94 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02570.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02570.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02667.html b/src/main/webapp/pathtraver-03/BenchmarkTest02667.html index ddce2e5b22..c37509faa0 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02667.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02667.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/pathtraver-03/BenchmarkTest02668.html b/src/main/webapp/pathtraver-03/BenchmarkTest02668.html index 30c59b2c9a..b9da21bc78 100644 --- a/src/main/webapp/pathtraver-03/BenchmarkTest02668.html +++ b/src/main/webapp/pathtraver-03/BenchmarkTest02668.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00016.html b/src/main/webapp/securecookie-00/BenchmarkTest00016.html index eda2eb7330..acc246240a 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00016.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00016.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00087.html b/src/main/webapp/securecookie-00/BenchmarkTest00087.html index fb0016248f..3dd7e3ce9a 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00087.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00087.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00087" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00088.html b/src/main/webapp/securecookie-00/BenchmarkTest00088.html index 02e44a441e..0fde915d1d 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00088.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00088.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00088" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00089.html b/src/main/webapp/securecookie-00/BenchmarkTest00089.html index ad71c3cf41..e5df4c4ffc 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00089.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00089.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00089" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00169.html b/src/main/webapp/securecookie-00/BenchmarkTest00169.html index 8ddb53e3cd..4ca53b4df9 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00169.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00169.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00170.html b/src/main/webapp/securecookie-00/BenchmarkTest00170.html index 86a801231f..5bf81452b2 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00170.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00170.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00241.html b/src/main/webapp/securecookie-00/BenchmarkTest00241.html index 063c6fc661..a3b32bda95 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00241.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00241.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00241.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00242.html b/src/main/webapp/securecookie-00/BenchmarkTest00242.html index f1a29e72c3..8edc3ba84b 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00242.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00242.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00242.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00300.html b/src/main/webapp/securecookie-00/BenchmarkTest00300.html index d6689a8ae9..2ddae53a9a 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00300.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00300.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00348.html b/src/main/webapp/securecookie-00/BenchmarkTest00348.html index 338dddadd2..f34c758109 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00348.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00348.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00403.html b/src/main/webapp/securecookie-00/BenchmarkTest00403.html index ef99c1259a..daaea3b279 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00403.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00403.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00565.html b/src/main/webapp/securecookie-00/BenchmarkTest00565.html index eec49638a1..78c8474793 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00565.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00565.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00565 input[id=BenchmarkTest00565]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00566.html b/src/main/webapp/securecookie-00/BenchmarkTest00566.html index f2a8197efe..b8560faa89 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00566.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00566.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00566 input[id=BenchmarkTest00566]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00655.html b/src/main/webapp/securecookie-00/BenchmarkTest00655.html index 42e3679762..133349fa55 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00655.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00655.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00820.html b/src/main/webapp/securecookie-00/BenchmarkTest00820.html index 9e9cfffad6..f0c5b12ba7 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00820.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00820.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00821.html b/src/main/webapp/securecookie-00/BenchmarkTest00821.html index 6bbef0ee03..2c9c4160d2 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00821.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00821.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00903.html b/src/main/webapp/securecookie-00/BenchmarkTest00903.html index 0e58cffe78..3d9770444f 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00903.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00903.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest00977.html b/src/main/webapp/securecookie-00/BenchmarkTest00977.html index ab141f78e8..df3b56b6f1 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest00977.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest00977.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00977" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01061.html b/src/main/webapp/securecookie-00/BenchmarkTest01061.html index 67c971b3ab..b8e179e978 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01061.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01061.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01062.html b/src/main/webapp/securecookie-00/BenchmarkTest01062.html index 89fbab5804..2d5894195a 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01062.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01062.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01134.html b/src/main/webapp/securecookie-00/BenchmarkTest01134.html index 865e064883..f4e5346283 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01134.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01134.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01134.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01185.html b/src/main/webapp/securecookie-00/BenchmarkTest01185.html index 3214049eb7..ac3635843d 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01185.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01185.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01186.html b/src/main/webapp/securecookie-00/BenchmarkTest01186.html index 5a32708888..1fba18a288 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01186.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01186.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01187.html b/src/main/webapp/securecookie-00/BenchmarkTest01187.html index 9637a6d7e7..a2ce7bfbdc 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01187.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01187.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01283.html b/src/main/webapp/securecookie-00/BenchmarkTest01283.html index 25bb8ae673..bb7eccf8da 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01283.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01283.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01359.html b/src/main/webapp/securecookie-00/BenchmarkTest01359.html index cb689eda69..390ea901d3 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01359.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01359.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01436.html b/src/main/webapp/securecookie-00/BenchmarkTest01436.html index 0c22d0a410..d416ec379a 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01436.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01436.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01436 input[id=BenchmarkTest01436]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01521.html b/src/main/webapp/securecookie-00/BenchmarkTest01521.html index b9bddc886e..9e4819b00a 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01521.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01521.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01522.html b/src/main/webapp/securecookie-00/BenchmarkTest01522.html index 629509e077..1b34a377ca 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01522.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01522.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01682.html b/src/main/webapp/securecookie-00/BenchmarkTest01682.html index 374ca8927c..eff706855b 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01682.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01682.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01683.html b/src/main/webapp/securecookie-00/BenchmarkTest01683.html index ce78766336..5cde21f98c 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01683.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01683.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01684.html b/src/main/webapp/securecookie-00/BenchmarkTest01684.html index 2da1e146df..37f22296a8 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01684.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01684.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01861.html b/src/main/webapp/securecookie-00/BenchmarkTest01861.html index d44a06f055..c94cc32b6c 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01861.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01861.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01861" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01862.html b/src/main/webapp/securecookie-00/BenchmarkTest01862.html index 5022da4d7a..aa32bb6083 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01862.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01862.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01862" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01863.html b/src/main/webapp/securecookie-00/BenchmarkTest01863.html index 767da8a2c1..c9dd1d651e 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01863.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01863.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01863" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest01935.html b/src/main/webapp/securecookie-00/BenchmarkTest01935.html index 94f84e85ae..5f69a152ab 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest01935.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest01935.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest02005.html b/src/main/webapp/securecookie-00/BenchmarkTest02005.html index 08501d1c9c..d33ea1f535 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest02005.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest02005.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02005.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest02006.html b/src/main/webapp/securecookie-00/BenchmarkTest02006.html index 6d00fa7110..a52e86fcb6 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest02006.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest02006.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02006.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest02064.html b/src/main/webapp/securecookie-00/BenchmarkTest02064.html index c89c659562..e45487817e 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest02064.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest02064.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest02065.html b/src/main/webapp/securecookie-00/BenchmarkTest02065.html index 57186ad1c5..b7065fd2ca 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest02065.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest02065.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest02066.html b/src/main/webapp/securecookie-00/BenchmarkTest02066.html index 566413e3a3..6da07f9f4b 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest02066.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest02066.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest02143.html b/src/main/webapp/securecookie-00/BenchmarkTest02143.html index 8bcdc5b6b6..b2865b1bdd 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest02143.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest02143.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest02144.html b/src/main/webapp/securecookie-00/BenchmarkTest02144.html index ddf13fcd56..4bdffdcd17 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest02144.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest02144.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest02248.html b/src/main/webapp/securecookie-00/BenchmarkTest02248.html index fc71e05316..15ac381eb3 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest02248.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest02248.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest02339.html b/src/main/webapp/securecookie-00/BenchmarkTest02339.html index 5294325d77..4a7235c5f1 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest02339.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest02339.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02339 input[id=BenchmarkTest02339]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/securecookie-00/BenchmarkTest02427.html b/src/main/webapp/securecookie-00/BenchmarkTest02427.html index 6a7ddf0f3a..fb0f4cd181 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest02427.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest02427.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest02507.html b/src/main/webapp/securecookie-00/BenchmarkTest02507.html index 2825c9f02d..54ed7e9cea 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest02507.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest02507.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest02508.html b/src/main/webapp/securecookie-00/BenchmarkTest02508.html index c7fd4e4384..a351d30e7f 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest02508.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest02508.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/securecookie-00/BenchmarkTest02607.html b/src/main/webapp/securecookie-00/BenchmarkTest02607.html index d4bc7ad738..3339d0790c 100644 --- a/src/main/webapp/securecookie-00/BenchmarkTest02607.html +++ b/src/main/webapp/securecookie-00/BenchmarkTest02607.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00008.html b/src/main/webapp/sqli-00/BenchmarkTest00008.html index b133289e9a..4d27f09de8 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00008.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00008.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00018.html b/src/main/webapp/sqli-00/BenchmarkTest00018.html index 0e3bc5ab30..e955b658ef 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00018.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00018.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00026.html b/src/main/webapp/sqli-00/BenchmarkTest00026.html index 4d050bf067..7bcab2861c 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00026.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00026.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00027.html b/src/main/webapp/sqli-00/BenchmarkTest00027.html index 51141cf38c..196296811a 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00027.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00027.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00032.html b/src/main/webapp/sqli-00/BenchmarkTest00032.html index a6533500d6..f1fc7eab8e 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00032.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00032.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00037.html b/src/main/webapp/sqli-00/BenchmarkTest00037.html index 3ad981adce..79fe38b203 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00037.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00037.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00037 input[id=BenchmarkTest00037]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00038.html b/src/main/webapp/sqli-00/BenchmarkTest00038.html index 8040b51c3a..48ae68d1c6 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00038.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00038.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00038 input[id=BenchmarkTest00038]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00039.html b/src/main/webapp/sqli-00/BenchmarkTest00039.html index 64f0267d85..b0b2217d8d 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00039.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00039.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00039 input[id=BenchmarkTest00039]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00052.html b/src/main/webapp/sqli-00/BenchmarkTest00052.html index 4617915890..804c2f3f3f 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00052.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00052.html @@ -9,7 +9,7 @@

-
Reading. [BenchmarkTest00052, verifyUserPassword('foo','bar')]
+
Reading. [BenchmarkTest00052, verifyUserPassword('foo','bar')]
Movies. [BenchmarkTest00052, Movies]
Writing. [BenchmarkTest00052, Writing]
Singing. [BenchmarkTest00052, Singing]
diff --git a/src/main/webapp/sqli-00/BenchmarkTest00100.html b/src/main/webapp/sqli-00/BenchmarkTest00100.html index f169e3a26c..4617d6da3b 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00100.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00100.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00100" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00101.html b/src/main/webapp/sqli-00/BenchmarkTest00101.html index 1eb46b4cd0..150247cb03 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00101.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00101.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00101" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00102.html b/src/main/webapp/sqli-00/BenchmarkTest00102.html index a07dc2d527..9958c5379a 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00102.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00102.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00102" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00103.html b/src/main/webapp/sqli-00/BenchmarkTest00103.html index bc8b70a33c..c30540d325 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00103.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00103.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00103" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00104.html b/src/main/webapp/sqli-00/BenchmarkTest00104.html index 0343222221..bbc5921ac1 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00104.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00104.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00104" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00105.html b/src/main/webapp/sqli-00/BenchmarkTest00105.html index f5cb77eeb0..993d6afd71 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00105.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00105.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00105" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00106.html b/src/main/webapp/sqli-00/BenchmarkTest00106.html index 6f720394eb..a770080e93 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00106.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00106.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00106" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00107.html b/src/main/webapp/sqli-00/BenchmarkTest00107.html index adf37e9f22..8b445253c6 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00107.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00107.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00107" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00108.html b/src/main/webapp/sqli-00/BenchmarkTest00108.html index bbed75e2d8..1c28998f13 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00108.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00108.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00108" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00109.html b/src/main/webapp/sqli-00/BenchmarkTest00109.html index 84859303bc..74564d1116 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00109.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00109.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00109" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00110.html b/src/main/webapp/sqli-00/BenchmarkTest00110.html index 968b0d1a96..099eecd074 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00110.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00110.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00110" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00111.html b/src/main/webapp/sqli-00/BenchmarkTest00111.html index bef839fea5..a3ad7df302 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00111.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00111.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00111" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00112.html b/src/main/webapp/sqli-00/BenchmarkTest00112.html index 9287f4c199..4281486f53 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00112.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00112.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00112" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00113.html b/src/main/webapp/sqli-00/BenchmarkTest00113.html index 30504fd2bb..e22b3ba0da 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00113.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00113.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00113" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00114.html b/src/main/webapp/sqli-00/BenchmarkTest00114.html index 7997ef2ba9..005f71fba8 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00114.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00114.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00114" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00115.html b/src/main/webapp/sqli-00/BenchmarkTest00115.html index 1b7206e884..81d39f6a6e 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00115.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00115.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00115" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00190.html b/src/main/webapp/sqli-00/BenchmarkTest00190.html index 900b8b410f..faa89a68b5 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00190.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00190.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00191.html b/src/main/webapp/sqli-00/BenchmarkTest00191.html index 9de978a468..384d431505 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00191.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00191.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00192.html b/src/main/webapp/sqli-00/BenchmarkTest00192.html index d82b49a060..9d941f31d0 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00192.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00192.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00193.html b/src/main/webapp/sqli-00/BenchmarkTest00193.html index bbc23a307d..5e5bd2abef 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00193.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00193.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00194.html b/src/main/webapp/sqli-00/BenchmarkTest00194.html index 5ebee61d13..abacdf2eaf 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00194.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00194.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00195.html b/src/main/webapp/sqli-00/BenchmarkTest00195.html index 0bc366d9d5..ca8b7b588e 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00195.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00195.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00196.html b/src/main/webapp/sqli-00/BenchmarkTest00196.html index 032e03b873..13b649ea7e 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00196.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00196.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00197.html b/src/main/webapp/sqli-00/BenchmarkTest00197.html index 711d3435cf..5119fe66ea 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00197.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00197.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00198.html b/src/main/webapp/sqli-00/BenchmarkTest00198.html index ff02e4f764..390d3c81d6 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00198.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00198.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00199.html b/src/main/webapp/sqli-00/BenchmarkTest00199.html index 3c0395fe8a..20710100a3 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00199.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00199.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00200.html b/src/main/webapp/sqli-00/BenchmarkTest00200.html index f3749cf190..88acebe837 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00200.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00200.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00201.html b/src/main/webapp/sqli-00/BenchmarkTest00201.html index 3d54e0ada7..6f0a5df50a 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00201.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00201.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00202.html b/src/main/webapp/sqli-00/BenchmarkTest00202.html index a2ec8bbbff..fb0f751f71 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00202.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00202.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00203.html b/src/main/webapp/sqli-00/BenchmarkTest00203.html index 52c4a6b83b..e123058d50 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00203.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00203.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00204.html b/src/main/webapp/sqli-00/BenchmarkTest00204.html index 5cfb372fb9..a12841440f 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00204.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00204.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00205.html b/src/main/webapp/sqli-00/BenchmarkTest00205.html index b9123181a7..016da4ba76 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00205.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00205.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00206.html b/src/main/webapp/sqli-00/BenchmarkTest00206.html index d42894b239..f1c6e0aff3 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00206.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00206.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00328.html b/src/main/webapp/sqli-00/BenchmarkTest00328.html index d8f9a3f1e2..68ff8883ec 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00328.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00328.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00329.html b/src/main/webapp/sqli-00/BenchmarkTest00329.html index cab99b7b40..ac5e84164f 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00329.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00329.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00330.html b/src/main/webapp/sqli-00/BenchmarkTest00330.html index afe1c9acd1..eb4c0ff9bd 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00330.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00330.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00331.html b/src/main/webapp/sqli-00/BenchmarkTest00331.html index 77f5fb0023..8141ae682c 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00331.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00331.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00332.html b/src/main/webapp/sqli-00/BenchmarkTest00332.html index 820c64729e..375d9294f4 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00332.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00332.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00333.html b/src/main/webapp/sqli-00/BenchmarkTest00333.html index df4233db51..73e26a1ce7 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00333.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00333.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00334.html b/src/main/webapp/sqli-00/BenchmarkTest00334.html index 21edc1c7f2..a5755403f9 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00334.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00334.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00335.html b/src/main/webapp/sqli-00/BenchmarkTest00335.html index e1bc0e2dde..7196b413c9 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00335.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00335.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00336.html b/src/main/webapp/sqli-00/BenchmarkTest00336.html index 1357c3b587..4bca5ae155 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00336.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00336.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00337.html b/src/main/webapp/sqli-00/BenchmarkTest00337.html index 6a00c9f864..0d29eb45ee 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00337.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00337.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00338.html b/src/main/webapp/sqli-00/BenchmarkTest00338.html index a19e446b4a..2713e6d3ac 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00338.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00338.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00339.html b/src/main/webapp/sqli-00/BenchmarkTest00339.html index 17dfe22ef2..567f6aebd1 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00339.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00339.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00340.html b/src/main/webapp/sqli-00/BenchmarkTest00340.html index 11fd5175fc..4dff44bca6 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00340.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00340.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00341.html b/src/main/webapp/sqli-00/BenchmarkTest00341.html index c52b8c698c..8ac388e257 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00341.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00341.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00342.html b/src/main/webapp/sqli-00/BenchmarkTest00342.html index 36ddd3c577..36180a7c25 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00342.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00342.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00343.html b/src/main/webapp/sqli-00/BenchmarkTest00343.html index 44e641507d..89efd8fd30 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00343.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00343.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00344.html b/src/main/webapp/sqli-00/BenchmarkTest00344.html index 8cd56270ed..7aaba37d2b 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00344.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00344.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-00/BenchmarkTest00428.html b/src/main/webapp/sqli-00/BenchmarkTest00428.html index beab10f6fc..c07df8ec01 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00428.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00428.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00432.html b/src/main/webapp/sqli-00/BenchmarkTest00432.html index 0a100822c3..f4540cf58a 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00432.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00432.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00433.html b/src/main/webapp/sqli-00/BenchmarkTest00433.html index ed35c7b5dd..ac01966bb3 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00433.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00433.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00437.html b/src/main/webapp/sqli-00/BenchmarkTest00437.html index 147389f8a7..61e43997c4 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00437.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00437.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00438.html b/src/main/webapp/sqli-00/BenchmarkTest00438.html index 7d4aca6017..8acc2aeaee 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00438.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00438.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-00/BenchmarkTest00509.html b/src/main/webapp/sqli-00/BenchmarkTest00509.html index 99455c8f98..2cf280f940 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00509.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00509.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/sqli-00/BenchmarkTest00510.html b/src/main/webapp/sqli-00/BenchmarkTest00510.html index a7c8243f3d..3018367670 100644 --- a/src/main/webapp/sqli-00/BenchmarkTest00510.html +++ b/src/main/webapp/sqli-00/BenchmarkTest00510.html @@ -9,7 +9,7 @@

-
Reading. [BenchmarkTest00510, verifyUserPassword('foo','bar')]
+
Reading. [BenchmarkTest00510, verifyUserPassword('foo','bar')]
Movies. [BenchmarkTest00510, Movies]
Writing. [BenchmarkTest00510, Writing]
Singing. [BenchmarkTest00510, Singing]
diff --git a/src/main/webapp/sqli-01/BenchmarkTest00512.html b/src/main/webapp/sqli-01/BenchmarkTest00512.html index 81ca7b60a5..41fc9a71dc 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00512.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00512.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00513.html b/src/main/webapp/sqli-01/BenchmarkTest00513.html index 3ae3833050..2144abcabe 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00513.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00513.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00517.html b/src/main/webapp/sqli-01/BenchmarkTest00517.html index bc61618d41..69fcbb4ec8 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00517.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00517.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00518.html b/src/main/webapp/sqli-01/BenchmarkTest00518.html index 33f0339d9d..537bb407b7 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00518.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00518.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00589.html b/src/main/webapp/sqli-01/BenchmarkTest00589.html index 054931142c..b0cb4b5dbd 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00589.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00589.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00589 input[id=BenchmarkTest00589]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00590.html b/src/main/webapp/sqli-01/BenchmarkTest00590.html index e16f1e7e9b..4fb3f160e1 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00590.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00590.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00590 input[id=BenchmarkTest00590]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00591.html b/src/main/webapp/sqli-01/BenchmarkTest00591.html index aa5be17bab..b37e17bc5a 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00591.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00591.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00591 input[id=BenchmarkTest00591]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00592.html b/src/main/webapp/sqli-01/BenchmarkTest00592.html index d5644203b9..2555862898 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00592.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00592.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00592 input[id=BenchmarkTest00592]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00593.html b/src/main/webapp/sqli-01/BenchmarkTest00593.html index f3791c9b14..d5375210f6 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00593.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00593.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00593 input[id=BenchmarkTest00593]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00594.html b/src/main/webapp/sqli-01/BenchmarkTest00594.html index fabf084e4b..450584045e 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00594.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00594.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00594 input[id=BenchmarkTest00594]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00595.html b/src/main/webapp/sqli-01/BenchmarkTest00595.html index 1d2e2c32bb..d61456fa1a 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00595.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00595.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00595 input[id=BenchmarkTest00595]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00596.html b/src/main/webapp/sqli-01/BenchmarkTest00596.html index 709e0a3d8e..0e005a1d39 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00596.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00596.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00596 input[id=BenchmarkTest00596]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00597.html b/src/main/webapp/sqli-01/BenchmarkTest00597.html index 120dc2db1c..4ec57a2d17 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00597.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00597.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00597 input[id=BenchmarkTest00597]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00598.html b/src/main/webapp/sqli-01/BenchmarkTest00598.html index c838822f5e..528b7a2590 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00598.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00598.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00598 input[id=BenchmarkTest00598]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00599.html b/src/main/webapp/sqli-01/BenchmarkTest00599.html index 413eb4dc86..7a445e0ca0 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00599.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00599.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00599 input[id=BenchmarkTest00599]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00600.html b/src/main/webapp/sqli-01/BenchmarkTest00600.html index d0f5d9386e..9103ae915a 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00600.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00600.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00600 input[id=BenchmarkTest00600]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00601.html b/src/main/webapp/sqli-01/BenchmarkTest00601.html index 80c46503fe..255fc47b53 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00601.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00601.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00601 input[id=BenchmarkTest00601]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00602.html b/src/main/webapp/sqli-01/BenchmarkTest00602.html index 34d4a19fa4..c0c744b667 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00602.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00602.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00602 input[id=BenchmarkTest00602]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00603.html b/src/main/webapp/sqli-01/BenchmarkTest00603.html index 93678fc3ec..2e03dc7d2c 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00603.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00603.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00603 input[id=BenchmarkTest00603]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00604.html b/src/main/webapp/sqli-01/BenchmarkTest00604.html index 248081d321..161cfadfed 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00604.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00604.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00604 input[id=BenchmarkTest00604]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00605.html b/src/main/webapp/sqli-01/BenchmarkTest00605.html index eb0efa67c8..0d1ce48686 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00605.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00605.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00605 input[id=BenchmarkTest00605]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00606.html b/src/main/webapp/sqli-01/BenchmarkTest00606.html index 5f4efc2d0a..de907070ac 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00606.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00606.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00606 input[id=BenchmarkTest00606]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-01/BenchmarkTest00672.html b/src/main/webapp/sqli-01/BenchmarkTest00672.html index cdb4278b21..fed4cb41e3 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00672.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00672.html @@ -9,7 +9,7 @@

-
Reading. [BenchmarkTest00672, verifyUserPassword('foo','bar')]
+
Reading. [BenchmarkTest00672, verifyUserPassword('foo','bar')]
Movies. [BenchmarkTest00672, Movies]
Writing. [BenchmarkTest00672, Writing]
Singing. [BenchmarkTest00672, Singing]
diff --git a/src/main/webapp/sqli-01/BenchmarkTest00674.html b/src/main/webapp/sqli-01/BenchmarkTest00674.html index 14773f5998..77d46d533b 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00674.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00674.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00675.html b/src/main/webapp/sqli-01/BenchmarkTest00675.html index b403e45c23..7e87c516d3 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00675.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00675.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00679.html b/src/main/webapp/sqli-01/BenchmarkTest00679.html index 4c381e9335..57ab11af22 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00679.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00679.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00680.html b/src/main/webapp/sqli-01/BenchmarkTest00680.html index d7b16474b6..78f67e0725 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00680.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00680.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00760.html b/src/main/webapp/sqli-01/BenchmarkTest00760.html index a0cedffcb5..0ed96b3368 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00760.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00760.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-01/BenchmarkTest00761.html b/src/main/webapp/sqli-01/BenchmarkTest00761.html index 6915a1b59a..2c9bf43e20 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00761.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00761.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/sqli-01/BenchmarkTest00762.html b/src/main/webapp/sqli-01/BenchmarkTest00762.html index 85fe9d8451..fde17c3f18 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00762.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00762.html @@ -9,7 +9,7 @@

-
Reading. [BenchmarkTest00762, verifyUserPassword('foo','bar')]
+
Reading. [BenchmarkTest00762, verifyUserPassword('foo','bar')]
Movies. [BenchmarkTest00762, Movies]
Writing. [BenchmarkTest00762, Writing]
Singing. [BenchmarkTest00762, Singing]
diff --git a/src/main/webapp/sqli-01/BenchmarkTest00764.html b/src/main/webapp/sqli-01/BenchmarkTest00764.html index 2e42634893..282ca9b428 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00764.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00764.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00765.html b/src/main/webapp/sqli-01/BenchmarkTest00765.html index b07c9c4e3c..a0811e4951 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00765.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00765.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00769.html b/src/main/webapp/sqli-01/BenchmarkTest00769.html index cab84ecbf2..2b3d6dde4a 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00769.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00769.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00770.html b/src/main/webapp/sqli-01/BenchmarkTest00770.html index f260eeba73..353ee81d0a 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00770.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00770.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00774.html b/src/main/webapp/sqli-01/BenchmarkTest00774.html index 48702670ba..74fe4af401 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00774.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00774.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00837.html b/src/main/webapp/sqli-01/BenchmarkTest00837.html index 9748231e03..c624c86a96 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00837.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00837.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-01/BenchmarkTest00838.html b/src/main/webapp/sqli-01/BenchmarkTest00838.html index 638fe5736e..7b26679f31 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00838.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00838.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00839.html b/src/main/webapp/sqli-01/BenchmarkTest00839.html index 3e67f3fd76..ace52ff8f0 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00839.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00839.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00840.html b/src/main/webapp/sqli-01/BenchmarkTest00840.html index 828a1827b4..684474118c 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00840.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00840.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00841.html b/src/main/webapp/sqli-01/BenchmarkTest00841.html index 7dd03e549a..4c0cacd4ae 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00841.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00841.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00842.html b/src/main/webapp/sqli-01/BenchmarkTest00842.html index df0029b22d..e72ac80386 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00842.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00842.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00843.html b/src/main/webapp/sqli-01/BenchmarkTest00843.html index eb7f9fe572..add1ef1850 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00843.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00843.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00844.html b/src/main/webapp/sqli-01/BenchmarkTest00844.html index f40c89fd1b..e1ac1591c7 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00844.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00844.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00845.html b/src/main/webapp/sqli-01/BenchmarkTest00845.html index bfe83ea090..95ef77485f 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00845.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00845.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00846.html b/src/main/webapp/sqli-01/BenchmarkTest00846.html index e05d02db65..4aa46e1549 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00846.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00846.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00847.html b/src/main/webapp/sqli-01/BenchmarkTest00847.html index 6af383b5be..8a35eb0dd2 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00847.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00847.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00848.html b/src/main/webapp/sqli-01/BenchmarkTest00848.html index f9c905b51a..69f7a76b34 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00848.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00848.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00849.html b/src/main/webapp/sqli-01/BenchmarkTest00849.html index 87988a5fd3..b07ca4a532 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00849.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00849.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00850.html b/src/main/webapp/sqli-01/BenchmarkTest00850.html index 0f6c2db9c2..a781698c11 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00850.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00850.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00851.html b/src/main/webapp/sqli-01/BenchmarkTest00851.html index f38c6c33d2..a948ec19b2 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00851.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00851.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00924.html b/src/main/webapp/sqli-01/BenchmarkTest00924.html index 17c09ff5eb..66add3e65b 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00924.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00924.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/sqli-01/BenchmarkTest00927.html b/src/main/webapp/sqli-01/BenchmarkTest00927.html index 0bbeb67587..b1e34a32cf 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00927.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00927.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00928.html b/src/main/webapp/sqli-01/BenchmarkTest00928.html index 4ff0118303..587528ee97 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00928.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00928.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00932.html b/src/main/webapp/sqli-01/BenchmarkTest00932.html index 8e6a65db94..2c28a7db08 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00932.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00932.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-01/BenchmarkTest00933.html b/src/main/webapp/sqli-01/BenchmarkTest00933.html index 00f8a2f928..37fe07241c 100644 --- a/src/main/webapp/sqli-01/BenchmarkTest00933.html +++ b/src/main/webapp/sqli-01/BenchmarkTest00933.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-02/BenchmarkTest00937.html b/src/main/webapp/sqli-02/BenchmarkTest00937.html index 23ded481c9..6d1808a5e8 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest00937.html +++ b/src/main/webapp/sqli-02/BenchmarkTest00937.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-02/BenchmarkTest00938.html b/src/main/webapp/sqli-02/BenchmarkTest00938.html index c41ac1835f..c7ee2b8f0d 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest00938.html +++ b/src/main/webapp/sqli-02/BenchmarkTest00938.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-02/BenchmarkTest00996.html b/src/main/webapp/sqli-02/BenchmarkTest00996.html index 1739175ff8..f15343c9b8 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest00996.html +++ b/src/main/webapp/sqli-02/BenchmarkTest00996.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00996" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest00997.html b/src/main/webapp/sqli-02/BenchmarkTest00997.html index 73010875a0..2e74166780 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest00997.html +++ b/src/main/webapp/sqli-02/BenchmarkTest00997.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00997" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest00998.html b/src/main/webapp/sqli-02/BenchmarkTest00998.html index fea6d503e6..fcd00cc2ca 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest00998.html +++ b/src/main/webapp/sqli-02/BenchmarkTest00998.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00998" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest00999.html b/src/main/webapp/sqli-02/BenchmarkTest00999.html index c88e1252ac..fc11c10217 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest00999.html +++ b/src/main/webapp/sqli-02/BenchmarkTest00999.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00999" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01000.html b/src/main/webapp/sqli-02/BenchmarkTest01000.html index b0a98d049b..564a9e1129 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01000.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01000.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01000" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01001.html b/src/main/webapp/sqli-02/BenchmarkTest01001.html index 2d2dc65c74..fcca0d5461 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01001.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01001.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01001" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01002.html b/src/main/webapp/sqli-02/BenchmarkTest01002.html index 014c39c43b..3fcb1d0fb3 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01002.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01002.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01002" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01003.html b/src/main/webapp/sqli-02/BenchmarkTest01003.html index 11ba85f63a..6663af9b34 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01003.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01003.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01003" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01004.html b/src/main/webapp/sqli-02/BenchmarkTest01004.html index b1e052bca4..f4e3bc63f6 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01004.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01004.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01004" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01005.html b/src/main/webapp/sqli-02/BenchmarkTest01005.html index 93e832bdb9..c26dc9f70f 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01005.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01005.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01005" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01006.html b/src/main/webapp/sqli-02/BenchmarkTest01006.html index cc89bf343f..588963446b 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01006.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01006.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01006" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01007.html b/src/main/webapp/sqli-02/BenchmarkTest01007.html index c2c6f83bf3..620c03f4e1 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01007.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01007.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01007" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01008.html b/src/main/webapp/sqli-02/BenchmarkTest01008.html index 94ee01bd99..bc24265241 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01008.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01008.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01008" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01009.html b/src/main/webapp/sqli-02/BenchmarkTest01009.html index 42fefae857..6adaffde11 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01009.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01009.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01009" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01010.html b/src/main/webapp/sqli-02/BenchmarkTest01010.html index b596bd4470..2043793243 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01010.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01010.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01010" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01011.html b/src/main/webapp/sqli-02/BenchmarkTest01011.html index 159eda044e..7eef1c51a0 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01011.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01011.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01011" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01012.html b/src/main/webapp/sqli-02/BenchmarkTest01012.html index a7bc9fc38d..735448b758 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01012.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01012.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01012" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01083.html b/src/main/webapp/sqli-02/BenchmarkTest01083.html index bf29bfc652..85d7cf32a2 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01083.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01083.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01084.html b/src/main/webapp/sqli-02/BenchmarkTest01084.html index a2b8f83f91..2dd4ac769c 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01084.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01084.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01085.html b/src/main/webapp/sqli-02/BenchmarkTest01085.html index 2aa21c4d3f..6887063416 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01085.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01085.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01086.html b/src/main/webapp/sqli-02/BenchmarkTest01086.html index 8bf26f23bd..2ec854321c 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01086.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01086.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01087.html b/src/main/webapp/sqli-02/BenchmarkTest01087.html index af447e5a62..1b2e3620c6 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01087.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01087.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01088.html b/src/main/webapp/sqli-02/BenchmarkTest01088.html index 4c8f6d8576..03c505784e 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01088.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01088.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01089.html b/src/main/webapp/sqli-02/BenchmarkTest01089.html index 0c70d2231d..2863507e23 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01089.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01089.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01090.html b/src/main/webapp/sqli-02/BenchmarkTest01090.html index 432b26deb7..8aed093c7c 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01090.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01090.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01091.html b/src/main/webapp/sqli-02/BenchmarkTest01091.html index bf486bb0e4..b2ff1054dc 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01091.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01091.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01092.html b/src/main/webapp/sqli-02/BenchmarkTest01092.html index dd39ea8672..a92ab8d693 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01092.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01092.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01093.html b/src/main/webapp/sqli-02/BenchmarkTest01093.html index 1ef788f5b8..7ff7b26587 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01093.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01093.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01094.html b/src/main/webapp/sqli-02/BenchmarkTest01094.html index cbbc175b6c..85b0e15f3b 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01094.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01094.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01095.html b/src/main/webapp/sqli-02/BenchmarkTest01095.html index 7ed54de926..1c03502809 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01095.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01095.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01096.html b/src/main/webapp/sqli-02/BenchmarkTest01096.html index e5d1a737e6..e8e0648509 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01096.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01096.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01097.html b/src/main/webapp/sqli-02/BenchmarkTest01097.html index dfbc17cb47..6e5ac6e9f4 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01097.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01097.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01098.html b/src/main/webapp/sqli-02/BenchmarkTest01098.html index e2d34c1b0a..7d86c00a03 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01098.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01098.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01208.html b/src/main/webapp/sqli-02/BenchmarkTest01208.html index 2a6bb9c4db..d75a136b4a 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01208.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01208.html @@ -14,7 +14,7 @@

-
+
@@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01209.html b/src/main/webapp/sqli-02/BenchmarkTest01209.html index 95a89cf752..51dad93b16 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01209.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01209.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01210.html b/src/main/webapp/sqli-02/BenchmarkTest01210.html index 70a14913fc..0e29194cab 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01210.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01210.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01211.html b/src/main/webapp/sqli-02/BenchmarkTest01211.html index 4814db9159..66944b650c 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01211.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01211.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01212.html b/src/main/webapp/sqli-02/BenchmarkTest01212.html index edd60c7135..52f8522ed1 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01212.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01212.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01213.html b/src/main/webapp/sqli-02/BenchmarkTest01213.html index 2e0874337f..556815fbce 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01213.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01213.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01214.html b/src/main/webapp/sqli-02/BenchmarkTest01214.html index ba79b7cab6..b4a9a5ef97 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01214.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01214.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01215.html b/src/main/webapp/sqli-02/BenchmarkTest01215.html index 2a62cd049d..db07d25ebb 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01215.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01215.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01216.html b/src/main/webapp/sqli-02/BenchmarkTest01216.html index 48cc1546ac..da9817cc51 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01216.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01216.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01217.html b/src/main/webapp/sqli-02/BenchmarkTest01217.html index cdfa2de1a8..ad8bd28939 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01217.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01217.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01218.html b/src/main/webapp/sqli-02/BenchmarkTest01218.html index fac568603f..f12d8fdf03 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01218.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01218.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01219.html b/src/main/webapp/sqli-02/BenchmarkTest01219.html index e8ba132cbc..2cf775df66 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01219.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01219.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01220.html b/src/main/webapp/sqli-02/BenchmarkTest01220.html index 86ce051a03..e9755aa617 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01220.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01220.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01221.html b/src/main/webapp/sqli-02/BenchmarkTest01221.html index 0fafc7f830..a4788bc229 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01221.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01221.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01222.html b/src/main/webapp/sqli-02/BenchmarkTest01222.html index 94f2b354ab..bde4b0990a 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01222.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01222.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-02/BenchmarkTest01301.html b/src/main/webapp/sqli-02/BenchmarkTest01301.html index 972f1629db..aee885f9b4 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01301.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01301.html @@ -9,7 +9,7 @@

-
Reading. [BenchmarkTest01301, verifyUserPassword('foo','bar')]
+
Reading. [BenchmarkTest01301, verifyUserPassword('foo','bar')]
Movies. [BenchmarkTest01301, Movies]
Writing. [BenchmarkTest01301, Writing]
Singing. [BenchmarkTest01301, Singing]
diff --git a/src/main/webapp/sqli-02/BenchmarkTest01302.html b/src/main/webapp/sqli-02/BenchmarkTest01302.html index 08ea7cd6a5..c75dfbd4a0 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01302.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01302.html @@ -10,7 +10,7 @@

Please make your car selection, and edit the value to be sent [value]:

-
 
+
 

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01304.html b/src/main/webapp/sqli-02/BenchmarkTest01304.html index 723224c58b..dd4d1ae795 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01304.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01304.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01308.html b/src/main/webapp/sqli-02/BenchmarkTest01308.html index f199a301a0..e04c8bd1dd 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01308.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01308.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01309.html b/src/main/webapp/sqli-02/BenchmarkTest01309.html index 9dffc35be5..2b95d5fe4e 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01309.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01309.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01313.html b/src/main/webapp/sqli-02/BenchmarkTest01313.html index 9dfaac880b..6e799dada2 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01313.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01313.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01314.html b/src/main/webapp/sqli-02/BenchmarkTest01314.html index 77364d9315..2d2608ebe1 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01314.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01314.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01378.html b/src/main/webapp/sqli-02/BenchmarkTest01378.html index 9aa1757400..2a0a25ebff 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01378.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01378.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-02/BenchmarkTest01379.html b/src/main/webapp/sqli-02/BenchmarkTest01379.html index 31e7ed9b90..078f830b37 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01379.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01379.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-02/BenchmarkTest01380.html b/src/main/webapp/sqli-02/BenchmarkTest01380.html index c4abd86239..366b7f9ebc 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01380.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01380.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/sqli-02/BenchmarkTest01383.html b/src/main/webapp/sqli-02/BenchmarkTest01383.html index e647a9e221..8cc7a67d4a 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01383.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01383.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01384.html b/src/main/webapp/sqli-02/BenchmarkTest01384.html index ef3e7107b1..6c24e440e1 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01384.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01384.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01388.html b/src/main/webapp/sqli-02/BenchmarkTest01388.html index 1275b83349..5ecaaaba6c 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01388.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01388.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-02/BenchmarkTest01389.html b/src/main/webapp/sqli-02/BenchmarkTest01389.html index b98b88cc3d..f2856f848a 100644 --- a/src/main/webapp/sqli-02/BenchmarkTest01389.html +++ b/src/main/webapp/sqli-02/BenchmarkTest01389.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01393.html b/src/main/webapp/sqli-03/BenchmarkTest01393.html index 8b4e5ae345..2d25412868 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01393.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01393.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01394.html b/src/main/webapp/sqli-03/BenchmarkTest01394.html index d4a4ab7e4a..a049b7efad 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01394.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01394.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01459.html b/src/main/webapp/sqli-03/BenchmarkTest01459.html index bb6bf30540..fb1c5990e0 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01459.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01459.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01459 input[id=BenchmarkTest01459]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01460.html b/src/main/webapp/sqli-03/BenchmarkTest01460.html index a262587b5b..96fe01e5e8 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01460.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01460.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01460 input[id=BenchmarkTest01460]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01461.html b/src/main/webapp/sqli-03/BenchmarkTest01461.html index 6d6b66f68b..c4c6dfd40f 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01461.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01461.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01461 input[id=BenchmarkTest01461]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01462.html b/src/main/webapp/sqli-03/BenchmarkTest01462.html index 6819b4b5ae..302dd55ace 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01462.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01462.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01462 input[id=BenchmarkTest01462]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01463.html b/src/main/webapp/sqli-03/BenchmarkTest01463.html index 4a1905f4d1..002712d29f 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01463.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01463.html @@ -10,12 +10,12 @@

-
+

-
+
@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01463 input[id=BenchmarkTest01463]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01464.html b/src/main/webapp/sqli-03/BenchmarkTest01464.html index f5e93d3ca3..b71bc10127 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01464.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01464.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01464 input[id=BenchmarkTest01464]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01465.html b/src/main/webapp/sqli-03/BenchmarkTest01465.html index 6c3d88a14c..7713905811 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01465.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01465.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01465 input[id=BenchmarkTest01465]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01466.html b/src/main/webapp/sqli-03/BenchmarkTest01466.html index d1c5a8291a..e47362be66 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01466.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01466.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01466 input[id=BenchmarkTest01466]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01467.html b/src/main/webapp/sqli-03/BenchmarkTest01467.html index b6d6c45e96..f95fc621af 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01467.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01467.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01467 input[id=BenchmarkTest01467]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01468.html b/src/main/webapp/sqli-03/BenchmarkTest01468.html index 9210dda445..e4d92ecb0b 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01468.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01468.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01468 input[id=BenchmarkTest01468]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01469.html b/src/main/webapp/sqli-03/BenchmarkTest01469.html index b1abe5339f..d371378fc6 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01469.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01469.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01469 input[id=BenchmarkTest01469]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01470.html b/src/main/webapp/sqli-03/BenchmarkTest01470.html index 7b7dc3788f..eb748a18c8 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01470.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01470.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01470 input[id=BenchmarkTest01470]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01471.html b/src/main/webapp/sqli-03/BenchmarkTest01471.html index 7261276299..6d1787b5ec 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01471.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01471.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01471 input[id=BenchmarkTest01471]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01472.html b/src/main/webapp/sqli-03/BenchmarkTest01472.html index dcbc9acdd8..9e8c3e4736 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01472.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01472.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01472 input[id=BenchmarkTest01472]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01473.html b/src/main/webapp/sqli-03/BenchmarkTest01473.html index b383fd5b1d..52bdbee29c 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01473.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01473.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01473 input[id=BenchmarkTest01473]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01474.html b/src/main/webapp/sqli-03/BenchmarkTest01474.html index 578ea59f5e..c1f077211f 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01474.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01474.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01474 input[id=BenchmarkTest01474]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01475.html b/src/main/webapp/sqli-03/BenchmarkTest01475.html index 2036f71944..f6b43caa6e 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01475.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01475.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01475 input[id=BenchmarkTest01475]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01476.html b/src/main/webapp/sqli-03/BenchmarkTest01476.html index bf006675d8..496895f85f 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01476.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01476.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01476 input[id=BenchmarkTest01476]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01477.html b/src/main/webapp/sqli-03/BenchmarkTest01477.html index 2194cea6ce..f5d22aa508 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01477.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01477.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01477 input[id=BenchmarkTest01477]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-03/BenchmarkTest01552.html b/src/main/webapp/sqli-03/BenchmarkTest01552.html index 2a7ddb6ee7..f82c47e51d 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01552.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01552.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01556.html b/src/main/webapp/sqli-03/BenchmarkTest01556.html index 9b902113f3..482c315b03 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01556.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01556.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01557.html b/src/main/webapp/sqli-03/BenchmarkTest01557.html index 7301871667..99d3f6e3f5 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01557.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01557.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01620.html b/src/main/webapp/sqli-03/BenchmarkTest01620.html index 980cedaab7..3ff777a040 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01620.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01620.html @@ -10,7 +10,7 @@

Please make your car selection, and edit the value to be sent [value]:

-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-03/BenchmarkTest01622.html b/src/main/webapp/sqli-03/BenchmarkTest01622.html index 72f2b66fdd..a6179f8a45 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01622.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01622.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-03/BenchmarkTest01623.html b/src/main/webapp/sqli-03/BenchmarkTest01623.html index 76791bdc5a..58cf0a725c 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01623.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01623.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/sqli-03/BenchmarkTest01626.html b/src/main/webapp/sqli-03/BenchmarkTest01626.html index 4464bbf1ed..e4d1ee6787 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01626.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01626.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01627.html b/src/main/webapp/sqli-03/BenchmarkTest01627.html index 8d1048767e..f63f2cdb63 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01627.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01627.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01631.html b/src/main/webapp/sqli-03/BenchmarkTest01631.html index baa4e4764f..d064d6b56f 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01631.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01631.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01712.html b/src/main/webapp/sqli-03/BenchmarkTest01712.html index 0d18422854..db94982346 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01712.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01712.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-03/BenchmarkTest01713.html b/src/main/webapp/sqli-03/BenchmarkTest01713.html index 4e346cd36d..272ce08651 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01713.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01713.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-03/BenchmarkTest01714.html b/src/main/webapp/sqli-03/BenchmarkTest01714.html index 520d982100..6325841a66 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01714.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01714.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-03/BenchmarkTest01715.html b/src/main/webapp/sqli-03/BenchmarkTest01715.html index 1cd477a371..0c55310041 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01715.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01715.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01716.html b/src/main/webapp/sqli-03/BenchmarkTest01716.html index da8fbc203a..a5e697f81e 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01716.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01716.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01717.html b/src/main/webapp/sqli-03/BenchmarkTest01717.html index 6ff7249dbb..4137d2b8b6 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01717.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01717.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01718.html b/src/main/webapp/sqli-03/BenchmarkTest01718.html index 0931a23d3c..bd76c9b87c 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01718.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01718.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01719.html b/src/main/webapp/sqli-03/BenchmarkTest01719.html index af487e311f..3e99784201 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01719.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01719.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01720.html b/src/main/webapp/sqli-03/BenchmarkTest01720.html index c426af00fa..375342c9d6 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01720.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01720.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01721.html b/src/main/webapp/sqli-03/BenchmarkTest01721.html index 53ed6c6ac7..b3fd64c895 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01721.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01721.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01722.html b/src/main/webapp/sqli-03/BenchmarkTest01722.html index 8f3f1d634a..cf027d864b 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01722.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01722.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01723.html b/src/main/webapp/sqli-03/BenchmarkTest01723.html index e0d41422ad..8b16da7c47 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01723.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01723.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01724.html b/src/main/webapp/sqli-03/BenchmarkTest01724.html index 063564d8a7..844ae6384b 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01724.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01724.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01725.html b/src/main/webapp/sqli-03/BenchmarkTest01725.html index 8f119f8bc2..d082fcf9d7 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01725.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01725.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01726.html b/src/main/webapp/sqli-03/BenchmarkTest01726.html index 1ad5845eaf..ef40dcc801 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01726.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01726.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01727.html b/src/main/webapp/sqli-03/BenchmarkTest01727.html index ba19b35b17..8153a6c33e 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01727.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01727.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01728.html b/src/main/webapp/sqli-03/BenchmarkTest01728.html index af1e27ff30..386c28a8d5 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01728.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01728.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01729.html b/src/main/webapp/sqli-03/BenchmarkTest01729.html index 562e6a77f9..c757c9708d 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01729.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01729.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01730.html b/src/main/webapp/sqli-03/BenchmarkTest01730.html index 39e2650663..dd226c77c2 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01730.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01730.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01731.html b/src/main/webapp/sqli-03/BenchmarkTest01731.html index e326d2d7c7..190a0e0af4 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01731.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01731.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01732.html b/src/main/webapp/sqli-03/BenchmarkTest01732.html index 8850b3815e..ed3fd260ae 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01732.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01732.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01733.html b/src/main/webapp/sqli-03/BenchmarkTest01733.html index 32b5a78c70..84027b008a 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01733.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01733.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01803.html b/src/main/webapp/sqli-03/BenchmarkTest01803.html index 06ab375891..a7928c7e09 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01803.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01803.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/sqli-03/BenchmarkTest01806.html b/src/main/webapp/sqli-03/BenchmarkTest01806.html index 3213da62c2..6da747051c 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01806.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01806.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01807.html b/src/main/webapp/sqli-03/BenchmarkTest01807.html index 0f0a36219c..743d3e6455 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01807.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01807.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01811.html b/src/main/webapp/sqli-03/BenchmarkTest01811.html index d4f0f3cb33..c00da26970 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01811.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01811.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-03/BenchmarkTest01812.html b/src/main/webapp/sqli-03/BenchmarkTest01812.html index af72600b7e..fa1a4e089c 100644 --- a/src/main/webapp/sqli-03/BenchmarkTest01812.html +++ b/src/main/webapp/sqli-03/BenchmarkTest01812.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01816.html b/src/main/webapp/sqli-04/BenchmarkTest01816.html index 19b9523d20..b4ab1ec1af 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01816.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01816.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01817.html b/src/main/webapp/sqli-04/BenchmarkTest01817.html index c588779f34..8997df1507 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01817.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01817.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01877.html b/src/main/webapp/sqli-04/BenchmarkTest01877.html index f04ed21a72..7162de49af 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01877.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01877.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01877" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01878.html b/src/main/webapp/sqli-04/BenchmarkTest01878.html index 9e92c0c19d..b242427773 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01878.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01878.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01878" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01879.html b/src/main/webapp/sqli-04/BenchmarkTest01879.html index fc6d1a62f6..6d836eb25e 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01879.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01879.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01879" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01880.html b/src/main/webapp/sqli-04/BenchmarkTest01880.html index 5f46fb5b03..e69d3ef4d3 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01880.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01880.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01880" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01881.html b/src/main/webapp/sqli-04/BenchmarkTest01881.html index 22c3b6d9d5..520ff77539 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01881.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01881.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01881" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01882.html b/src/main/webapp/sqli-04/BenchmarkTest01882.html index bd9304ed95..8b6dd6bda4 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01882.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01882.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01882" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01883.html b/src/main/webapp/sqli-04/BenchmarkTest01883.html index 6ea02a90ce..6a91fb56e9 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01883.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01883.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01883" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01884.html b/src/main/webapp/sqli-04/BenchmarkTest01884.html index 2d84145779..ecfb384172 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01884.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01884.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01884" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01885.html b/src/main/webapp/sqli-04/BenchmarkTest01885.html index d2cdf667c3..4ceca4b5f2 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01885.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01885.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01885" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01886.html b/src/main/webapp/sqli-04/BenchmarkTest01886.html index bd7733faee..8b3586e000 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01886.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01886.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01886" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01887.html b/src/main/webapp/sqli-04/BenchmarkTest01887.html index 76c6651b2b..aa4947bbd4 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01887.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01887.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01887" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01888.html b/src/main/webapp/sqli-04/BenchmarkTest01888.html index 5b4e472aa1..9d98eb1e49 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01888.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01888.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01888" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01889.html b/src/main/webapp/sqli-04/BenchmarkTest01889.html index b450a72437..24e7c45a77 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01889.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01889.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01889" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01890.html b/src/main/webapp/sqli-04/BenchmarkTest01890.html index f627b48270..8cd66aa1a4 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01890.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01890.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01890" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01891.html b/src/main/webapp/sqli-04/BenchmarkTest01891.html index bc59dc2c7d..32ff193246 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01891.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01891.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01891" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/sqli-04/BenchmarkTest01961.html b/src/main/webapp/sqli-04/BenchmarkTest01961.html index 83dd890094..a4b2050d1f 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01961.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01961.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest01962.html b/src/main/webapp/sqli-04/BenchmarkTest01962.html index a848011a0f..f159f118d1 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01962.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01962.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest01963.html b/src/main/webapp/sqli-04/BenchmarkTest01963.html index e9c92b9cd8..8daee0ad09 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01963.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01963.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest01964.html b/src/main/webapp/sqli-04/BenchmarkTest01964.html index 5977e84ac2..da29ba688d 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01964.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01964.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest01965.html b/src/main/webapp/sqli-04/BenchmarkTest01965.html index c894f1afb8..a763615cbe 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01965.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01965.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest01966.html b/src/main/webapp/sqli-04/BenchmarkTest01966.html index 6f6860926a..f4053c111c 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01966.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01966.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest01967.html b/src/main/webapp/sqli-04/BenchmarkTest01967.html index 81445c9661..5e308766ff 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01967.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01967.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest01968.html b/src/main/webapp/sqli-04/BenchmarkTest01968.html index 39164aba0d..76b742199a 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01968.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01968.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest01969.html b/src/main/webapp/sqli-04/BenchmarkTest01969.html index 9d2749838b..020d60fc82 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01969.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01969.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest01970.html b/src/main/webapp/sqli-04/BenchmarkTest01970.html index 460d08d8ce..a94840a46a 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01970.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01970.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest01971.html b/src/main/webapp/sqli-04/BenchmarkTest01971.html index ccb0068f3a..bb8e2c0263 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01971.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01971.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest01972.html b/src/main/webapp/sqli-04/BenchmarkTest01972.html index 5993d4c42b..92fe985f53 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01972.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01972.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest01973.html b/src/main/webapp/sqli-04/BenchmarkTest01973.html index d6cb6de12e..5280736008 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest01973.html +++ b/src/main/webapp/sqli-04/BenchmarkTest01973.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest02087.html b/src/main/webapp/sqli-04/BenchmarkTest02087.html index 830464d2ef..6fe7c43807 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02087.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02087.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest02088.html b/src/main/webapp/sqli-04/BenchmarkTest02088.html index 4d82751929..93659cd5ff 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02088.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02088.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest02089.html b/src/main/webapp/sqli-04/BenchmarkTest02089.html index 63b895da76..344087e9d5 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02089.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02089.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest02090.html b/src/main/webapp/sqli-04/BenchmarkTest02090.html index 9b18d329c9..b47ef4cb2d 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02090.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02090.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest02091.html b/src/main/webapp/sqli-04/BenchmarkTest02091.html index 06efa2895d..a9dccacbaf 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02091.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02091.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest02092.html b/src/main/webapp/sqli-04/BenchmarkTest02092.html index 1dd5926fd1..bb0e50dc44 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02092.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02092.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest02093.html b/src/main/webapp/sqli-04/BenchmarkTest02093.html index 4d2ae1f8f3..38afdece23 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02093.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02093.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest02094.html b/src/main/webapp/sqli-04/BenchmarkTest02094.html index 53d61cc199..5cf821bf59 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02094.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02094.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest02095.html b/src/main/webapp/sqli-04/BenchmarkTest02095.html index 8f3164866a..dadc04c0a0 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02095.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02095.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest02096.html b/src/main/webapp/sqli-04/BenchmarkTest02096.html index 831d6992d5..c7fb72b648 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02096.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02096.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest02097.html b/src/main/webapp/sqli-04/BenchmarkTest02097.html index 909564a955..10acd18b60 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02097.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02097.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest02098.html b/src/main/webapp/sqli-04/BenchmarkTest02098.html index 9596099880..9bc7cd8459 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02098.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02098.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest02099.html b/src/main/webapp/sqli-04/BenchmarkTest02099.html index 69a4604187..5872d8f461 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02099.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02099.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-04/BenchmarkTest02169.html b/src/main/webapp/sqli-04/BenchmarkTest02169.html index 0cd7d6bfeb..0671b42aa7 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02169.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02169.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-04/BenchmarkTest02170.html b/src/main/webapp/sqli-04/BenchmarkTest02170.html index 259cefb956..cb28061635 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02170.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02170.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/sqli-04/BenchmarkTest02173.html b/src/main/webapp/sqli-04/BenchmarkTest02173.html index 0fb44ad0fe..9b5359f410 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02173.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02173.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-04/BenchmarkTest02174.html b/src/main/webapp/sqli-04/BenchmarkTest02174.html index a16ee63e76..18c08dfd7d 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02174.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02174.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-04/BenchmarkTest02178.html b/src/main/webapp/sqli-04/BenchmarkTest02178.html index 37549539a5..ea0bb8c662 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02178.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02178.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-04/BenchmarkTest02179.html b/src/main/webapp/sqli-04/BenchmarkTest02179.html index 867ea86c3d..c708402690 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02179.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02179.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-04/BenchmarkTest02183.html b/src/main/webapp/sqli-04/BenchmarkTest02183.html index 88a1ec3449..d3962f356c 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02183.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02183.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-04/BenchmarkTest02184.html b/src/main/webapp/sqli-04/BenchmarkTest02184.html index e13e56a4d0..c2f14283d0 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02184.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02184.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-04/BenchmarkTest02188.html b/src/main/webapp/sqli-04/BenchmarkTest02188.html index 67db2f7ae5..0f412c56cd 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02188.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02188.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-04/BenchmarkTest02264.html b/src/main/webapp/sqli-04/BenchmarkTest02264.html index 9918b0b8ac..ea079f8bef 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02264.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02264.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-04/BenchmarkTest02265.html b/src/main/webapp/sqli-04/BenchmarkTest02265.html index 843f75a4b9..db7c793e97 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02265.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02265.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/sqli-04/BenchmarkTest02266.html b/src/main/webapp/sqli-04/BenchmarkTest02266.html index 45ddca0fa9..dddf3a6c66 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02266.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02266.html @@ -9,7 +9,7 @@

-
Reading. [BenchmarkTest02266, verifyUserPassword('foo','bar')]
+
Reading. [BenchmarkTest02266, verifyUserPassword('foo','bar')]
Movies. [BenchmarkTest02266, Movies]
Writing. [BenchmarkTest02266, Writing]
Singing. [BenchmarkTest02266, Singing]
diff --git a/src/main/webapp/sqli-04/BenchmarkTest02268.html b/src/main/webapp/sqli-04/BenchmarkTest02268.html index 07c8b2f1f6..773718b684 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02268.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02268.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-04/BenchmarkTest02269.html b/src/main/webapp/sqli-04/BenchmarkTest02269.html index a8ea3aa862..42ec4fdfce 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02269.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02269.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-04/BenchmarkTest02273.html b/src/main/webapp/sqli-04/BenchmarkTest02273.html index 0db98b88d8..91edc53731 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02273.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02273.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-04/BenchmarkTest02274.html b/src/main/webapp/sqli-04/BenchmarkTest02274.html index 9450840629..e5b0b15fc1 100644 --- a/src/main/webapp/sqli-04/BenchmarkTest02274.html +++ b/src/main/webapp/sqli-04/BenchmarkTest02274.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02278.html b/src/main/webapp/sqli-05/BenchmarkTest02278.html index defb260fcc..6369286835 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02278.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02278.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02279.html b/src/main/webapp/sqli-05/BenchmarkTest02279.html index 76358ebccf..77fa85e84f 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02279.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02279.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02283.html b/src/main/webapp/sqli-05/BenchmarkTest02283.html index 8faf947ad9..17f2820046 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02283.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02283.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02284.html b/src/main/webapp/sqli-05/BenchmarkTest02284.html index 629eaef49a..405552cee2 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02284.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02284.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02288.html b/src/main/webapp/sqli-05/BenchmarkTest02288.html index 3d166c454b..c86f732a75 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02288.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02288.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02353.html b/src/main/webapp/sqli-05/BenchmarkTest02353.html index d0da0578a4..ddd28e01aa 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02353.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02353.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02353 input[id=BenchmarkTest02353]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02354.html b/src/main/webapp/sqli-05/BenchmarkTest02354.html index 2dbef531ef..04b082b697 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02354.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02354.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02354 input[id=BenchmarkTest02354]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02355.html b/src/main/webapp/sqli-05/BenchmarkTest02355.html index d0b1d33670..a77fb3c9fb 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02355.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02355.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02355 input[id=BenchmarkTest02355]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02356.html b/src/main/webapp/sqli-05/BenchmarkTest02356.html index 8829db4600..d761dfe074 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02356.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02356.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02356 input[id=BenchmarkTest02356]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02357.html b/src/main/webapp/sqli-05/BenchmarkTest02357.html index 2391fd7b53..8c7b1ad2d2 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02357.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02357.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02357 input[id=BenchmarkTest02357]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02358.html b/src/main/webapp/sqli-05/BenchmarkTest02358.html index 1e1db151b1..53192cc56f 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02358.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02358.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02358 input[id=BenchmarkTest02358]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02359.html b/src/main/webapp/sqli-05/BenchmarkTest02359.html index 6e5da5b2aa..a055aed9f3 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02359.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02359.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02359 input[id=BenchmarkTest02359]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02360.html b/src/main/webapp/sqli-05/BenchmarkTest02360.html index cc0131d48e..39207f486d 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02360.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02360.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02360 input[id=BenchmarkTest02360]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02361.html b/src/main/webapp/sqli-05/BenchmarkTest02361.html index 130e2b2334..684b100613 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02361.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02361.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02361 input[id=BenchmarkTest02361]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02362.html b/src/main/webapp/sqli-05/BenchmarkTest02362.html index dffc8c3647..29e893298c 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02362.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02362.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02362 input[id=BenchmarkTest02362]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02363.html b/src/main/webapp/sqli-05/BenchmarkTest02363.html index 9e9cce7430..5403e31e31 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02363.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02363.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02363 input[id=BenchmarkTest02363]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02364.html b/src/main/webapp/sqli-05/BenchmarkTest02364.html index fef7c7741b..3d77cf1aab 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02364.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02364.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02364 input[id=BenchmarkTest02364]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02365.html b/src/main/webapp/sqli-05/BenchmarkTest02365.html index f393fed29b..e29a298bef 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02365.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02365.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02365 input[id=BenchmarkTest02365]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02366.html b/src/main/webapp/sqli-05/BenchmarkTest02366.html index 6277314650..f4e124dfea 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02366.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02366.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02366 input[id=BenchmarkTest02366]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02367.html b/src/main/webapp/sqli-05/BenchmarkTest02367.html index 6dbf019c3f..e5c97bb5cf 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02367.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02367.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02367 input[id=BenchmarkTest02367]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02368.html b/src/main/webapp/sqli-05/BenchmarkTest02368.html index b7e21a96e6..fb75133b35 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02368.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02368.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02368 input[id=BenchmarkTest02368]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02369.html b/src/main/webapp/sqli-05/BenchmarkTest02369.html index dd6314e23b..3ce23a6028 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02369.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02369.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02369 input[id=BenchmarkTest02369]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/sqli-05/BenchmarkTest02449.html b/src/main/webapp/sqli-05/BenchmarkTest02449.html index f953ad28a9..4b0ae7fcef 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02449.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02449.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/sqli-05/BenchmarkTest02452.html b/src/main/webapp/sqli-05/BenchmarkTest02452.html index 00a6a62dc4..e697e28ab6 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02452.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02452.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02453.html b/src/main/webapp/sqli-05/BenchmarkTest02453.html index 89a1b6395f..7f65f98980 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02453.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02453.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02528.html b/src/main/webapp/sqli-05/BenchmarkTest02528.html index c01b262111..6090eed7f7 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02528.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02528.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-05/BenchmarkTest02529.html b/src/main/webapp/sqli-05/BenchmarkTest02529.html index b4b312c1a5..25b91fb24f 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02529.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02529.html @@ -16,7 +16,7 @@
-
+
diff --git a/src/main/webapp/sqli-05/BenchmarkTest02530.html b/src/main/webapp/sqli-05/BenchmarkTest02530.html index dc5ed81c15..a97c698487 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02530.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02530.html @@ -9,7 +9,7 @@

-
Reading. [BenchmarkTest02530, verifyUserPassword('foo','bar')]
+
Reading. [BenchmarkTest02530, verifyUserPassword('foo','bar')]
Movies. [BenchmarkTest02530, Movies]
Writing. [BenchmarkTest02530, Writing]
Singing. [BenchmarkTest02530, Singing]
diff --git a/src/main/webapp/sqli-05/BenchmarkTest02532.html b/src/main/webapp/sqli-05/BenchmarkTest02532.html index 20bfd8d774..9e6397f8df 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02532.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02532.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02533.html b/src/main/webapp/sqli-05/BenchmarkTest02533.html index 283dc07be7..7a26f16f72 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02533.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02533.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02537.html b/src/main/webapp/sqli-05/BenchmarkTest02537.html index ddf87f6909..e80e140eaa 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02537.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02537.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02538.html b/src/main/webapp/sqli-05/BenchmarkTest02538.html index cd0f9d18c7..ee1bb0e323 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02538.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02538.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02542.html b/src/main/webapp/sqli-05/BenchmarkTest02542.html index a651b59305..9c4312b324 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02542.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02542.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02543.html b/src/main/webapp/sqli-05/BenchmarkTest02543.html index 45ef73be04..0c106a5440 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02543.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02543.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02625.html b/src/main/webapp/sqli-05/BenchmarkTest02625.html index c92809f371..5ebade3a51 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02625.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02625.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-05/BenchmarkTest02626.html b/src/main/webapp/sqli-05/BenchmarkTest02626.html index 7606824e42..efab2f66ff 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02626.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02626.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-05/BenchmarkTest02627.html b/src/main/webapp/sqli-05/BenchmarkTest02627.html index f7d79505cd..446c225fd7 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02627.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02627.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-05/BenchmarkTest02628.html b/src/main/webapp/sqli-05/BenchmarkTest02628.html index d368d60210..9b1677b6d9 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02628.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02628.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-05/BenchmarkTest02629.html b/src/main/webapp/sqli-05/BenchmarkTest02629.html index cf8e258f94..52fb9fa414 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02629.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02629.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-05/BenchmarkTest02630.html b/src/main/webapp/sqli-05/BenchmarkTest02630.html index 3054b838a7..9783ea1e0d 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02630.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02630.html @@ -14,9 +14,9 @@
-
 
+
 
-
+
diff --git a/src/main/webapp/sqli-05/BenchmarkTest02631.html b/src/main/webapp/sqli-05/BenchmarkTest02631.html index c87f9a68f2..7879b784aa 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02631.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02631.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02632.html b/src/main/webapp/sqli-05/BenchmarkTest02632.html index 9c56324aeb..a433d528b4 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02632.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02632.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02633.html b/src/main/webapp/sqli-05/BenchmarkTest02633.html index 39e0059355..f5cb16dc5a 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02633.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02633.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02634.html b/src/main/webapp/sqli-05/BenchmarkTest02634.html index 5cdf66f5ac..ec1c6b451f 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02634.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02634.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02635.html b/src/main/webapp/sqli-05/BenchmarkTest02635.html index 41f4b946e7..0ad35da8d1 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02635.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02635.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02636.html b/src/main/webapp/sqli-05/BenchmarkTest02636.html index 184bfa280f..8f64c09118 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02636.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02636.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02637.html b/src/main/webapp/sqli-05/BenchmarkTest02637.html index 10e0f2bd75..4c731261d1 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02637.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02637.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02638.html b/src/main/webapp/sqli-05/BenchmarkTest02638.html index 23d391f9b9..7f78fe1660 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02638.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02638.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02639.html b/src/main/webapp/sqli-05/BenchmarkTest02639.html index 6b4c4338e7..d4f13c83e4 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02639.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02639.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02640.html b/src/main/webapp/sqli-05/BenchmarkTest02640.html index d26dc47236..128d0f17c9 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02640.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02640.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02641.html b/src/main/webapp/sqli-05/BenchmarkTest02641.html index 9043602933..c12a0b137d 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02641.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02641.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02642.html b/src/main/webapp/sqli-05/BenchmarkTest02642.html index 2f2071bdf5..3719eba504 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02642.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02642.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02643.html b/src/main/webapp/sqli-05/BenchmarkTest02643.html index 533a953be8..5d2e6931b1 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02643.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02643.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02644.html b/src/main/webapp/sqli-05/BenchmarkTest02644.html index ac2861bdcd..fde9c83f94 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02644.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02644.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02645.html b/src/main/webapp/sqli-05/BenchmarkTest02645.html index f6c344ca0c..42f99ce0e3 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02645.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02645.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02646.html b/src/main/webapp/sqli-05/BenchmarkTest02646.html index aa4b3e80e0..db40a55cde 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02646.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02646.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-05/BenchmarkTest02647.html b/src/main/webapp/sqli-05/BenchmarkTest02647.html index 63c24520f2..93245e2173 100644 --- a/src/main/webapp/sqli-05/BenchmarkTest02647.html +++ b/src/main/webapp/sqli-05/BenchmarkTest02647.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02648.html b/src/main/webapp/sqli-06/BenchmarkTest02648.html index 277daaba67..428795e755 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02648.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02648.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02649.html b/src/main/webapp/sqli-06/BenchmarkTest02649.html index d237c253b6..63b7a3e35a 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02649.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02649.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02650.html b/src/main/webapp/sqli-06/BenchmarkTest02650.html index d1fe08f8fd..d2d3ef8a8e 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02650.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02650.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02651.html b/src/main/webapp/sqli-06/BenchmarkTest02651.html index 1abb5c5e3b..cd7f0d5316 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02651.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02651.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02652.html b/src/main/webapp/sqli-06/BenchmarkTest02652.html index 98d8f78d71..3b5b97012b 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02652.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02652.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02653.html b/src/main/webapp/sqli-06/BenchmarkTest02653.html index f76865ed46..74b77d7dc1 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02653.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02653.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02654.html b/src/main/webapp/sqli-06/BenchmarkTest02654.html index 516b5cd135..6ab6ff547c 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02654.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02654.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02655.html b/src/main/webapp/sqli-06/BenchmarkTest02655.html index fa49df7bf1..e84fd18bfa 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02655.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02655.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02656.html b/src/main/webapp/sqli-06/BenchmarkTest02656.html index 1dc1d04ea1..b644acba88 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02656.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02656.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02657.html b/src/main/webapp/sqli-06/BenchmarkTest02657.html index 9827e9523f..92df0402c6 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02657.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02657.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02727.html b/src/main/webapp/sqli-06/BenchmarkTest02727.html index a5a476c69f..7f24fef9a3 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02727.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02727.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02728.html b/src/main/webapp/sqli-06/BenchmarkTest02728.html index d0a092ae53..90b5c88dbd 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02728.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02728.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02732.html b/src/main/webapp/sqli-06/BenchmarkTest02732.html index 370e9e1b9f..4ec140dc47 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02732.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02732.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02733.html b/src/main/webapp/sqli-06/BenchmarkTest02733.html index c70de5b46d..4a1a4ae453 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02733.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02733.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02737.html b/src/main/webapp/sqli-06/BenchmarkTest02737.html index 7dd19d3b65..07f753f5d1 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02737.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02737.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/sqli-06/BenchmarkTest02738.html b/src/main/webapp/sqli-06/BenchmarkTest02738.html index 8dfc6443d3..b88bc4993a 100644 --- a/src/main/webapp/sqli-06/BenchmarkTest02738.html +++ b/src/main/webapp/sqli-06/BenchmarkTest02738.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00004.html b/src/main/webapp/trustbound-00/BenchmarkTest00004.html index 639c73788b..6cebeebc01 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00004.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00004.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00004" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00031.html b/src/main/webapp/trustbound-00/BenchmarkTest00031.html index 5cc22bbfde..d63ec5d158 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00031.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00031.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00097.html b/src/main/webapp/trustbound-00/BenchmarkTest00097.html index a4565a6601..18753fc290 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00097.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00097.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00097" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00098.html b/src/main/webapp/trustbound-00/BenchmarkTest00098.html index 193e4ba8e8..1d26740c86 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00098.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00098.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00098" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00099.html b/src/main/webapp/trustbound-00/BenchmarkTest00099.html index 7f41c5d15a..6b95f76886 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00099.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00099.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00099" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00189.html b/src/main/webapp/trustbound-00/BenchmarkTest00189.html index bdc046fc9d..0c5b27e690 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00189.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00189.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00250.html b/src/main/webapp/trustbound-00/BenchmarkTest00250.html index 1470d94195..65e85c4913 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00250.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00250.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00250.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00251.html b/src/main/webapp/trustbound-00/BenchmarkTest00251.html index c219304f51..e785f9a8f1 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00251.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00251.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00251.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00252.html b/src/main/webapp/trustbound-00/BenchmarkTest00252.html index 5088b3d031..28694f03fe 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00252.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00252.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00252.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00253.html b/src/main/webapp/trustbound-00/BenchmarkTest00253.html index 46422bf5c1..e9092c35d9 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00253.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00253.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00253.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00321.html b/src/main/webapp/trustbound-00/BenchmarkTest00321.html index 472dd6b2c3..06a86c4734 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00321.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00321.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00322.html b/src/main/webapp/trustbound-00/BenchmarkTest00322.html index c6ed23c796..b22c6fb5d7 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00322.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00322.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00323.html b/src/main/webapp/trustbound-00/BenchmarkTest00323.html index b5e8ec0f6e..4805fa051b 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00323.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00323.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00324.html b/src/main/webapp/trustbound-00/BenchmarkTest00324.html index c9002551af..eb7379bcbb 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00324.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00324.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00325.html b/src/main/webapp/trustbound-00/BenchmarkTest00325.html index aa26e04bf4..cd10d5adbd 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00325.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00325.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00326.html b/src/main/webapp/trustbound-00/BenchmarkTest00326.html index 506d763df5..8932954e08 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00326.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00326.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00327.html b/src/main/webapp/trustbound-00/BenchmarkTest00327.html index 4865056452..2b2ea40684 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00327.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00327.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00427.html b/src/main/webapp/trustbound-00/BenchmarkTest00427.html index 71c8a8ea95..f38bf0e5fb 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00427.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00427.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00508.html b/src/main/webapp/trustbound-00/BenchmarkTest00508.html index 3be929660a..c60b9eeb58 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00508.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00508.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00586.html b/src/main/webapp/trustbound-00/BenchmarkTest00586.html index 6f9d0b20cb..c72c558f78 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00586.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00586.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00586 input[id=BenchmarkTest00586]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00587.html b/src/main/webapp/trustbound-00/BenchmarkTest00587.html index cb959853ef..170c53c876 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00587.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00587.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00587 input[id=BenchmarkTest00587]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00588.html b/src/main/webapp/trustbound-00/BenchmarkTest00588.html index 579c380a98..c81cabf902 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00588.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00588.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00588 input[id=BenchmarkTest00588]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00669.html b/src/main/webapp/trustbound-00/BenchmarkTest00669.html index 91507c9ad1..d3e10432ca 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00669.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00669.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00670.html b/src/main/webapp/trustbound-00/BenchmarkTest00670.html index 33e20072d0..24b5ea321e 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00670.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00670.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00754.html b/src/main/webapp/trustbound-00/BenchmarkTest00754.html index 2d6ca67580..dad3eb52a5 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00754.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00754.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00755.html b/src/main/webapp/trustbound-00/BenchmarkTest00755.html index 211ce6bc64..eb10aebbd8 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00755.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00755.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00759.html b/src/main/webapp/trustbound-00/BenchmarkTest00759.html index e14ef5031e..bfad1eab78 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00759.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00759.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00833.html b/src/main/webapp/trustbound-00/BenchmarkTest00833.html index 6f3e1497e7..d56cce8678 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00833.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00833.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00834.html b/src/main/webapp/trustbound-00/BenchmarkTest00834.html index 6a5f5d737b..4c2ffa8fb5 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00834.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00834.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00835.html b/src/main/webapp/trustbound-00/BenchmarkTest00835.html index e642abf3a8..c3a4622e9b 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00835.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00835.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00836.html b/src/main/webapp/trustbound-00/BenchmarkTest00836.html index 7aa8d64bd7..80df36ed27 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00836.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00836.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00922.html b/src/main/webapp/trustbound-00/BenchmarkTest00922.html index 76a9a16793..b9f3668250 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00922.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00922.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00923.html b/src/main/webapp/trustbound-00/BenchmarkTest00923.html index 1b59a1e15a..4421372474 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00923.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00923.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00991.html b/src/main/webapp/trustbound-00/BenchmarkTest00991.html index 2dbebd6d6e..9876439a25 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00991.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00991.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00991" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00992.html b/src/main/webapp/trustbound-00/BenchmarkTest00992.html index 637958106b..92a13a3a6c 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00992.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00992.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00992" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00993.html b/src/main/webapp/trustbound-00/BenchmarkTest00993.html index e68442078e..36170ba256 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00993.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00993.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00993" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00994.html b/src/main/webapp/trustbound-00/BenchmarkTest00994.html index 8c652e012b..82c808054b 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00994.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00994.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00994" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest00995.html b/src/main/webapp/trustbound-00/BenchmarkTest00995.html index c2d001a89e..481f53f717 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest00995.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest00995.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00995" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01080.html b/src/main/webapp/trustbound-00/BenchmarkTest01080.html index f398768043..720cb01152 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01080.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01080.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01081.html b/src/main/webapp/trustbound-00/BenchmarkTest01081.html index 7e955bc56d..0fdf857034 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01081.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01081.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01082.html b/src/main/webapp/trustbound-00/BenchmarkTest01082.html index 3d810ae75e..e0766ced43 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01082.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01082.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01142.html b/src/main/webapp/trustbound-00/BenchmarkTest01142.html index 26b9aa29f0..b9cd628c2a 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01142.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01142.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01142.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01143.html b/src/main/webapp/trustbound-00/BenchmarkTest01143.html index 37f3c5d154..29921b851a 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01143.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01143.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01143.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01144.html b/src/main/webapp/trustbound-00/BenchmarkTest01144.html index 53bdfe9f7f..ca7e6ab707 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01144.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01144.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01144.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01145.html b/src/main/webapp/trustbound-00/BenchmarkTest01145.html index c5ca6643ac..0b114b20e0 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01145.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01145.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01145.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01146.html b/src/main/webapp/trustbound-00/BenchmarkTest01146.html index a6057f73cf..cac1794d27 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01146.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01146.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01146.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01203.html b/src/main/webapp/trustbound-00/BenchmarkTest01203.html index fc57188934..9bde998ec5 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01203.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01203.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01204.html b/src/main/webapp/trustbound-00/BenchmarkTest01204.html index 76fabd2c49..3fa03c3967 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01204.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01204.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01205.html b/src/main/webapp/trustbound-00/BenchmarkTest01205.html index e680c0ac5c..1118ee69f0 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01205.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01205.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01206.html b/src/main/webapp/trustbound-00/BenchmarkTest01206.html index d5f7e7d15f..50e3d52ee3 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01206.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01206.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01207.html b/src/main/webapp/trustbound-00/BenchmarkTest01207.html index c06c32e422..c843a22294 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01207.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01207.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01299.html b/src/main/webapp/trustbound-00/BenchmarkTest01299.html index b6ffa87d5f..ee506e4853 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01299.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01299.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01374.html b/src/main/webapp/trustbound-00/BenchmarkTest01374.html index 7a8daf5a5e..1cd0d46251 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01374.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01374.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01454.html b/src/main/webapp/trustbound-00/BenchmarkTest01454.html index 01a03d2357..3f6a2ef945 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01454.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01454.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01454 input[id=BenchmarkTest01454]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01455.html b/src/main/webapp/trustbound-00/BenchmarkTest01455.html index 36ee6a7a68..5737e458e0 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01455.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01455.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01455 input[id=BenchmarkTest01455]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01456.html b/src/main/webapp/trustbound-00/BenchmarkTest01456.html index 8ee148cb00..834c14cecf 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01456.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01456.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01456 input[id=BenchmarkTest01456]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01457.html b/src/main/webapp/trustbound-00/BenchmarkTest01457.html index 40c4c4d54d..1e584371b2 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01457.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01457.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01457 input[id=BenchmarkTest01457]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01458.html b/src/main/webapp/trustbound-00/BenchmarkTest01458.html index e1412f2b89..b18c75dca7 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01458.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01458.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01458 input[id=BenchmarkTest01458]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01546.html b/src/main/webapp/trustbound-00/BenchmarkTest01546.html index 73e16075c9..6070cfa624 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01546.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01546.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01547.html b/src/main/webapp/trustbound-00/BenchmarkTest01547.html index 71f2e63c0a..dee191fc93 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01547.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01547.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01551.html b/src/main/webapp/trustbound-00/BenchmarkTest01551.html index 7cf69d40c2..246ad403fc 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01551.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01551.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01616.html b/src/main/webapp/trustbound-00/BenchmarkTest01616.html index 836e4b3dea..4918dc9a1b 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01616.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01616.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-00/BenchmarkTest01617.html b/src/main/webapp/trustbound-00/BenchmarkTest01617.html index 1ed6e30f4e..9ea7d2eed4 100644 --- a/src/main/webapp/trustbound-00/BenchmarkTest01617.html +++ b/src/main/webapp/trustbound-00/BenchmarkTest01617.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01708.html b/src/main/webapp/trustbound-01/BenchmarkTest01708.html index 84b79baee5..dd065d3416 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01708.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01708.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01709.html b/src/main/webapp/trustbound-01/BenchmarkTest01709.html index 604bf4951a..4e27882ab9 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01709.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01709.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01710.html b/src/main/webapp/trustbound-01/BenchmarkTest01710.html index dc254da670..579e5209bb 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01710.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01710.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01711.html b/src/main/webapp/trustbound-01/BenchmarkTest01711.html index 6f6d4f986e..75ecbbe231 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01711.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01711.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01802.html b/src/main/webapp/trustbound-01/BenchmarkTest01802.html index 30a9419cb7..934e8f1ad2 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01802.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01802.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01872.html b/src/main/webapp/trustbound-01/BenchmarkTest01872.html index 90da18cf70..a2ecc38dbd 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01872.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01872.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01872" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01873.html b/src/main/webapp/trustbound-01/BenchmarkTest01873.html index d3aa80d9fd..36c81513f5 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01873.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01873.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01873" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01874.html b/src/main/webapp/trustbound-01/BenchmarkTest01874.html index ba499dee99..05d6bb34ce 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01874.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01874.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01874" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01875.html b/src/main/webapp/trustbound-01/BenchmarkTest01875.html index c708cfa637..2f2c3c7889 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01875.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01875.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01875" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01876.html b/src/main/webapp/trustbound-01/BenchmarkTest01876.html index 2abc3ca53a..e303ebf037 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01876.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01876.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01876" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01955.html b/src/main/webapp/trustbound-01/BenchmarkTest01955.html index 6e630f3cec..1788e6fdb9 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01955.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01955.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01956.html b/src/main/webapp/trustbound-01/BenchmarkTest01956.html index 49ed42ae0d..12345b1aef 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01956.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01956.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01957.html b/src/main/webapp/trustbound-01/BenchmarkTest01957.html index d9cb15981a..0e9c148a0c 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01957.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01957.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01958.html b/src/main/webapp/trustbound-01/BenchmarkTest01958.html index 88d3e5bd49..43de4ae270 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01958.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01958.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01959.html b/src/main/webapp/trustbound-01/BenchmarkTest01959.html index c38b27639c..a6c93cadc9 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01959.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01959.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-01/BenchmarkTest01960.html b/src/main/webapp/trustbound-01/BenchmarkTest01960.html index b11ebbaeef..eccd31fca1 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest01960.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest01960.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02015.html b/src/main/webapp/trustbound-01/BenchmarkTest02015.html index e6eabaa328..68b381eae0 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02015.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02015.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02015.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02016.html b/src/main/webapp/trustbound-01/BenchmarkTest02016.html index 74d9b24712..fbd61f0749 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02016.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02016.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02016.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02084.html b/src/main/webapp/trustbound-01/BenchmarkTest02084.html index 478ba5443d..9c5eb9ca62 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02084.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02084.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02085.html b/src/main/webapp/trustbound-01/BenchmarkTest02085.html index 197ea8ca5e..819199be20 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02085.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02085.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02086.html b/src/main/webapp/trustbound-01/BenchmarkTest02086.html index 1f3a9063a6..8a5c3b4857 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02086.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02086.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02168.html b/src/main/webapp/trustbound-01/BenchmarkTest02168.html index 14f2598d7e..0a932ee342 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02168.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02168.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02263.html b/src/main/webapp/trustbound-01/BenchmarkTest02263.html index 80b50cbf99..490640a0bc 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02263.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02263.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02352.html b/src/main/webapp/trustbound-01/BenchmarkTest02352.html index 1b1034aad6..ecdec80e5b 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02352.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02352.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02352 input[id=BenchmarkTest02352]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02447.html b/src/main/webapp/trustbound-01/BenchmarkTest02447.html index 8b67175226..3e48505d6a 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02447.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02447.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02448.html b/src/main/webapp/trustbound-01/BenchmarkTest02448.html index 951a76fb4b..e0b4bb46a6 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02448.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02448.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02523.html b/src/main/webapp/trustbound-01/BenchmarkTest02523.html index e1d6901d92..b5597cce1c 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02523.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02523.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02527.html b/src/main/webapp/trustbound-01/BenchmarkTest02527.html index f90bff3509..d030d83450 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02527.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02527.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02622.html b/src/main/webapp/trustbound-01/BenchmarkTest02622.html index 67328a7d6b..11970f920b 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02622.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02622.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02623.html b/src/main/webapp/trustbound-01/BenchmarkTest02623.html index e686b6266e..6543d5cb25 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02623.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02623.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02624.html b/src/main/webapp/trustbound-01/BenchmarkTest02624.html index 5ad1089169..3132f570a4 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02624.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02624.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02722.html b/src/main/webapp/trustbound-01/BenchmarkTest02722.html index 22c202a365..9e241856e7 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02722.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02722.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/trustbound-01/BenchmarkTest02723.html b/src/main/webapp/trustbound-01/BenchmarkTest02723.html index 0e213e080a..7316dfa91c 100644 --- a/src/main/webapp/trustbound-01/BenchmarkTest02723.html +++ b/src/main/webapp/trustbound-01/BenchmarkTest02723.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00010.html b/src/main/webapp/weakrand-00/BenchmarkTest00010.html index fe117b2f0e..c5d29f8286 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00010.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00010.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00010.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00042.html b/src/main/webapp/weakrand-00/BenchmarkTest00042.html index 4f226c5e82..22c823d3a7 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00042.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00042.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00066.html b/src/main/webapp/weakrand-00/BenchmarkTest00066.html index 32283ea5f6..ee9e1011ea 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00066.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00066.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00066" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00067.html b/src/main/webapp/weakrand-00/BenchmarkTest00067.html index 08ee49febb..443bcb357a 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00067.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00067.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00067" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00068.html b/src/main/webapp/weakrand-00/BenchmarkTest00068.html index f757834e79..7fcca30633 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00068.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00068.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00068" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00078.html b/src/main/webapp/weakrand-00/BenchmarkTest00078.html index 325b9b8800..1c8eb25c57 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00078.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00078.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00078" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00079.html b/src/main/webapp/weakrand-00/BenchmarkTest00079.html index 3d9e9353b0..c4439df22a 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00079.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00079.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00079" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00080.html b/src/main/webapp/weakrand-00/BenchmarkTest00080.html index 8e3874add4..1756a498e7 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00080.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00080.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00080" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00081.html b/src/main/webapp/weakrand-00/BenchmarkTest00081.html index 1db51ed99e..e55ed6672d 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00081.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00081.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00081" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00082.html b/src/main/webapp/weakrand-00/BenchmarkTest00082.html index 2436344973..1fbcbabbcf 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00082.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00082.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00082" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00083.html b/src/main/webapp/weakrand-00/BenchmarkTest00083.html index 2372f7fa97..adc3847491 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00083.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00083.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00083" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00084.html b/src/main/webapp/weakrand-00/BenchmarkTest00084.html index d27a1089a5..1f8c202e5c 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00084.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00084.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00084" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00085.html b/src/main/webapp/weakrand-00/BenchmarkTest00085.html index e47ed34c74..958ad2e68e 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00085.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00085.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00085" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00086.html b/src/main/webapp/weakrand-00/BenchmarkTest00086.html index 91b4ce7666..16a160deb2 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00086.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00086.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00086" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00094.html b/src/main/webapp/weakrand-00/BenchmarkTest00094.html index aef8380cb4..20063a118a 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00094.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00094.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00094" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00095.html b/src/main/webapp/weakrand-00/BenchmarkTest00095.html index 4f5730a8ec..44aff98ab6 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00095.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00095.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00095" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00096.html b/src/main/webapp/weakrand-00/BenchmarkTest00096.html index f5d6640cc3..c1925ef50a 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00096.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00096.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00096" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00140.html b/src/main/webapp/weakrand-00/BenchmarkTest00140.html index f26e82fbd0..625bc11adf 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00140.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00140.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00160.html b/src/main/webapp/weakrand-00/BenchmarkTest00160.html index e34004809c..7f5429dd88 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00160.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00160.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00161.html b/src/main/webapp/weakrand-00/BenchmarkTest00161.html index 41acdd03df..c9ee80bb65 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00161.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00161.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00162.html b/src/main/webapp/weakrand-00/BenchmarkTest00162.html index 59164f4241..6c5165a584 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00162.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00162.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00163.html b/src/main/webapp/weakrand-00/BenchmarkTest00163.html index 243a7b38e8..28ebf38cd3 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00163.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00163.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00164.html b/src/main/webapp/weakrand-00/BenchmarkTest00164.html index e35027c3ab..a7880ebe4b 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00164.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00164.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00165.html b/src/main/webapp/weakrand-00/BenchmarkTest00165.html index e65a44d2ae..cb6939bd44 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00165.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00165.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00166.html b/src/main/webapp/weakrand-00/BenchmarkTest00166.html index 4e085864ab..4aef3845e0 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00166.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00166.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00167.html b/src/main/webapp/weakrand-00/BenchmarkTest00167.html index 592ddf392e..f0907d6282 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00167.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00167.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00168.html b/src/main/webapp/weakrand-00/BenchmarkTest00168.html index e7e1ed10f9..3a10184f7a 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00168.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00168.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00178.html b/src/main/webapp/weakrand-00/BenchmarkTest00178.html index e3bb0c18d6..8b7ee131e4 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00178.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00178.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00179.html b/src/main/webapp/weakrand-00/BenchmarkTest00179.html index 7e0a3095b7..970b9880bb 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00179.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00179.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00180.html b/src/main/webapp/weakrand-00/BenchmarkTest00180.html index bc2571de9d..032e67c42a 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00180.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00180.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00181.html b/src/main/webapp/weakrand-00/BenchmarkTest00181.html index 3f1cebe29f..5d9263e6aa 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00181.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00181.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00182.html b/src/main/webapp/weakrand-00/BenchmarkTest00182.html index ff1467dec8..ae9f50eff7 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00182.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00182.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00183.html b/src/main/webapp/weakrand-00/BenchmarkTest00183.html index ab4c8e8ec0..b77d43936f 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00183.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00183.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00184.html b/src/main/webapp/weakrand-00/BenchmarkTest00184.html index 573b8cc7bf..7b03737f42 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00184.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00184.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00185.html b/src/main/webapp/weakrand-00/BenchmarkTest00185.html index f0b4494e2f..6a1d6c6fa9 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00185.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00185.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00186.html b/src/main/webapp/weakrand-00/BenchmarkTest00186.html index 141fb3a5a7..c7777541fe 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00186.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00186.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00187.html b/src/main/webapp/weakrand-00/BenchmarkTest00187.html index 3041bb4fd5..453b6290fa 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00187.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00187.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00188.html b/src/main/webapp/weakrand-00/BenchmarkTest00188.html index 486da17d17..a7cd4e9c8c 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00188.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00188.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00230.html b/src/main/webapp/weakrand-00/BenchmarkTest00230.html index 5e69f48d5a..3586c6b78c 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00230.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00230.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00230.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00231.html b/src/main/webapp/weakrand-00/BenchmarkTest00231.html index fe51a804c5..e6445b2e80 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00231.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00231.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00231.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00232.html b/src/main/webapp/weakrand-00/BenchmarkTest00232.html index 15e74ffb09..117c737715 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00232.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00232.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00232.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00233.html b/src/main/webapp/weakrand-00/BenchmarkTest00233.html index 8357bd6dd1..7fe55f80af 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00233.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00233.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00233.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00234.html b/src/main/webapp/weakrand-00/BenchmarkTest00234.html index e416e5ea60..4e08e2450e 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00234.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00234.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00234.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00235.html b/src/main/webapp/weakrand-00/BenchmarkTest00235.html index 1c92ac6c5f..27dd30c4c1 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00235.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00235.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00235.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00236.html b/src/main/webapp/weakrand-00/BenchmarkTest00236.html index b62777610d..20256a0d3a 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00236.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00236.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00236.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00237.html b/src/main/webapp/weakrand-00/BenchmarkTest00237.html index 64d0857730..fc6b82f842 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00237.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00237.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00237.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00238.html b/src/main/webapp/weakrand-00/BenchmarkTest00238.html index 3bdbf645d4..90438b65af 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00238.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00238.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00238.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00239.html b/src/main/webapp/weakrand-00/BenchmarkTest00239.html index 986f52766c..36f74aa4b0 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00239.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00239.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00239.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00240.html b/src/main/webapp/weakrand-00/BenchmarkTest00240.html index 33e7caec2d..97271d7aa8 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00240.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00240.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00240.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00243.html b/src/main/webapp/weakrand-00/BenchmarkTest00243.html index 15c65faf8b..bc5f2b41b8 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00243.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00243.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00243.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00244.html b/src/main/webapp/weakrand-00/BenchmarkTest00244.html index 3e340536f0..54f111a9fa 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00244.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00244.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00244.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00245.html b/src/main/webapp/weakrand-00/BenchmarkTest00245.html index b1d8a207b5..16670f63f4 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00245.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00245.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00245.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00246.html b/src/main/webapp/weakrand-00/BenchmarkTest00246.html index 356e2ae868..aac15bc44d 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00246.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00246.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00246.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00247.html b/src/main/webapp/weakrand-00/BenchmarkTest00247.html index ff8e66861c..4494fe31b7 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00247.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00247.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00247.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00248.html b/src/main/webapp/weakrand-00/BenchmarkTest00248.html index a6ba219272..b09770569f 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00248.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00248.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00248.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00249.html b/src/main/webapp/weakrand-00/BenchmarkTest00249.html index 61a6bc5e01..d79ca0be00 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00249.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00249.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest00249.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00296.html b/src/main/webapp/weakrand-00/BenchmarkTest00296.html index 0d3a31ebd3..a140dccac0 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00296.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00296.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00297.html b/src/main/webapp/weakrand-00/BenchmarkTest00297.html index fed1508e19..1f92433f1d 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00297.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00297.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00298.html b/src/main/webapp/weakrand-00/BenchmarkTest00298.html index c2dfa8db20..a14ba81201 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00298.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00298.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00299.html b/src/main/webapp/weakrand-00/BenchmarkTest00299.html index 42caa6b338..f18584afa6 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00299.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00299.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00312.html b/src/main/webapp/weakrand-00/BenchmarkTest00312.html index e51af01ec7..96e84f8d1e 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00312.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00312.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00313.html b/src/main/webapp/weakrand-00/BenchmarkTest00313.html index 28e5f928b9..759c07604e 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00313.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00313.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00314.html b/src/main/webapp/weakrand-00/BenchmarkTest00314.html index 50ac75cc29..90b4da6b71 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00314.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00314.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00315.html b/src/main/webapp/weakrand-00/BenchmarkTest00315.html index aa164d6561..08a731e10c 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00315.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00315.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00316.html b/src/main/webapp/weakrand-00/BenchmarkTest00316.html index afbe821c34..e66d76b668 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00316.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00316.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00317.html b/src/main/webapp/weakrand-00/BenchmarkTest00317.html index 4ca1218ceb..a6c13fb50c 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00317.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00317.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00318.html b/src/main/webapp/weakrand-00/BenchmarkTest00318.html index 9d36917178..1b6cdb76ec 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00318.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00318.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00319.html b/src/main/webapp/weakrand-00/BenchmarkTest00319.html index f508a20131..f1676cfca5 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00319.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00319.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00320.html b/src/main/webapp/weakrand-00/BenchmarkTest00320.html index 60d9061e17..f6f740b8b1 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00320.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00320.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00368.html b/src/main/webapp/weakrand-00/BenchmarkTest00368.html index ab17b737ee..ccf498cf9f 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00368.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00368.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00397.html b/src/main/webapp/weakrand-00/BenchmarkTest00397.html index bb8dbef325..88b6ab8644 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00397.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00397.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00398.html b/src/main/webapp/weakrand-00/BenchmarkTest00398.html index c3783783ba..cbd42cbcbe 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00398.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00398.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-00/BenchmarkTest00402.html b/src/main/webapp/weakrand-00/BenchmarkTest00402.html index 21a66a4ab6..65c1ca4cbf 100644 --- a/src/main/webapp/weakrand-00/BenchmarkTest00402.html +++ b/src/main/webapp/weakrand-00/BenchmarkTest00402.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00413.html b/src/main/webapp/weakrand-01/BenchmarkTest00413.html index d5ffab4c87..f02a72c007 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00413.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00413.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00417.html b/src/main/webapp/weakrand-01/BenchmarkTest00417.html index 0ff4f0b862..d646f70c6a 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00417.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00417.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00418.html b/src/main/webapp/weakrand-01/BenchmarkTest00418.html index e0ed5d1706..0f1432ebd6 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00418.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00418.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00422.html b/src/main/webapp/weakrand-01/BenchmarkTest00422.html index 0bddb3202a..db98bfd309 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00422.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00422.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00423.html b/src/main/webapp/weakrand-01/BenchmarkTest00423.html index f9dadca9b8..4eb6cfbea9 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00423.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00423.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00482.html b/src/main/webapp/weakrand-01/BenchmarkTest00482.html index 3ebcddb0f9..e65871d734 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00482.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00482.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00483.html b/src/main/webapp/weakrand-01/BenchmarkTest00483.html index 7049be58c1..21a215794a 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00483.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00483.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00487.html b/src/main/webapp/weakrand-01/BenchmarkTest00487.html index f122a4d957..6c3f354e95 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00487.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00487.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00488.html b/src/main/webapp/weakrand-01/BenchmarkTest00488.html index 85a33db337..20a42a627d 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00488.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00488.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00502.html b/src/main/webapp/weakrand-01/BenchmarkTest00502.html index b59b996252..404e054038 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00502.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00502.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00503.html b/src/main/webapp/weakrand-01/BenchmarkTest00503.html index 6adb21eb77..a89168d416 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00503.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00503.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00507.html b/src/main/webapp/weakrand-01/BenchmarkTest00507.html index d1ebbcc138..a24c39a390 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00507.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00507.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00560.html b/src/main/webapp/weakrand-01/BenchmarkTest00560.html index 59627e06fc..baff7845fb 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00560.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00560.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00560 input[id=BenchmarkTest00560]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00561.html b/src/main/webapp/weakrand-01/BenchmarkTest00561.html index 5e53b3d284..1e47a3267d 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00561.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00561.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00561 input[id=BenchmarkTest00561]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00562.html b/src/main/webapp/weakrand-01/BenchmarkTest00562.html index 769079e744..524eb7369f 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00562.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00562.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00562 input[id=BenchmarkTest00562]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00563.html b/src/main/webapp/weakrand-01/BenchmarkTest00563.html index 8be4069aa1..bacfa9892e 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00563.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00563.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00563 input[id=BenchmarkTest00563]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00564.html b/src/main/webapp/weakrand-01/BenchmarkTest00564.html index 66dfb2e7d0..d927f9fcbd 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00564.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00564.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00564 input[id=BenchmarkTest00564]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00577.html b/src/main/webapp/weakrand-01/BenchmarkTest00577.html index c8cf67a756..630509c304 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00577.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00577.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00577 input[id=BenchmarkTest00577]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00578.html b/src/main/webapp/weakrand-01/BenchmarkTest00578.html index 5b8b10dd4f..2d6ad6ea15 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00578.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00578.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00578 input[id=BenchmarkTest00578]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00579.html b/src/main/webapp/weakrand-01/BenchmarkTest00579.html index 935ccd71a0..67a28320f8 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00579.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00579.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00579 input[id=BenchmarkTest00579]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00580.html b/src/main/webapp/weakrand-01/BenchmarkTest00580.html index 01f4f83e5e..24791ed4f6 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00580.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00580.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00580 input[id=BenchmarkTest00580]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00581.html b/src/main/webapp/weakrand-01/BenchmarkTest00581.html index bffed8b5db..c5f8cfd6cc 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00581.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00581.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00581 input[id=BenchmarkTest00581]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00582.html b/src/main/webapp/weakrand-01/BenchmarkTest00582.html index 64675df90e..46fc4600b0 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00582.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00582.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00582 input[id=BenchmarkTest00582]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00583.html b/src/main/webapp/weakrand-01/BenchmarkTest00583.html index 3a885f205d..0d3f15156f 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00583.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00583.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00583 input[id=BenchmarkTest00583]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00584.html b/src/main/webapp/weakrand-01/BenchmarkTest00584.html index e9532189d6..00346e41e7 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00584.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00584.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00584 input[id=BenchmarkTest00584]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00585.html b/src/main/webapp/weakrand-01/BenchmarkTest00585.html index d7292d37c2..435bb95d48 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00585.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00585.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00585 input[id=BenchmarkTest00585]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00654.html b/src/main/webapp/weakrand-01/BenchmarkTest00654.html index 0b626aa77a..3437585dc9 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00654.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00654.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00660.html b/src/main/webapp/weakrand-01/BenchmarkTest00660.html index ef6c3d4495..6653545a64 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00660.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00660.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00664.html b/src/main/webapp/weakrand-01/BenchmarkTest00664.html index e112fca287..d01229ca7a 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00664.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00664.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00665.html b/src/main/webapp/weakrand-01/BenchmarkTest00665.html index f8e01283c4..c9d310c827 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00665.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00665.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00734.html b/src/main/webapp/weakrand-01/BenchmarkTest00734.html index 802bc51c0c..bcb26a2246 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00734.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00734.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00735.html b/src/main/webapp/weakrand-01/BenchmarkTest00735.html index ce9ad80a1d..e84ab84126 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00735.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00735.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00744.html b/src/main/webapp/weakrand-01/BenchmarkTest00744.html index f74ba1fa8f..fbef65311f 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00744.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00744.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00745.html b/src/main/webapp/weakrand-01/BenchmarkTest00745.html index 20dbe66a3f..1a9646577b 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00745.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00745.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00749.html b/src/main/webapp/weakrand-01/BenchmarkTest00749.html index 793ba43971..520e17b0bc 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00749.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00749.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00750.html b/src/main/webapp/weakrand-01/BenchmarkTest00750.html index 7e622ce4b6..416ad01d60 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00750.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00750.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00817.html b/src/main/webapp/weakrand-01/BenchmarkTest00817.html index 1be9233a04..d357594c86 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00817.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00817.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00818.html b/src/main/webapp/weakrand-01/BenchmarkTest00818.html index 55a1542a83..a995e1d4d4 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00818.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00818.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00819.html b/src/main/webapp/weakrand-01/BenchmarkTest00819.html index 3c19674ec5..58893e57f8 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00819.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00819.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00828.html b/src/main/webapp/weakrand-01/BenchmarkTest00828.html index c20748a329..eae99a3d35 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00828.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00828.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00829.html b/src/main/webapp/weakrand-01/BenchmarkTest00829.html index 8b897cd7a6..258e3fd9b4 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00829.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00829.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00830.html b/src/main/webapp/weakrand-01/BenchmarkTest00830.html index 1f543d0792..bebd377a3e 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00830.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00830.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00831.html b/src/main/webapp/weakrand-01/BenchmarkTest00831.html index 4cae17ecd9..773a5e6876 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00831.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00831.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00832.html b/src/main/webapp/weakrand-01/BenchmarkTest00832.html index de8e3b3fec..bf80cd8b27 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00832.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00832.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00898.html b/src/main/webapp/weakrand-01/BenchmarkTest00898.html index 251111e1eb..e3eb4d37f2 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00898.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00898.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-01/BenchmarkTest00902.html b/src/main/webapp/weakrand-01/BenchmarkTest00902.html index 87f7d2ed05..d86c0f6f00 100644 --- a/src/main/webapp/weakrand-01/BenchmarkTest00902.html +++ b/src/main/webapp/weakrand-01/BenchmarkTest00902.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00912.html b/src/main/webapp/weakrand-02/BenchmarkTest00912.html index 4cbfd550c0..9292eeb2c5 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00912.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00912.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00913.html b/src/main/webapp/weakrand-02/BenchmarkTest00913.html index 03d2477712..1d4afa0e9d 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00913.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00913.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00917.html b/src/main/webapp/weakrand-02/BenchmarkTest00917.html index c73d451db2..3a9b6660ed 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00917.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00917.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00918.html b/src/main/webapp/weakrand-02/BenchmarkTest00918.html index 32650dcdba..7c31b01b6c 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00918.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00918.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00960.html b/src/main/webapp/weakrand-02/BenchmarkTest00960.html index aa4ce2caa7..bd0f631de6 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00960.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00960.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00960" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00971.html b/src/main/webapp/weakrand-02/BenchmarkTest00971.html index 8fbc102353..1037b46b1a 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00971.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00971.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00971" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00972.html b/src/main/webapp/weakrand-02/BenchmarkTest00972.html index d26d74263a..ac3041c29e 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00972.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00972.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00972" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00973.html b/src/main/webapp/weakrand-02/BenchmarkTest00973.html index f3f813017e..12331aab0b 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00973.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00973.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00973" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00974.html b/src/main/webapp/weakrand-02/BenchmarkTest00974.html index fe7b2b7f33..178c35ac51 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00974.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00974.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00974" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00975.html b/src/main/webapp/weakrand-02/BenchmarkTest00975.html index c92f14caeb..8adfab4ba4 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00975.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00975.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00975" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00976.html b/src/main/webapp/weakrand-02/BenchmarkTest00976.html index 40fe8440c5..73ba86dfdd 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00976.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00976.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00976" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00984.html b/src/main/webapp/weakrand-02/BenchmarkTest00984.html index 3ba657f523..fa655a363a 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00984.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00984.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00984" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00985.html b/src/main/webapp/weakrand-02/BenchmarkTest00985.html index 7f713ba525..41303839e8 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00985.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00985.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00985" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00986.html b/src/main/webapp/weakrand-02/BenchmarkTest00986.html index be6b408bad..9c192f1c35 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00986.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00986.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00986" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00987.html b/src/main/webapp/weakrand-02/BenchmarkTest00987.html index 5ae24ad7dd..1c5105b029 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00987.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00987.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00987" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00988.html b/src/main/webapp/weakrand-02/BenchmarkTest00988.html index c19ab64537..2973b9dafc 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00988.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00988.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00988" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00989.html b/src/main/webapp/weakrand-02/BenchmarkTest00989.html index 23c8f1cfcb..1318e1d1bf 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00989.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00989.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00989" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest00990.html b/src/main/webapp/weakrand-02/BenchmarkTest00990.html index a6be99909a..0e558fac9c 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest00990.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest00990.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00990" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01058.html b/src/main/webapp/weakrand-02/BenchmarkTest01058.html index 6b1bb9c189..be8197574b 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01058.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01058.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01059.html b/src/main/webapp/weakrand-02/BenchmarkTest01059.html index eab776adab..d9d17ab233 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01059.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01059.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01060.html b/src/main/webapp/weakrand-02/BenchmarkTest01060.html index 8abeade03f..1273bd8a32 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01060.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01060.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01069.html b/src/main/webapp/weakrand-02/BenchmarkTest01069.html index 836008e3f7..f3ea0a9768 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01069.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01069.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01070.html b/src/main/webapp/weakrand-02/BenchmarkTest01070.html index 153731ab6a..a237745c5c 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01070.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01070.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01071.html b/src/main/webapp/weakrand-02/BenchmarkTest01071.html index 13bb33dc9e..e9ffe76d55 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01071.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01071.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01072.html b/src/main/webapp/weakrand-02/BenchmarkTest01072.html index 10faec47b5..7a15f05836 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01072.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01072.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01073.html b/src/main/webapp/weakrand-02/BenchmarkTest01073.html index aedb216a1e..cce8ffc82f 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01073.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01073.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01074.html b/src/main/webapp/weakrand-02/BenchmarkTest01074.html index 0a7f2c9fe7..9427b1705d 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01074.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01074.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01075.html b/src/main/webapp/weakrand-02/BenchmarkTest01075.html index 8b71b4b840..0865d009a9 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01075.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01075.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01076.html b/src/main/webapp/weakrand-02/BenchmarkTest01076.html index e967cd19ec..2038076325 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01076.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01076.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01077.html b/src/main/webapp/weakrand-02/BenchmarkTest01077.html index 8775952dda..9f9fc0eb6a 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01077.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01077.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01078.html b/src/main/webapp/weakrand-02/BenchmarkTest01078.html index 0a059338eb..236d1784b3 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01078.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01078.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01079.html b/src/main/webapp/weakrand-02/BenchmarkTest01079.html index de70194483..87a1a36a3b 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01079.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01079.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01119.html b/src/main/webapp/weakrand-02/BenchmarkTest01119.html index a99733795d..ef79a502c6 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01119.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01119.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01119.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01127.html b/src/main/webapp/weakrand-02/BenchmarkTest01127.html index 34a9a65430..02b61041f7 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01127.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01127.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01127.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01128.html b/src/main/webapp/weakrand-02/BenchmarkTest01128.html index 064c085b38..0bb2528899 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01128.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01128.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01128.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01129.html b/src/main/webapp/weakrand-02/BenchmarkTest01129.html index d643f6752b..92b482c1eb 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01129.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01129.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01129.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01130.html b/src/main/webapp/weakrand-02/BenchmarkTest01130.html index e34075df21..4963350a29 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01130.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01130.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01130.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01131.html b/src/main/webapp/weakrand-02/BenchmarkTest01131.html index 9753609e96..5efd0553b2 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01131.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01131.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01131.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01132.html b/src/main/webapp/weakrand-02/BenchmarkTest01132.html index fea4992cd5..d2efba595e 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01132.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01132.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01132.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01133.html b/src/main/webapp/weakrand-02/BenchmarkTest01133.html index 5ff643d3f9..31aca5ce39 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01133.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01133.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01133.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01135.html b/src/main/webapp/weakrand-02/BenchmarkTest01135.html index 2715ba83e2..fa64c11ad7 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01135.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01135.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01135.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01136.html b/src/main/webapp/weakrand-02/BenchmarkTest01136.html index 9576665f43..9bcdd92c13 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01136.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01136.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01136.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01137.html b/src/main/webapp/weakrand-02/BenchmarkTest01137.html index 00709afa27..094c6552ca 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01137.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01137.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01137.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01138.html b/src/main/webapp/weakrand-02/BenchmarkTest01138.html index 3552d35d2c..f43d460a0a 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01138.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01138.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01138.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01139.html b/src/main/webapp/weakrand-02/BenchmarkTest01139.html index 3297324ff2..0b9888fc75 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01139.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01139.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01139.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01140.html b/src/main/webapp/weakrand-02/BenchmarkTest01140.html index 3fc66e9d93..f8c0e98ac7 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01140.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01140.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01140.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01141.html b/src/main/webapp/weakrand-02/BenchmarkTest01141.html index b930e65b98..48efa1dbd9 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01141.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01141.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01141.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01162.html b/src/main/webapp/weakrand-02/BenchmarkTest01162.html index 9ca6488acd..fd9a2d270b 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01162.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01162.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01163.html b/src/main/webapp/weakrand-02/BenchmarkTest01163.html index e9a136bd84..a332814690 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01163.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01163.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01183.html b/src/main/webapp/weakrand-02/BenchmarkTest01183.html index 0e148fb3e9..2814c9dbd3 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01183.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01183.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01184.html b/src/main/webapp/weakrand-02/BenchmarkTest01184.html index 46c1d48eae..2cce295217 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01184.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01184.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01195.html b/src/main/webapp/weakrand-02/BenchmarkTest01195.html index 2d4d570a0b..4e21165308 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01195.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01195.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01196.html b/src/main/webapp/weakrand-02/BenchmarkTest01196.html index a5df21eded..d600b4c58d 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01196.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01196.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01197.html b/src/main/webapp/weakrand-02/BenchmarkTest01197.html index 247d265ff1..d93cf20e6b 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01197.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01197.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01198.html b/src/main/webapp/weakrand-02/BenchmarkTest01198.html index c66d8d9064..20c9407804 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01198.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01198.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01199.html b/src/main/webapp/weakrand-02/BenchmarkTest01199.html index 5d44fd2ccf..4deeeda6b8 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01199.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01199.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01200.html b/src/main/webapp/weakrand-02/BenchmarkTest01200.html index ac4088cb5d..e19e4b3d28 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01200.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01200.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01201.html b/src/main/webapp/weakrand-02/BenchmarkTest01201.html index 461eb4b26e..3135c82dea 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01201.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01201.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01202.html b/src/main/webapp/weakrand-02/BenchmarkTest01202.html index 6b6d7289f0..4bb8a0d035 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01202.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01202.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01273.html b/src/main/webapp/weakrand-02/BenchmarkTest01273.html index 3290656621..ff97557df2 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01273.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01273.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01274.html b/src/main/webapp/weakrand-02/BenchmarkTest01274.html index af108a1677..158c0092fa 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01274.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01274.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01278.html b/src/main/webapp/weakrand-02/BenchmarkTest01278.html index 34d3a3dddb..eca4e18c86 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01278.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01278.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01279.html b/src/main/webapp/weakrand-02/BenchmarkTest01279.html index 262128c6d5..4ad8772903 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01279.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01279.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01293.html b/src/main/webapp/weakrand-02/BenchmarkTest01293.html index 9fedc8f55d..00f5470a86 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01293.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01293.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-02/BenchmarkTest01294.html b/src/main/webapp/weakrand-02/BenchmarkTest01294.html index 1e96f882dd..21e954b69a 100644 --- a/src/main/webapp/weakrand-02/BenchmarkTest01294.html +++ b/src/main/webapp/weakrand-02/BenchmarkTest01294.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01298.html b/src/main/webapp/weakrand-03/BenchmarkTest01298.html index d7132b3935..6bcdebc796 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01298.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01298.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01354.html b/src/main/webapp/weakrand-03/BenchmarkTest01354.html index 40ae9bd63a..386be4b091 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01354.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01354.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01358.html b/src/main/webapp/weakrand-03/BenchmarkTest01358.html index 9f778de8ea..6ad47cee6d 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01358.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01358.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01368.html b/src/main/webapp/weakrand-03/BenchmarkTest01368.html index 34825818cf..25521e233e 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01368.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01368.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01369.html b/src/main/webapp/weakrand-03/BenchmarkTest01369.html index 60a5469c3a..fa8c73f6af 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01369.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01369.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01373.html b/src/main/webapp/weakrand-03/BenchmarkTest01373.html index 7d0ed3e8b6..46e89b44b4 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01373.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01373.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01431.html b/src/main/webapp/weakrand-03/BenchmarkTest01431.html index 8bb86b2de1..e078557d3c 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01431.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01431.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01431 input[id=BenchmarkTest01431]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01432.html b/src/main/webapp/weakrand-03/BenchmarkTest01432.html index 2018f33cc1..f1a7833167 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01432.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01432.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01432 input[id=BenchmarkTest01432]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01433.html b/src/main/webapp/weakrand-03/BenchmarkTest01433.html index 13752f4162..35649b8de5 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01433.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01433.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01433 input[id=BenchmarkTest01433]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01434.html b/src/main/webapp/weakrand-03/BenchmarkTest01434.html index 6fc8d57cb0..0e98a3c206 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01434.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01434.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01434 input[id=BenchmarkTest01434]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01435.html b/src/main/webapp/weakrand-03/BenchmarkTest01435.html index bb5e1c5791..342f137c65 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01435.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01435.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01435 input[id=BenchmarkTest01435]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01447.html b/src/main/webapp/weakrand-03/BenchmarkTest01447.html index 5853d31397..a63156a142 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01447.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01447.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01447 input[id=BenchmarkTest01447]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01448.html b/src/main/webapp/weakrand-03/BenchmarkTest01448.html index ce57b285ea..ae69abeb43 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01448.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01448.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01448 input[id=BenchmarkTest01448]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01449.html b/src/main/webapp/weakrand-03/BenchmarkTest01449.html index b45b9fa704..2b80b58a86 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01449.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01449.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01449 input[id=BenchmarkTest01449]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01450.html b/src/main/webapp/weakrand-03/BenchmarkTest01450.html index 2c5f13dbc8..13b5b0f56c 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01450.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01450.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01450 input[id=BenchmarkTest01450]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01451.html b/src/main/webapp/weakrand-03/BenchmarkTest01451.html index 8b93d41184..72963cf101 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01451.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01451.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01451 input[id=BenchmarkTest01451]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01452.html b/src/main/webapp/weakrand-03/BenchmarkTest01452.html index 7d9bc0e523..96d2857b67 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01452.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01452.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01452 input[id=BenchmarkTest01452]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01453.html b/src/main/webapp/weakrand-03/BenchmarkTest01453.html index 19e268c744..c804c92fb3 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01453.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01453.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01453 input[id=BenchmarkTest01453]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01502.html b/src/main/webapp/weakrand-03/BenchmarkTest01502.html index b62134d3b6..83b8ab0d80 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01502.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01502.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01536.html b/src/main/webapp/weakrand-03/BenchmarkTest01536.html index b48590e28e..e89c12dfb4 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01536.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01536.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01537.html b/src/main/webapp/weakrand-03/BenchmarkTest01537.html index fe9bc51397..c6df1cb871 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01537.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01537.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01541.html b/src/main/webapp/weakrand-03/BenchmarkTest01541.html index dea5d68c63..0b35ace635 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01541.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01541.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01542.html b/src/main/webapp/weakrand-03/BenchmarkTest01542.html index 70b31b4cbf..f3b90ed26a 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01542.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01542.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01602.html b/src/main/webapp/weakrand-03/BenchmarkTest01602.html index 067bc3d70a..176ae47087 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01602.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01602.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01611.html b/src/main/webapp/weakrand-03/BenchmarkTest01611.html index fe19ccdb69..da0ad755ab 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01611.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01611.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01612.html b/src/main/webapp/weakrand-03/BenchmarkTest01612.html index 9eb58fc8f3..11be58080c 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01612.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01612.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01648.html b/src/main/webapp/weakrand-03/BenchmarkTest01648.html index cde2ffd246..08f5f1f9af 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01648.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01648.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01675.html b/src/main/webapp/weakrand-03/BenchmarkTest01675.html index 99479ba408..1bd584bd07 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01675.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01675.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01676.html b/src/main/webapp/weakrand-03/BenchmarkTest01676.html index 4b4c9da023..fc7ef7dc78 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01676.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01676.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01677.html b/src/main/webapp/weakrand-03/BenchmarkTest01677.html index c836152204..c7be321fcd 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01677.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01677.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01678.html b/src/main/webapp/weakrand-03/BenchmarkTest01678.html index e0bbe80d9b..d633e7404f 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01678.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01678.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01679.html b/src/main/webapp/weakrand-03/BenchmarkTest01679.html index 8531df721e..b3401e6781 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01679.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01679.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01680.html b/src/main/webapp/weakrand-03/BenchmarkTest01680.html index 840dfa9d0f..c968302311 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01680.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01680.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01681.html b/src/main/webapp/weakrand-03/BenchmarkTest01681.html index f0dedabce0..03932f8b1d 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01681.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01681.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01694.html b/src/main/webapp/weakrand-03/BenchmarkTest01694.html index 5b7ca01592..a8276f268f 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01694.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01694.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01695.html b/src/main/webapp/weakrand-03/BenchmarkTest01695.html index 55b4889973..d4d8daddaf 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01695.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01695.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01696.html b/src/main/webapp/weakrand-03/BenchmarkTest01696.html index f79ca0bcb6..74413b25a9 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01696.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01696.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01697.html b/src/main/webapp/weakrand-03/BenchmarkTest01697.html index 6c774ca0f0..68dc797769 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01697.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01697.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01698.html b/src/main/webapp/weakrand-03/BenchmarkTest01698.html index 3af684e880..104b8fc8e5 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01698.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01698.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01699.html b/src/main/webapp/weakrand-03/BenchmarkTest01699.html index e6dee32415..2c45ac6cd0 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01699.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01699.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01700.html b/src/main/webapp/weakrand-03/BenchmarkTest01700.html index 9edc662a7f..09d0933089 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01700.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01700.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01701.html b/src/main/webapp/weakrand-03/BenchmarkTest01701.html index 2e09836aaa..5e2843a405 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01701.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01701.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01702.html b/src/main/webapp/weakrand-03/BenchmarkTest01702.html index 640e4213a6..1df86c9247 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01702.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01702.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01703.html b/src/main/webapp/weakrand-03/BenchmarkTest01703.html index 94e2f8ae6e..871964741c 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01703.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01703.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01704.html b/src/main/webapp/weakrand-03/BenchmarkTest01704.html index 7eb6cf989f..84b29b3dff 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01704.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01704.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01705.html b/src/main/webapp/weakrand-03/BenchmarkTest01705.html index 92a233bbfc..d0aa2f3513 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01705.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01705.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01706.html b/src/main/webapp/weakrand-03/BenchmarkTest01706.html index eb3d60b44b..d9518a09b7 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01706.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01706.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01707.html b/src/main/webapp/weakrand-03/BenchmarkTest01707.html index bdde860a94..de1aa412f0 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01707.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01707.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01781.html b/src/main/webapp/weakrand-03/BenchmarkTest01781.html index 7552085046..b6da284d35 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01781.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01781.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01782.html b/src/main/webapp/weakrand-03/BenchmarkTest01782.html index d8d7f69d22..4f122b177d 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01782.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01782.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01786.html b/src/main/webapp/weakrand-03/BenchmarkTest01786.html index 2f8aa740ae..ed3ad6f4c9 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01786.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01786.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-03/BenchmarkTest01787.html b/src/main/webapp/weakrand-03/BenchmarkTest01787.html index ac24ebced7..b847c754ea 100644 --- a/src/main/webapp/weakrand-03/BenchmarkTest01787.html +++ b/src/main/webapp/weakrand-03/BenchmarkTest01787.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01797.html b/src/main/webapp/weakrand-04/BenchmarkTest01797.html index 5e7f61fc41..5c73aee882 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01797.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01797.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01801.html b/src/main/webapp/weakrand-04/BenchmarkTest01801.html index 9d71839b7e..6f07aff901 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01801.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01801.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01842.html b/src/main/webapp/weakrand-04/BenchmarkTest01842.html index facdefb74b..91e1947ed2 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01842.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01842.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01842" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01843.html b/src/main/webapp/weakrand-04/BenchmarkTest01843.html index fea49f735d..18d5adc872 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01843.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01843.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01843" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01853.html b/src/main/webapp/weakrand-04/BenchmarkTest01853.html index 73864c29ba..155afc9ac8 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01853.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01853.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01853" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01854.html b/src/main/webapp/weakrand-04/BenchmarkTest01854.html index 76431f3e4e..10e425198e 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01854.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01854.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01854" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01855.html b/src/main/webapp/weakrand-04/BenchmarkTest01855.html index 2888b331ec..b33bd613f7 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01855.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01855.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01855" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01856.html b/src/main/webapp/weakrand-04/BenchmarkTest01856.html index aa3c583b90..fa188d6ca5 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01856.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01856.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01856" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01857.html b/src/main/webapp/weakrand-04/BenchmarkTest01857.html index 09db91da84..44d421d383 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01857.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01857.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01857" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01858.html b/src/main/webapp/weakrand-04/BenchmarkTest01858.html index a00da38d7e..bb07db2b8f 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01858.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01858.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01858" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01859.html b/src/main/webapp/weakrand-04/BenchmarkTest01859.html index 6f66a13275..5451eae7f8 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01859.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01859.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01859" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01860.html b/src/main/webapp/weakrand-04/BenchmarkTest01860.html index b63f9c222d..3a18cb4ba7 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01860.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01860.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01860" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01866.html b/src/main/webapp/weakrand-04/BenchmarkTest01866.html index 1fa6096d1b..ad8a5654a1 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01866.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01866.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01866" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01867.html b/src/main/webapp/weakrand-04/BenchmarkTest01867.html index b26dfe9e6d..310dd3dd00 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01867.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01867.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01867" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01868.html b/src/main/webapp/weakrand-04/BenchmarkTest01868.html index e3e9b1a480..94d6f9be8e 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01868.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01868.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01868" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01869.html b/src/main/webapp/weakrand-04/BenchmarkTest01869.html index e3a78a07ee..f360973e6f 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01869.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01869.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01869" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01870.html b/src/main/webapp/weakrand-04/BenchmarkTest01870.html index 28ba8ac550..9ea477f42f 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01870.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01870.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01870" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01871.html b/src/main/webapp/weakrand-04/BenchmarkTest01871.html index eb6a5723c9..6ed45fbb21 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01871.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01871.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01871" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01910.html b/src/main/webapp/weakrand-04/BenchmarkTest01910.html index ef6634e479..76886dfae1 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01910.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01910.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01930.html b/src/main/webapp/weakrand-04/BenchmarkTest01930.html index a4b44326bb..e5a7a51e51 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01930.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01930.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01931.html b/src/main/webapp/weakrand-04/BenchmarkTest01931.html index 401fe1ccf3..ce9414cdc2 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01931.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01931.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01932.html b/src/main/webapp/weakrand-04/BenchmarkTest01932.html index 02ccde40a6..b7e8349ef5 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01932.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01932.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01933.html b/src/main/webapp/weakrand-04/BenchmarkTest01933.html index cf8c5d6210..b2e1158bdd 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01933.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01933.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01934.html b/src/main/webapp/weakrand-04/BenchmarkTest01934.html index a47dab1663..d446604313 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01934.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01934.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01945.html b/src/main/webapp/weakrand-04/BenchmarkTest01945.html index 7085cc639d..4ea326e7a1 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01945.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01945.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01946.html b/src/main/webapp/weakrand-04/BenchmarkTest01946.html index 1b1778ccfb..59312a013e 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01946.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01946.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01947.html b/src/main/webapp/weakrand-04/BenchmarkTest01947.html index 6816da2767..70127baac4 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01947.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01947.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01948.html b/src/main/webapp/weakrand-04/BenchmarkTest01948.html index c26af533e4..d1e9973ac6 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01948.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01948.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01949.html b/src/main/webapp/weakrand-04/BenchmarkTest01949.html index ce99ac613f..f82136002d 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01949.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01949.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01950.html b/src/main/webapp/weakrand-04/BenchmarkTest01950.html index a298dc1d49..46f6103b27 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01950.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01950.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01951.html b/src/main/webapp/weakrand-04/BenchmarkTest01951.html index b18ca130c4..ad478eae8a 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01951.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01951.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01952.html b/src/main/webapp/weakrand-04/BenchmarkTest01952.html index 6ec0ac889b..63a3c384cd 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01952.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01952.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01953.html b/src/main/webapp/weakrand-04/BenchmarkTest01953.html index f8b14a8027..53ee706fd5 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01953.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01953.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01954.html b/src/main/webapp/weakrand-04/BenchmarkTest01954.html index b0a3833f5f..793c55467e 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01954.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01954.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01992.html b/src/main/webapp/weakrand-04/BenchmarkTest01992.html index 60ba7cf983..72442013fa 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01992.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01992.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01992.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest01999.html b/src/main/webapp/weakrand-04/BenchmarkTest01999.html index 39d29d8bbd..f1062678dc 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest01999.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest01999.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest01999.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02000.html b/src/main/webapp/weakrand-04/BenchmarkTest02000.html index ac4d0e6c19..276e1690c5 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02000.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02000.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02000.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02001.html b/src/main/webapp/weakrand-04/BenchmarkTest02001.html index 9e3ad37561..4df8cbd3d7 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02001.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02001.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02001.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02002.html b/src/main/webapp/weakrand-04/BenchmarkTest02002.html index f419ead9ca..d3a1686660 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02002.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02002.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02002.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02003.html b/src/main/webapp/weakrand-04/BenchmarkTest02003.html index f643bca9f0..7ad46520c4 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02003.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02003.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02003.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02004.html b/src/main/webapp/weakrand-04/BenchmarkTest02004.html index 51de0e8759..83fdbb31e3 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02004.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02004.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02004.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02007.html b/src/main/webapp/weakrand-04/BenchmarkTest02007.html index 7e315572fa..08599701bf 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02007.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02007.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02007.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02008.html b/src/main/webapp/weakrand-04/BenchmarkTest02008.html index e7b4ae3983..009bde8084 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02008.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02008.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02008.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02009.html b/src/main/webapp/weakrand-04/BenchmarkTest02009.html index 650c068af1..9a5d3c5498 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02009.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02009.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02009.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02010.html b/src/main/webapp/weakrand-04/BenchmarkTest02010.html index 3b73461d51..959894492e 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02010.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02010.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02010.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02011.html b/src/main/webapp/weakrand-04/BenchmarkTest02011.html index b7694a896c..ca2fa78f99 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02011.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02011.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02011.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02012.html b/src/main/webapp/weakrand-04/BenchmarkTest02012.html index 8aa454f18c..a110fb69c0 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02012.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02012.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02012.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02013.html b/src/main/webapp/weakrand-04/BenchmarkTest02013.html index 3845b1337d..acc39f818d 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02013.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02013.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02013.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02014.html b/src/main/webapp/weakrand-04/BenchmarkTest02014.html index c619d3e4b3..4b0ee00d23 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02014.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02014.html @@ -10,13 +10,12 @@

-
+

-
+ and value of BenchmarkTest02014.
@@ -41,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02038.html b/src/main/webapp/weakrand-04/BenchmarkTest02038.html index 2e008b6642..661856359a 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02038.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02038.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02039.html b/src/main/webapp/weakrand-04/BenchmarkTest02039.html index 8127bcc31e..bf4fea64f7 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02039.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02039.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02040.html b/src/main/webapp/weakrand-04/BenchmarkTest02040.html index 8185529237..a97399fd05 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02040.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02040.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02060.html b/src/main/webapp/weakrand-04/BenchmarkTest02060.html index def440f5a8..e748203c39 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02060.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02060.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02061.html b/src/main/webapp/weakrand-04/BenchmarkTest02061.html index 166bcb85aa..683feb42b7 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02061.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02061.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02062.html b/src/main/webapp/weakrand-04/BenchmarkTest02062.html index f2ade4390b..aa5f5aa143 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02062.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02062.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02063.html b/src/main/webapp/weakrand-04/BenchmarkTest02063.html index f45fbfd4fb..1781e06852 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02063.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02063.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02071.html b/src/main/webapp/weakrand-04/BenchmarkTest02071.html index b7190facec..b04f6eea2a 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02071.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02071.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02072.html b/src/main/webapp/weakrand-04/BenchmarkTest02072.html index f7c88913ac..1aca1767f7 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02072.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02072.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02073.html b/src/main/webapp/weakrand-04/BenchmarkTest02073.html index 6986d77b0d..db6d78fa0f 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02073.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02073.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02074.html b/src/main/webapp/weakrand-04/BenchmarkTest02074.html index aae7bcae29..399ee4dd6c 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02074.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02074.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02075.html b/src/main/webapp/weakrand-04/BenchmarkTest02075.html index 9ebbe26984..393f0ac904 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02075.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02075.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02076.html b/src/main/webapp/weakrand-04/BenchmarkTest02076.html index 4085d96eba..932dc92362 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02076.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02076.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02077.html b/src/main/webapp/weakrand-04/BenchmarkTest02077.html index 3d57fdfbc9..0c67354b75 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02077.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02077.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02078.html b/src/main/webapp/weakrand-04/BenchmarkTest02078.html index a72121eb95..3ccc34c8ae 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02078.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02078.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02079.html b/src/main/webapp/weakrand-04/BenchmarkTest02079.html index 37c0f2edd1..eb8f312698 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02079.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02079.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02080.html b/src/main/webapp/weakrand-04/BenchmarkTest02080.html index 95b85691f4..6ca2274868 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02080.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02080.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02081.html b/src/main/webapp/weakrand-04/BenchmarkTest02081.html index dbfb601501..3bcf6f66db 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02081.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02081.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02082.html b/src/main/webapp/weakrand-04/BenchmarkTest02082.html index 84912b820f..f2931ab0ab 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02082.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02082.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02083.html b/src/main/webapp/weakrand-04/BenchmarkTest02083.html index 3387e8de94..be09bd6f95 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02083.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02083.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02138.html b/src/main/webapp/weakrand-04/BenchmarkTest02138.html index 280ba1fb19..320aaef18a 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02138.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02138.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02139.html b/src/main/webapp/weakrand-04/BenchmarkTest02139.html index 9df49ba8c5..dcef60f615 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02139.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02139.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-04/BenchmarkTest02158.html b/src/main/webapp/weakrand-04/BenchmarkTest02158.html index 43735d0897..97073cbd51 100644 --- a/src/main/webapp/weakrand-04/BenchmarkTest02158.html +++ b/src/main/webapp/weakrand-04/BenchmarkTest02158.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02159.html b/src/main/webapp/weakrand-05/BenchmarkTest02159.html index acdd446f0e..a0bb9871ed 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02159.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02159.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02163.html b/src/main/webapp/weakrand-05/BenchmarkTest02163.html index 477083fdae..95a7b12350 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02163.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02163.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02164.html b/src/main/webapp/weakrand-05/BenchmarkTest02164.html index b923a3d41c..c6a4eafe64 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02164.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02164.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02209.html b/src/main/webapp/weakrand-05/BenchmarkTest02209.html index 2e00a57b0e..f91037e77f 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02209.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02209.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02254.html b/src/main/webapp/weakrand-05/BenchmarkTest02254.html index a28b97505e..3731a2d0b5 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02254.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02254.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02258.html b/src/main/webapp/weakrand-05/BenchmarkTest02258.html index ca74a730ba..3dfd7f18cf 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02258.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02258.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02259.html b/src/main/webapp/weakrand-05/BenchmarkTest02259.html index 97317d7e41..a7fe30a8e7 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02259.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02259.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02337.html b/src/main/webapp/weakrand-05/BenchmarkTest02337.html index b5fa7f4fbe..c78b43b73d 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02337.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02337.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02337 input[id=BenchmarkTest02337]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02338.html b/src/main/webapp/weakrand-05/BenchmarkTest02338.html index 77c2ecca7a..21a4cc4dee 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02338.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02338.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02338 input[id=BenchmarkTest02338]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02345.html b/src/main/webapp/weakrand-05/BenchmarkTest02345.html index 0be0dca053..f59e9a391b 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02345.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02345.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02345 input[id=BenchmarkTest02345]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02346.html b/src/main/webapp/weakrand-05/BenchmarkTest02346.html index af6e3ebb1a..830789480b 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02346.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02346.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02346 input[id=BenchmarkTest02346]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02347.html b/src/main/webapp/weakrand-05/BenchmarkTest02347.html index 239e0db24c..a24be13d05 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02347.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02347.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02347 input[id=BenchmarkTest02347]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02348.html b/src/main/webapp/weakrand-05/BenchmarkTest02348.html index 04c4d572ea..1202d975a3 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02348.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02348.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02348 input[id=BenchmarkTest02348]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02349.html b/src/main/webapp/weakrand-05/BenchmarkTest02349.html index 3b9eebf2a5..dfe023c6cd 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02349.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02349.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02349 input[id=BenchmarkTest02349]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02350.html b/src/main/webapp/weakrand-05/BenchmarkTest02350.html index f0c9a31e91..872e069bbd 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02350.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02350.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02350 input[id=BenchmarkTest02350]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02351.html b/src/main/webapp/weakrand-05/BenchmarkTest02351.html index b0462e6e41..416026823f 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02351.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02351.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02351 input[id=BenchmarkTest02351]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02417.html b/src/main/webapp/weakrand-05/BenchmarkTest02417.html index 665ee28834..88a57ce17d 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02417.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02417.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02418.html b/src/main/webapp/weakrand-05/BenchmarkTest02418.html index 366f70afea..2b5bc6944f 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02418.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02418.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02422.html b/src/main/webapp/weakrand-05/BenchmarkTest02422.html index 1180780061..db566085eb 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02422.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02422.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02423.html b/src/main/webapp/weakrand-05/BenchmarkTest02423.html index 018aa237cf..defdb73bac 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02423.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02423.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02437.html b/src/main/webapp/weakrand-05/BenchmarkTest02437.html index 22062c5805..d0f8a125c2 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02437.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02437.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02438.html b/src/main/webapp/weakrand-05/BenchmarkTest02438.html index a1e17ff1ec..009816343e 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02438.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02438.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02442.html b/src/main/webapp/weakrand-05/BenchmarkTest02442.html index d04e6fbbac..b872c9320b 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02442.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02442.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02443.html b/src/main/webapp/weakrand-05/BenchmarkTest02443.html index 4353153dff..ade38be820 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02443.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02443.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02473.html b/src/main/webapp/weakrand-05/BenchmarkTest02473.html index d9cd58af21..25d01a4f47 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02473.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02473.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02497.html b/src/main/webapp/weakrand-05/BenchmarkTest02497.html index 1ec1e4326d..c7f1926b87 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02497.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02497.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02498.html b/src/main/webapp/weakrand-05/BenchmarkTest02498.html index 2c119095ae..ff9eaaef11 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02498.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02498.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02502.html b/src/main/webapp/weakrand-05/BenchmarkTest02502.html index 3e040fe284..6d4af90600 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02502.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02502.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02503.html b/src/main/webapp/weakrand-05/BenchmarkTest02503.html index 1bbde22b82..8cfccf93d4 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02503.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02503.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02522.html b/src/main/webapp/weakrand-05/BenchmarkTest02522.html index 3e62a80ef4..948c1459fb 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02522.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02522.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02602.html b/src/main/webapp/weakrand-05/BenchmarkTest02602.html index ea1e71d87b..65b01055bb 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02602.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02602.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02603.html b/src/main/webapp/weakrand-05/BenchmarkTest02603.html index fe701cb45d..f2a9fc2002 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02603.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02603.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02604.html b/src/main/webapp/weakrand-05/BenchmarkTest02604.html index 858ec14aff..130cd20258 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02604.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02604.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02605.html b/src/main/webapp/weakrand-05/BenchmarkTest02605.html index d5d99c769f..e4e0d5a78d 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02605.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02605.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02606.html b/src/main/webapp/weakrand-05/BenchmarkTest02606.html index d1dde91c58..18f0852e14 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02606.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02606.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02614.html b/src/main/webapp/weakrand-05/BenchmarkTest02614.html index 963fb818f6..2241e77d1a 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02614.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02614.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02615.html b/src/main/webapp/weakrand-05/BenchmarkTest02615.html index 19e8d65d2e..7d6a77aced 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02615.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02615.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02616.html b/src/main/webapp/weakrand-05/BenchmarkTest02616.html index 589bcd45b8..e70c6cb799 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02616.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02616.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02617.html b/src/main/webapp/weakrand-05/BenchmarkTest02617.html index dfc65f8828..40366e281b 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02617.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02617.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02618.html b/src/main/webapp/weakrand-05/BenchmarkTest02618.html index 0701751d43..99fc53c4f6 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02618.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02618.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02619.html b/src/main/webapp/weakrand-05/BenchmarkTest02619.html index e9fd7fc0f3..022091e776 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02619.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02619.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02620.html b/src/main/webapp/weakrand-05/BenchmarkTest02620.html index b84321de6d..275616c56b 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02620.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02620.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02621.html b/src/main/webapp/weakrand-05/BenchmarkTest02621.html index c414e96b5e..a78d47a132 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02621.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02621.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-05/BenchmarkTest02702.html b/src/main/webapp/weakrand-05/BenchmarkTest02702.html index 6e44888918..ccd3e272cd 100644 --- a/src/main/webapp/weakrand-05/BenchmarkTest02702.html +++ b/src/main/webapp/weakrand-05/BenchmarkTest02702.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-06/BenchmarkTest02703.html b/src/main/webapp/weakrand-06/BenchmarkTest02703.html index 0647c9e0bf..27e3ac9cb4 100644 --- a/src/main/webapp/weakrand-06/BenchmarkTest02703.html +++ b/src/main/webapp/weakrand-06/BenchmarkTest02703.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-06/BenchmarkTest02707.html b/src/main/webapp/weakrand-06/BenchmarkTest02707.html index 68cee3c157..94cc46f825 100644 --- a/src/main/webapp/weakrand-06/BenchmarkTest02707.html +++ b/src/main/webapp/weakrand-06/BenchmarkTest02707.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-06/BenchmarkTest02708.html b/src/main/webapp/weakrand-06/BenchmarkTest02708.html index 1ad5462d0e..b0d407f5b2 100644 --- a/src/main/webapp/weakrand-06/BenchmarkTest02708.html +++ b/src/main/webapp/weakrand-06/BenchmarkTest02708.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-06/BenchmarkTest02717.html b/src/main/webapp/weakrand-06/BenchmarkTest02717.html index 564cc5a0b6..e444e7861d 100644 --- a/src/main/webapp/weakrand-06/BenchmarkTest02717.html +++ b/src/main/webapp/weakrand-06/BenchmarkTest02717.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/weakrand-06/BenchmarkTest02718.html b/src/main/webapp/weakrand-06/BenchmarkTest02718.html index ad507e9a94..76cb96342b 100644 --- a/src/main/webapp/weakrand-06/BenchmarkTest02718.html +++ b/src/main/webapp/weakrand-06/BenchmarkTest02718.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest00116.html b/src/main/webapp/xpathi-00/BenchmarkTest00116.html index 10f9f79ef6..619260bea5 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest00116.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest00116.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00116" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest00117.html b/src/main/webapp/xpathi-00/BenchmarkTest00117.html index 0148c7b506..2c59652e49 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest00117.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest00117.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00117" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest00118.html b/src/main/webapp/xpathi-00/BenchmarkTest00118.html index 89e9bf1097..38f308b889 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest00118.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest00118.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest00118" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest00207.html b/src/main/webapp/xpathi-00/BenchmarkTest00207.html index 741f94e3e6..898c1b4867 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest00207.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest00207.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xpathi-00/BenchmarkTest00442.html b/src/main/webapp/xpathi-00/BenchmarkTest00442.html index 4e690d80f7..bd5c7966d8 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest00442.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest00442.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest00607.html b/src/main/webapp/xpathi-00/BenchmarkTest00607.html index c7cb1128de..e31a3b4204 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest00607.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest00607.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00607 input[id=BenchmarkTest00607]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xpathi-00/BenchmarkTest00852.html b/src/main/webapp/xpathi-00/BenchmarkTest00852.html index 919ed365f1..b73a1e8e09 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest00852.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest00852.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01013.html b/src/main/webapp/xpathi-00/BenchmarkTest01013.html index 4a90320e61..77dcfecfe3 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01013.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01013.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01013" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01014.html b/src/main/webapp/xpathi-00/BenchmarkTest01014.html index e2406c6ea1..364d41f62a 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01014.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01014.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01014" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01223.html b/src/main/webapp/xpathi-00/BenchmarkTest01223.html index 66e8b8e5d3..6e6533efb4 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01223.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01223.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01224.html b/src/main/webapp/xpathi-00/BenchmarkTest01224.html index 4515194776..92ccc31fae 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01224.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01224.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01225.html b/src/main/webapp/xpathi-00/BenchmarkTest01225.html index bce03aa84c..2c21979de2 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01225.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01225.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01478.html b/src/main/webapp/xpathi-00/BenchmarkTest01478.html index e16026a5ee..0e87948572 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01478.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01478.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01478 input[id=BenchmarkTest01478]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01479.html b/src/main/webapp/xpathi-00/BenchmarkTest01479.html index 24f514d71e..9ab4fd8ae6 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01479.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01479.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01479 input[id=BenchmarkTest01479]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01561.html b/src/main/webapp/xpathi-00/BenchmarkTest01561.html index ec3699aac4..fe37aabe7e 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01561.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01561.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01562.html b/src/main/webapp/xpathi-00/BenchmarkTest01562.html index 9a0a157cfe..042631e6b3 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01562.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01562.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01632.html b/src/main/webapp/xpathi-00/BenchmarkTest01632.html index dc62efa6d6..4e1c5b5a75 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01632.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01632.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01734.html b/src/main/webapp/xpathi-00/BenchmarkTest01734.html index 12316c5723..9e0dd7390a 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01734.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01734.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01735.html b/src/main/webapp/xpathi-00/BenchmarkTest01735.html index 12c8e2c50f..f6f284e7c9 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01735.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01735.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01736.html b/src/main/webapp/xpathi-00/BenchmarkTest01736.html index f3ff267540..a576108f8d 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01736.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01736.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01821.html b/src/main/webapp/xpathi-00/BenchmarkTest01821.html index 7021cc7b61..376b776698 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01821.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01821.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01892.html b/src/main/webapp/xpathi-00/BenchmarkTest01892.html index 8067dc261f..33b326afe8 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01892.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01892.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01892" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01893.html b/src/main/webapp/xpathi-00/BenchmarkTest01893.html index f01e7809a4..5da9a98a19 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01893.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01893.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01893" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01894.html b/src/main/webapp/xpathi-00/BenchmarkTest01894.html index 98411a39ec..d3467617ff 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01894.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01894.html @@ -9,17 +9,17 @@

Here is the image you are looking for:  

-
Responsive image
+
Responsive image

The server automatically generated the cookie "BenchmarkTest01894" for this test case. Press the "Test it!" button to send this cookie back to the server.

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest01974.html b/src/main/webapp/xpathi-00/BenchmarkTest01974.html index e54c6b6591..297805aa46 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest01974.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest01974.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xpathi-00/BenchmarkTest02100.html b/src/main/webapp/xpathi-00/BenchmarkTest02100.html index 18a586f5df..8297be39d5 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest02100.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest02100.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xpathi-00/BenchmarkTest02189.html b/src/main/webapp/xpathi-00/BenchmarkTest02189.html index 59581a8bfc..09c6acba27 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest02189.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest02189.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xpathi-00/BenchmarkTest02370.html b/src/main/webapp/xpathi-00/BenchmarkTest02370.html index 82f97f9fb2..a0a27bd974 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest02370.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest02370.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02370 input[id=BenchmarkTest02370]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xpathi-00/BenchmarkTest02457.html b/src/main/webapp/xpathi-00/BenchmarkTest02457.html index a854ae408f..fc7ae84545 100644 --- a/src/main/webapp/xpathi-00/BenchmarkTest02457.html +++ b/src/main/webapp/xpathi-00/BenchmarkTest02457.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xpathi-Index.html b/src/main/webapp/xpathi-Index.html index 7bd33c0f3c..8da2f52264 100644 --- a/src/main/webapp/xpathi-Index.html +++ b/src/main/webapp/xpathi-Index.html @@ -19,7 +19,7 @@
-

OWASP Benchmark XPATH Injection Test Case Index

+

OWASP Benchmark XPath Injection Test Case Index

diff --git a/src/main/webapp/xss-00/BenchmarkTest00013.html b/src/main/webapp/xss-00/BenchmarkTest00013.html index 2de7702814..29b9cf88d2 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00013.html +++ b/src/main/webapp/xss-00/BenchmarkTest00013.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00014.html b/src/main/webapp/xss-00/BenchmarkTest00014.html index cb274b77a0..47b65f99e5 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00014.html +++ b/src/main/webapp/xss-00/BenchmarkTest00014.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00036.html b/src/main/webapp/xss-00/BenchmarkTest00036.html index 3582984553..c6fc964500 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00036.html +++ b/src/main/webapp/xss-00/BenchmarkTest00036.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00036 input[id=BenchmarkTest00036]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00041.html b/src/main/webapp/xss-00/BenchmarkTest00041.html index 8a2cf6749a..1ce9b5dc3b 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00041.html +++ b/src/main/webapp/xss-00/BenchmarkTest00041.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00047.html b/src/main/webapp/xss-00/BenchmarkTest00047.html index f1a33cc0a5..f2d8c5086e 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00047.html +++ b/src/main/webapp/xss-00/BenchmarkTest00047.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00048.html b/src/main/webapp/xss-00/BenchmarkTest00048.html index d1b8028f2f..0281840937 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00048.html +++ b/src/main/webapp/xss-00/BenchmarkTest00048.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00049.html b/src/main/webapp/xss-00/BenchmarkTest00049.html index 040bc4dfda..bbe09f24a4 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00049.html +++ b/src/main/webapp/xss-00/BenchmarkTest00049.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00144.html b/src/main/webapp/xss-00/BenchmarkTest00144.html index eed7c1ecf4..b0874aff14 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00144.html +++ b/src/main/webapp/xss-00/BenchmarkTest00144.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00145.html b/src/main/webapp/xss-00/BenchmarkTest00145.html index 823a4d2716..e024ee1d8c 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00145.html +++ b/src/main/webapp/xss-00/BenchmarkTest00145.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00146.html b/src/main/webapp/xss-00/BenchmarkTest00146.html index 752f03c3d4..0d68456383 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00146.html +++ b/src/main/webapp/xss-00/BenchmarkTest00146.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00147.html b/src/main/webapp/xss-00/BenchmarkTest00147.html index c8d002bfbc..fd44d3cb8f 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00147.html +++ b/src/main/webapp/xss-00/BenchmarkTest00147.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00148.html b/src/main/webapp/xss-00/BenchmarkTest00148.html index 42b8ee5fc8..04711b7869 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00148.html +++ b/src/main/webapp/xss-00/BenchmarkTest00148.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00149.html b/src/main/webapp/xss-00/BenchmarkTest00149.html index 8304e1ab54..5af5dddf95 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00149.html +++ b/src/main/webapp/xss-00/BenchmarkTest00149.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00150.html b/src/main/webapp/xss-00/BenchmarkTest00150.html index baeaad1290..96e54ebea7 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00150.html +++ b/src/main/webapp/xss-00/BenchmarkTest00150.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00151.html b/src/main/webapp/xss-00/BenchmarkTest00151.html index c2ab94daf5..21b82ebce2 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00151.html +++ b/src/main/webapp/xss-00/BenchmarkTest00151.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00152.html b/src/main/webapp/xss-00/BenchmarkTest00152.html index aa2c45f3ed..c71953d9a5 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00152.html +++ b/src/main/webapp/xss-00/BenchmarkTest00152.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00153.html b/src/main/webapp/xss-00/BenchmarkTest00153.html index 5402c12441..3f7ca54f1a 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00153.html +++ b/src/main/webapp/xss-00/BenchmarkTest00153.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00154.html b/src/main/webapp/xss-00/BenchmarkTest00154.html index 7ba952bd7d..62e3297815 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00154.html +++ b/src/main/webapp/xss-00/BenchmarkTest00154.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00155.html b/src/main/webapp/xss-00/BenchmarkTest00155.html index 5ed8a892a3..12abbee3f0 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00155.html +++ b/src/main/webapp/xss-00/BenchmarkTest00155.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00156.html b/src/main/webapp/xss-00/BenchmarkTest00156.html index 83d78399e8..b74a2099c6 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00156.html +++ b/src/main/webapp/xss-00/BenchmarkTest00156.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00157.html b/src/main/webapp/xss-00/BenchmarkTest00157.html index 1027f958fd..dd3ae1a4f6 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00157.html +++ b/src/main/webapp/xss-00/BenchmarkTest00157.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00275.html b/src/main/webapp/xss-00/BenchmarkTest00275.html index 9440a51a30..2c5b9322fe 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00275.html +++ b/src/main/webapp/xss-00/BenchmarkTest00275.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00276.html b/src/main/webapp/xss-00/BenchmarkTest00276.html index 4001dedef0..82e3401c40 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00276.html +++ b/src/main/webapp/xss-00/BenchmarkTest00276.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00277.html b/src/main/webapp/xss-00/BenchmarkTest00277.html index 45add17aed..64ac2c797e 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00277.html +++ b/src/main/webapp/xss-00/BenchmarkTest00277.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00278.html b/src/main/webapp/xss-00/BenchmarkTest00278.html index a7767404a8..9da4486777 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00278.html +++ b/src/main/webapp/xss-00/BenchmarkTest00278.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00279.html b/src/main/webapp/xss-00/BenchmarkTest00279.html index f3b7bda983..789989a5c3 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00279.html +++ b/src/main/webapp/xss-00/BenchmarkTest00279.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00280.html b/src/main/webapp/xss-00/BenchmarkTest00280.html index 1db13d9a0f..bdc60bcad4 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00280.html +++ b/src/main/webapp/xss-00/BenchmarkTest00280.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00281.html b/src/main/webapp/xss-00/BenchmarkTest00281.html index 9f8fa81b27..a186a37008 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00281.html +++ b/src/main/webapp/xss-00/BenchmarkTest00281.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00282.html b/src/main/webapp/xss-00/BenchmarkTest00282.html index 14029f72da..552924e844 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00282.html +++ b/src/main/webapp/xss-00/BenchmarkTest00282.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00283.html b/src/main/webapp/xss-00/BenchmarkTest00283.html index 8784d9edec..760e35da3e 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00283.html +++ b/src/main/webapp/xss-00/BenchmarkTest00283.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00284.html b/src/main/webapp/xss-00/BenchmarkTest00284.html index 48170e67cc..eed7888172 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00284.html +++ b/src/main/webapp/xss-00/BenchmarkTest00284.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00285.html b/src/main/webapp/xss-00/BenchmarkTest00285.html index bcb38be55a..a63533eb65 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00285.html +++ b/src/main/webapp/xss-00/BenchmarkTest00285.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00286.html b/src/main/webapp/xss-00/BenchmarkTest00286.html index 3b96dcf0f1..8971afe945 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00286.html +++ b/src/main/webapp/xss-00/BenchmarkTest00286.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00287.html b/src/main/webapp/xss-00/BenchmarkTest00287.html index 451158b28b..fc2f518f97 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00287.html +++ b/src/main/webapp/xss-00/BenchmarkTest00287.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00288.html b/src/main/webapp/xss-00/BenchmarkTest00288.html index 73874f063b..95e56f9a1d 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00288.html +++ b/src/main/webapp/xss-00/BenchmarkTest00288.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00289.html b/src/main/webapp/xss-00/BenchmarkTest00289.html index 3d691c7a34..d746d51c69 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00289.html +++ b/src/main/webapp/xss-00/BenchmarkTest00289.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00290.html b/src/main/webapp/xss-00/BenchmarkTest00290.html index fc9fc347d2..af1b449191 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00290.html +++ b/src/main/webapp/xss-00/BenchmarkTest00290.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00291.html b/src/main/webapp/xss-00/BenchmarkTest00291.html index 5810d8502c..1948ac58e8 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00291.html +++ b/src/main/webapp/xss-00/BenchmarkTest00291.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00292.html b/src/main/webapp/xss-00/BenchmarkTest00292.html index 8d23fc7ac9..cecde1751a 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00292.html +++ b/src/main/webapp/xss-00/BenchmarkTest00292.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00301.html b/src/main/webapp/xss-00/BenchmarkTest00301.html index 945dc04322..32a0783267 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00301.html +++ b/src/main/webapp/xss-00/BenchmarkTest00301.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00377.html b/src/main/webapp/xss-00/BenchmarkTest00377.html index d07197ef9c..b2b64484d5 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00377.html +++ b/src/main/webapp/xss-00/BenchmarkTest00377.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00378.html b/src/main/webapp/xss-00/BenchmarkTest00378.html index e69944b38c..540911d4a5 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00378.html +++ b/src/main/webapp/xss-00/BenchmarkTest00378.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00382.html b/src/main/webapp/xss-00/BenchmarkTest00382.html index cefbf7a16e..0e5f2e6b4d 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00382.html +++ b/src/main/webapp/xss-00/BenchmarkTest00382.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00383.html b/src/main/webapp/xss-00/BenchmarkTest00383.html index 5a473f2c28..683baf50dc 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00383.html +++ b/src/main/webapp/xss-00/BenchmarkTest00383.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00387.html b/src/main/webapp/xss-00/BenchmarkTest00387.html index 64ddbf68ab..9213376ce6 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00387.html +++ b/src/main/webapp/xss-00/BenchmarkTest00387.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00388.html b/src/main/webapp/xss-00/BenchmarkTest00388.html index 3a4e5b47c5..420fe533a6 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00388.html +++ b/src/main/webapp/xss-00/BenchmarkTest00388.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00392.html b/src/main/webapp/xss-00/BenchmarkTest00392.html index f730432a98..1f9a5ce782 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00392.html +++ b/src/main/webapp/xss-00/BenchmarkTest00392.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00393.html b/src/main/webapp/xss-00/BenchmarkTest00393.html index e108d41364..d83a1851c2 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00393.html +++ b/src/main/webapp/xss-00/BenchmarkTest00393.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00467.html b/src/main/webapp/xss-00/BenchmarkTest00467.html index f6f4abc1e8..71ee5d804d 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00467.html +++ b/src/main/webapp/xss-00/BenchmarkTest00467.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00468.html b/src/main/webapp/xss-00/BenchmarkTest00468.html index b4cd9a72c4..117a1b979f 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00468.html +++ b/src/main/webapp/xss-00/BenchmarkTest00468.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00472.html b/src/main/webapp/xss-00/BenchmarkTest00472.html index 4ae49c2154..a61ad30204 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00472.html +++ b/src/main/webapp/xss-00/BenchmarkTest00472.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00473.html b/src/main/webapp/xss-00/BenchmarkTest00473.html index 44aca54c44..506fe098c1 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00473.html +++ b/src/main/webapp/xss-00/BenchmarkTest00473.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00477.html b/src/main/webapp/xss-00/BenchmarkTest00477.html index 4c426b4026..f51b5fc24c 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00477.html +++ b/src/main/webapp/xss-00/BenchmarkTest00477.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00478.html b/src/main/webapp/xss-00/BenchmarkTest00478.html index c80308c41c..53355caf27 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00478.html +++ b/src/main/webapp/xss-00/BenchmarkTest00478.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00492.html b/src/main/webapp/xss-00/BenchmarkTest00492.html index 81d848b31d..300d656ba0 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00492.html +++ b/src/main/webapp/xss-00/BenchmarkTest00492.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00493.html b/src/main/webapp/xss-00/BenchmarkTest00493.html index f3af0e28e6..88660fc4e1 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00493.html +++ b/src/main/webapp/xss-00/BenchmarkTest00493.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-00/BenchmarkTest00541.html b/src/main/webapp/xss-00/BenchmarkTest00541.html index 3e88ce4615..7fba94348d 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00541.html +++ b/src/main/webapp/xss-00/BenchmarkTest00541.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00541 input[id=BenchmarkTest00541]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00542.html b/src/main/webapp/xss-00/BenchmarkTest00542.html index 12a99c3dcf..03657ae4e0 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00542.html +++ b/src/main/webapp/xss-00/BenchmarkTest00542.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00542 input[id=BenchmarkTest00542]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-00/BenchmarkTest00543.html b/src/main/webapp/xss-00/BenchmarkTest00543.html index f8c407c34b..fcc3ec728e 100644 --- a/src/main/webapp/xss-00/BenchmarkTest00543.html +++ b/src/main/webapp/xss-00/BenchmarkTest00543.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00543 input[id=BenchmarkTest00543]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest00544.html b/src/main/webapp/xss-01/BenchmarkTest00544.html index 45038e1a2a..8f6dfe79df 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00544.html +++ b/src/main/webapp/xss-01/BenchmarkTest00544.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00544 input[id=BenchmarkTest00544]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest00545.html b/src/main/webapp/xss-01/BenchmarkTest00545.html index 833f3cc5ff..a7be076ce4 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00545.html +++ b/src/main/webapp/xss-01/BenchmarkTest00545.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00545 input[id=BenchmarkTest00545]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest00546.html b/src/main/webapp/xss-01/BenchmarkTest00546.html index bfcb999384..4941b85495 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00546.html +++ b/src/main/webapp/xss-01/BenchmarkTest00546.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00546 input[id=BenchmarkTest00546]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest00547.html b/src/main/webapp/xss-01/BenchmarkTest00547.html index d52b944006..ecd8a614af 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00547.html +++ b/src/main/webapp/xss-01/BenchmarkTest00547.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00547 input[id=BenchmarkTest00547]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest00548.html b/src/main/webapp/xss-01/BenchmarkTest00548.html index d467063b97..cc8d77dbce 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00548.html +++ b/src/main/webapp/xss-01/BenchmarkTest00548.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00548 input[id=BenchmarkTest00548]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest00549.html b/src/main/webapp/xss-01/BenchmarkTest00549.html index 0363d53399..68d64a0937 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00549.html +++ b/src/main/webapp/xss-01/BenchmarkTest00549.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00549 input[id=BenchmarkTest00549]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest00550.html b/src/main/webapp/xss-01/BenchmarkTest00550.html index df692d0339..03aae39321 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00550.html +++ b/src/main/webapp/xss-01/BenchmarkTest00550.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00550 input[id=BenchmarkTest00550]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest00551.html b/src/main/webapp/xss-01/BenchmarkTest00551.html index 6e125d0841..b58b064e17 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00551.html +++ b/src/main/webapp/xss-01/BenchmarkTest00551.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00551 input[id=BenchmarkTest00551]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest00552.html b/src/main/webapp/xss-01/BenchmarkTest00552.html index a344bf6f92..7890e11a49 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00552.html +++ b/src/main/webapp/xss-01/BenchmarkTest00552.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00552 input[id=BenchmarkTest00552]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest00553.html b/src/main/webapp/xss-01/BenchmarkTest00553.html index 5b0e91263c..06da748e29 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00553.html +++ b/src/main/webapp/xss-01/BenchmarkTest00553.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00553 input[id=BenchmarkTest00553]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest00554.html b/src/main/webapp/xss-01/BenchmarkTest00554.html index b7194bb5e0..5d8a4ef12a 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00554.html +++ b/src/main/webapp/xss-01/BenchmarkTest00554.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00554 input[id=BenchmarkTest00554]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest00555.html b/src/main/webapp/xss-01/BenchmarkTest00555.html index b77ae7cd2f..99cbec09e3 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00555.html +++ b/src/main/webapp/xss-01/BenchmarkTest00555.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00555 input[id=BenchmarkTest00555]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest00556.html b/src/main/webapp/xss-01/BenchmarkTest00556.html index f6b6920ac8..8acc83c8f3 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00556.html +++ b/src/main/webapp/xss-01/BenchmarkTest00556.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00556 input[id=BenchmarkTest00556]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest00557.html b/src/main/webapp/xss-01/BenchmarkTest00557.html index 569fe35d0d..272f16f521 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00557.html +++ b/src/main/webapp/xss-01/BenchmarkTest00557.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest00557 input[id=BenchmarkTest00557]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest00644.html b/src/main/webapp/xss-01/BenchmarkTest00644.html index 5e8206d3ea..4b3e17f9cb 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00644.html +++ b/src/main/webapp/xss-01/BenchmarkTest00644.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00645.html b/src/main/webapp/xss-01/BenchmarkTest00645.html index 6c15425346..b31f300977 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00645.html +++ b/src/main/webapp/xss-01/BenchmarkTest00645.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00649.html b/src/main/webapp/xss-01/BenchmarkTest00649.html index 1a8f0880e0..cf0418880b 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00649.html +++ b/src/main/webapp/xss-01/BenchmarkTest00649.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00650.html b/src/main/webapp/xss-01/BenchmarkTest00650.html index 06dcd8f1ea..96ab3a5eb4 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00650.html +++ b/src/main/webapp/xss-01/BenchmarkTest00650.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00714.html b/src/main/webapp/xss-01/BenchmarkTest00714.html index f100312418..8b57bcabed 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00714.html +++ b/src/main/webapp/xss-01/BenchmarkTest00714.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00715.html b/src/main/webapp/xss-01/BenchmarkTest00715.html index 0d8f77f4fe..899fcfdfc8 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00715.html +++ b/src/main/webapp/xss-01/BenchmarkTest00715.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00719.html b/src/main/webapp/xss-01/BenchmarkTest00719.html index a403aebc0e..060f3bd913 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00719.html +++ b/src/main/webapp/xss-01/BenchmarkTest00719.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00720.html b/src/main/webapp/xss-01/BenchmarkTest00720.html index bf38da9654..6e2deea697 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00720.html +++ b/src/main/webapp/xss-01/BenchmarkTest00720.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00724.html b/src/main/webapp/xss-01/BenchmarkTest00724.html index 8fe14c514c..9c5d878546 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00724.html +++ b/src/main/webapp/xss-01/BenchmarkTest00724.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00725.html b/src/main/webapp/xss-01/BenchmarkTest00725.html index dc40088b43..5a009c5d97 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00725.html +++ b/src/main/webapp/xss-01/BenchmarkTest00725.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00729.html b/src/main/webapp/xss-01/BenchmarkTest00729.html index c313cb01e7..044508570c 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00729.html +++ b/src/main/webapp/xss-01/BenchmarkTest00729.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00730.html b/src/main/webapp/xss-01/BenchmarkTest00730.html index 90cee43341..5625bd6d80 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00730.html +++ b/src/main/webapp/xss-01/BenchmarkTest00730.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00799.html b/src/main/webapp/xss-01/BenchmarkTest00799.html index b5c5f73808..90957b5f40 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00799.html +++ b/src/main/webapp/xss-01/BenchmarkTest00799.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00800.html b/src/main/webapp/xss-01/BenchmarkTest00800.html index 7d510253c6..60ea113e06 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00800.html +++ b/src/main/webapp/xss-01/BenchmarkTest00800.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00801.html b/src/main/webapp/xss-01/BenchmarkTest00801.html index 2f72b122d6..74f3572b30 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00801.html +++ b/src/main/webapp/xss-01/BenchmarkTest00801.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00802.html b/src/main/webapp/xss-01/BenchmarkTest00802.html index 56657e7127..ed774d1b92 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00802.html +++ b/src/main/webapp/xss-01/BenchmarkTest00802.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00803.html b/src/main/webapp/xss-01/BenchmarkTest00803.html index 0c986577fb..ca9a70eed2 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00803.html +++ b/src/main/webapp/xss-01/BenchmarkTest00803.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00804.html b/src/main/webapp/xss-01/BenchmarkTest00804.html index f05ebd6c83..196af2f909 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00804.html +++ b/src/main/webapp/xss-01/BenchmarkTest00804.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00805.html b/src/main/webapp/xss-01/BenchmarkTest00805.html index 2630d9eace..01d6b40c41 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00805.html +++ b/src/main/webapp/xss-01/BenchmarkTest00805.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00806.html b/src/main/webapp/xss-01/BenchmarkTest00806.html index a4a6071a4c..b50639ec50 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00806.html +++ b/src/main/webapp/xss-01/BenchmarkTest00806.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00807.html b/src/main/webapp/xss-01/BenchmarkTest00807.html index 54664373a3..b30e8e9e07 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00807.html +++ b/src/main/webapp/xss-01/BenchmarkTest00807.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00808.html b/src/main/webapp/xss-01/BenchmarkTest00808.html index 41c19f4464..d26e22adb2 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00808.html +++ b/src/main/webapp/xss-01/BenchmarkTest00808.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00809.html b/src/main/webapp/xss-01/BenchmarkTest00809.html index 62d737c8e4..ce766a339a 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00809.html +++ b/src/main/webapp/xss-01/BenchmarkTest00809.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00810.html b/src/main/webapp/xss-01/BenchmarkTest00810.html index c7833a75f4..24e38c634d 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00810.html +++ b/src/main/webapp/xss-01/BenchmarkTest00810.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00811.html b/src/main/webapp/xss-01/BenchmarkTest00811.html index ca0288f301..2944874df2 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00811.html +++ b/src/main/webapp/xss-01/BenchmarkTest00811.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00812.html b/src/main/webapp/xss-01/BenchmarkTest00812.html index 4bfbc785d5..66b38ee9e2 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00812.html +++ b/src/main/webapp/xss-01/BenchmarkTest00812.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00813.html b/src/main/webapp/xss-01/BenchmarkTest00813.html index 3a705f45a3..6369c5b237 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00813.html +++ b/src/main/webapp/xss-01/BenchmarkTest00813.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00822.html b/src/main/webapp/xss-01/BenchmarkTest00822.html index 95d5177943..fad94c98d8 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00822.html +++ b/src/main/webapp/xss-01/BenchmarkTest00822.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00882.html b/src/main/webapp/xss-01/BenchmarkTest00882.html index beb299c5e0..aabd2e2bc3 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00882.html +++ b/src/main/webapp/xss-01/BenchmarkTest00882.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00883.html b/src/main/webapp/xss-01/BenchmarkTest00883.html index dc837678d0..e5df7c4e94 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00883.html +++ b/src/main/webapp/xss-01/BenchmarkTest00883.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00887.html b/src/main/webapp/xss-01/BenchmarkTest00887.html index bd3a488ce8..c9a7daa81f 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00887.html +++ b/src/main/webapp/xss-01/BenchmarkTest00887.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00888.html b/src/main/webapp/xss-01/BenchmarkTest00888.html index 576f471901..b1440c1aa4 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00888.html +++ b/src/main/webapp/xss-01/BenchmarkTest00888.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00892.html b/src/main/webapp/xss-01/BenchmarkTest00892.html index 39a4c4f889..bb110fa284 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00892.html +++ b/src/main/webapp/xss-01/BenchmarkTest00892.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest00893.html b/src/main/webapp/xss-01/BenchmarkTest00893.html index 592c134432..e7833dfe16 100644 --- a/src/main/webapp/xss-01/BenchmarkTest00893.html +++ b/src/main/webapp/xss-01/BenchmarkTest00893.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-01/BenchmarkTest01046.html b/src/main/webapp/xss-01/BenchmarkTest01046.html index 38701d225c..c70f898bfe 100644 --- a/src/main/webapp/xss-01/BenchmarkTest01046.html +++ b/src/main/webapp/xss-01/BenchmarkTest01046.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-01/BenchmarkTest01047.html b/src/main/webapp/xss-01/BenchmarkTest01047.html index dd1d505d15..5687083e1a 100644 --- a/src/main/webapp/xss-01/BenchmarkTest01047.html +++ b/src/main/webapp/xss-01/BenchmarkTest01047.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01048.html b/src/main/webapp/xss-02/BenchmarkTest01048.html index d7983b030b..4768f2b972 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01048.html +++ b/src/main/webapp/xss-02/BenchmarkTest01048.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01049.html b/src/main/webapp/xss-02/BenchmarkTest01049.html index fc1bbc43e6..45a459cf1b 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01049.html +++ b/src/main/webapp/xss-02/BenchmarkTest01049.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01050.html b/src/main/webapp/xss-02/BenchmarkTest01050.html index 79e8d91dfa..3e1a4a81a8 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01050.html +++ b/src/main/webapp/xss-02/BenchmarkTest01050.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01051.html b/src/main/webapp/xss-02/BenchmarkTest01051.html index b4501077ee..744851b71b 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01051.html +++ b/src/main/webapp/xss-02/BenchmarkTest01051.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01052.html b/src/main/webapp/xss-02/BenchmarkTest01052.html index 45380a2f93..576332c03d 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01052.html +++ b/src/main/webapp/xss-02/BenchmarkTest01052.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01053.html b/src/main/webapp/xss-02/BenchmarkTest01053.html index 1f9e4af297..28fe29da7f 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01053.html +++ b/src/main/webapp/xss-02/BenchmarkTest01053.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01054.html b/src/main/webapp/xss-02/BenchmarkTest01054.html index d38cad23cc..c3d97287cd 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01054.html +++ b/src/main/webapp/xss-02/BenchmarkTest01054.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01055.html b/src/main/webapp/xss-02/BenchmarkTest01055.html index dcc782beb2..727416053d 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01055.html +++ b/src/main/webapp/xss-02/BenchmarkTest01055.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01056.html b/src/main/webapp/xss-02/BenchmarkTest01056.html index 0b67f79d27..1419bc35c1 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01056.html +++ b/src/main/webapp/xss-02/BenchmarkTest01056.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01057.html b/src/main/webapp/xss-02/BenchmarkTest01057.html index e0e3026fb5..ae0984b414 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01057.html +++ b/src/main/webapp/xss-02/BenchmarkTest01057.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01063.html b/src/main/webapp/xss-02/BenchmarkTest01063.html index df32dcc92e..e79e3e0622 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01063.html +++ b/src/main/webapp/xss-02/BenchmarkTest01063.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01171.html b/src/main/webapp/xss-02/BenchmarkTest01171.html index 2d11fc6ac3..ecf82eb714 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01171.html +++ b/src/main/webapp/xss-02/BenchmarkTest01171.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01172.html b/src/main/webapp/xss-02/BenchmarkTest01172.html index 3030ceff16..216907b8a3 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01172.html +++ b/src/main/webapp/xss-02/BenchmarkTest01172.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01173.html b/src/main/webapp/xss-02/BenchmarkTest01173.html index f6d22a2332..fbb7a0eeb2 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01173.html +++ b/src/main/webapp/xss-02/BenchmarkTest01173.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01174.html b/src/main/webapp/xss-02/BenchmarkTest01174.html index 99f89468d3..c14b94aef2 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01174.html +++ b/src/main/webapp/xss-02/BenchmarkTest01174.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01175.html b/src/main/webapp/xss-02/BenchmarkTest01175.html index 447bb39736..bcb16177e7 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01175.html +++ b/src/main/webapp/xss-02/BenchmarkTest01175.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01176.html b/src/main/webapp/xss-02/BenchmarkTest01176.html index ccc4c4422d..7f9ce94ac9 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01176.html +++ b/src/main/webapp/xss-02/BenchmarkTest01176.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01177.html b/src/main/webapp/xss-02/BenchmarkTest01177.html index 8afb053e75..3538a1ace5 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01177.html +++ b/src/main/webapp/xss-02/BenchmarkTest01177.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01178.html b/src/main/webapp/xss-02/BenchmarkTest01178.html index 0e6acc9b15..1547291fb2 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01178.html +++ b/src/main/webapp/xss-02/BenchmarkTest01178.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01179.html b/src/main/webapp/xss-02/BenchmarkTest01179.html index 01038b562e..9325771a9a 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01179.html +++ b/src/main/webapp/xss-02/BenchmarkTest01179.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01180.html b/src/main/webapp/xss-02/BenchmarkTest01180.html index c59bfdb503..88057eaabd 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01180.html +++ b/src/main/webapp/xss-02/BenchmarkTest01180.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01181.html b/src/main/webapp/xss-02/BenchmarkTest01181.html index f14037840d..3b5e093f70 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01181.html +++ b/src/main/webapp/xss-02/BenchmarkTest01181.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01188.html b/src/main/webapp/xss-02/BenchmarkTest01188.html index f736cb5a90..2fd1c59888 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01188.html +++ b/src/main/webapp/xss-02/BenchmarkTest01188.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01253.html b/src/main/webapp/xss-02/BenchmarkTest01253.html index 3990b35016..a17f8c623d 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01253.html +++ b/src/main/webapp/xss-02/BenchmarkTest01253.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-02/BenchmarkTest01254.html b/src/main/webapp/xss-02/BenchmarkTest01254.html index 170d1ed3f6..93ee1c8486 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01254.html +++ b/src/main/webapp/xss-02/BenchmarkTest01254.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-02/BenchmarkTest01258.html b/src/main/webapp/xss-02/BenchmarkTest01258.html index 231e3a7fe4..63599ee184 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01258.html +++ b/src/main/webapp/xss-02/BenchmarkTest01258.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-02/BenchmarkTest01259.html b/src/main/webapp/xss-02/BenchmarkTest01259.html index a501fa961c..8ddd89a55c 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01259.html +++ b/src/main/webapp/xss-02/BenchmarkTest01259.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-02/BenchmarkTest01263.html b/src/main/webapp/xss-02/BenchmarkTest01263.html index e24cdc8fcf..cd011c6af3 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01263.html +++ b/src/main/webapp/xss-02/BenchmarkTest01263.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-02/BenchmarkTest01264.html b/src/main/webapp/xss-02/BenchmarkTest01264.html index 2eb2700d0d..e55533dfe4 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01264.html +++ b/src/main/webapp/xss-02/BenchmarkTest01264.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-02/BenchmarkTest01268.html b/src/main/webapp/xss-02/BenchmarkTest01268.html index f7be43f5d8..03ae3db086 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01268.html +++ b/src/main/webapp/xss-02/BenchmarkTest01268.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-02/BenchmarkTest01284.html b/src/main/webapp/xss-02/BenchmarkTest01284.html index b819e32bf8..670aa61e1b 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01284.html +++ b/src/main/webapp/xss-02/BenchmarkTest01284.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-02/BenchmarkTest01338.html b/src/main/webapp/xss-02/BenchmarkTest01338.html index 3490bbed2c..791eae3470 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01338.html +++ b/src/main/webapp/xss-02/BenchmarkTest01338.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-02/BenchmarkTest01339.html b/src/main/webapp/xss-02/BenchmarkTest01339.html index 83bd912c50..dfe211be81 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01339.html +++ b/src/main/webapp/xss-02/BenchmarkTest01339.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-02/BenchmarkTest01343.html b/src/main/webapp/xss-02/BenchmarkTest01343.html index e827f9a69f..d706d83b7a 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01343.html +++ b/src/main/webapp/xss-02/BenchmarkTest01343.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-02/BenchmarkTest01344.html b/src/main/webapp/xss-02/BenchmarkTest01344.html index 7700726d08..46b4b9212f 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01344.html +++ b/src/main/webapp/xss-02/BenchmarkTest01344.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-02/BenchmarkTest01348.html b/src/main/webapp/xss-02/BenchmarkTest01348.html index a2dba9f13f..7d799f99c2 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01348.html +++ b/src/main/webapp/xss-02/BenchmarkTest01348.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-02/BenchmarkTest01349.html b/src/main/webapp/xss-02/BenchmarkTest01349.html index 4b328d2a69..65955bfa7d 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01349.html +++ b/src/main/webapp/xss-02/BenchmarkTest01349.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-02/BenchmarkTest01417.html b/src/main/webapp/xss-02/BenchmarkTest01417.html index e943528342..535a6a89b7 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01417.html +++ b/src/main/webapp/xss-02/BenchmarkTest01417.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01417 input[id=BenchmarkTest01417]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01418.html b/src/main/webapp/xss-02/BenchmarkTest01418.html index 6c102f8505..3f6a41beb5 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01418.html +++ b/src/main/webapp/xss-02/BenchmarkTest01418.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01418 input[id=BenchmarkTest01418]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01419.html b/src/main/webapp/xss-02/BenchmarkTest01419.html index b615a8fc77..0c6d33adb3 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01419.html +++ b/src/main/webapp/xss-02/BenchmarkTest01419.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01419 input[id=BenchmarkTest01419]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01420.html b/src/main/webapp/xss-02/BenchmarkTest01420.html index c29fc73a07..0d50fb363b 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01420.html +++ b/src/main/webapp/xss-02/BenchmarkTest01420.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01420 input[id=BenchmarkTest01420]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01421.html b/src/main/webapp/xss-02/BenchmarkTest01421.html index 2cf17807cf..f426abacb7 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01421.html +++ b/src/main/webapp/xss-02/BenchmarkTest01421.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01421 input[id=BenchmarkTest01421]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01422.html b/src/main/webapp/xss-02/BenchmarkTest01422.html index 55660c82bf..21c5bd3349 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01422.html +++ b/src/main/webapp/xss-02/BenchmarkTest01422.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01422 input[id=BenchmarkTest01422]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01423.html b/src/main/webapp/xss-02/BenchmarkTest01423.html index 1253991de6..f3526576f1 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01423.html +++ b/src/main/webapp/xss-02/BenchmarkTest01423.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01423 input[id=BenchmarkTest01423]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01424.html b/src/main/webapp/xss-02/BenchmarkTest01424.html index 4d0a0322da..c2a4b98bfa 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01424.html +++ b/src/main/webapp/xss-02/BenchmarkTest01424.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01424 input[id=BenchmarkTest01424]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01425.html b/src/main/webapp/xss-02/BenchmarkTest01425.html index 54dc4d86f5..b085f97afa 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01425.html +++ b/src/main/webapp/xss-02/BenchmarkTest01425.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01425 input[id=BenchmarkTest01425]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01426.html b/src/main/webapp/xss-02/BenchmarkTest01426.html index 58e05a992d..46959d954e 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01426.html +++ b/src/main/webapp/xss-02/BenchmarkTest01426.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01426 input[id=BenchmarkTest01426]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01427.html b/src/main/webapp/xss-02/BenchmarkTest01427.html index 28ac52806a..33e4cff101 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01427.html +++ b/src/main/webapp/xss-02/BenchmarkTest01427.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01427 input[id=BenchmarkTest01427]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01428.html b/src/main/webapp/xss-02/BenchmarkTest01428.html index a245103e56..502f8a9000 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01428.html +++ b/src/main/webapp/xss-02/BenchmarkTest01428.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01428 input[id=BenchmarkTest01428]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01429.html b/src/main/webapp/xss-02/BenchmarkTest01429.html index d88eda764d..4d1a8d2136 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01429.html +++ b/src/main/webapp/xss-02/BenchmarkTest01429.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01429 input[id=BenchmarkTest01429]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01437.html b/src/main/webapp/xss-02/BenchmarkTest01437.html index 404ac76d9f..05332134ed 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01437.html +++ b/src/main/webapp/xss-02/BenchmarkTest01437.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01437 input[id=BenchmarkTest01437]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01438.html b/src/main/webapp/xss-02/BenchmarkTest01438.html index e1b6869588..df2319a2cc 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01438.html +++ b/src/main/webapp/xss-02/BenchmarkTest01438.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01438 input[id=BenchmarkTest01438]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01439.html b/src/main/webapp/xss-02/BenchmarkTest01439.html index 2d18d27916..0554482fd4 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01439.html +++ b/src/main/webapp/xss-02/BenchmarkTest01439.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest01439 input[id=BenchmarkTest01439]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-02/BenchmarkTest01506.html b/src/main/webapp/xss-02/BenchmarkTest01506.html index 6daefb633f..a50f9c8232 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01506.html +++ b/src/main/webapp/xss-02/BenchmarkTest01506.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-02/BenchmarkTest01507.html b/src/main/webapp/xss-02/BenchmarkTest01507.html index d30428a616..b37554e967 100644 --- a/src/main/webapp/xss-02/BenchmarkTest01507.html +++ b/src/main/webapp/xss-02/BenchmarkTest01507.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01511.html b/src/main/webapp/xss-03/BenchmarkTest01511.html index 824d25c940..1e20a64752 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01511.html +++ b/src/main/webapp/xss-03/BenchmarkTest01511.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01512.html b/src/main/webapp/xss-03/BenchmarkTest01512.html index 2422a85856..6a0f22741a 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01512.html +++ b/src/main/webapp/xss-03/BenchmarkTest01512.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01586.html b/src/main/webapp/xss-03/BenchmarkTest01586.html index dba70a65c6..4266600353 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01586.html +++ b/src/main/webapp/xss-03/BenchmarkTest01586.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01587.html b/src/main/webapp/xss-03/BenchmarkTest01587.html index e02cfc6c1a..5bc3422e83 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01587.html +++ b/src/main/webapp/xss-03/BenchmarkTest01587.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01591.html b/src/main/webapp/xss-03/BenchmarkTest01591.html index 7ffb52b2e6..d8d38ce10c 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01591.html +++ b/src/main/webapp/xss-03/BenchmarkTest01591.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01592.html b/src/main/webapp/xss-03/BenchmarkTest01592.html index f05267f1ea..4b43caf1b7 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01592.html +++ b/src/main/webapp/xss-03/BenchmarkTest01592.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01596.html b/src/main/webapp/xss-03/BenchmarkTest01596.html index ef572f69f5..975b6c09ae 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01596.html +++ b/src/main/webapp/xss-03/BenchmarkTest01596.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01597.html b/src/main/webapp/xss-03/BenchmarkTest01597.html index 2b612c7d5d..e3244dcb33 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01597.html +++ b/src/main/webapp/xss-03/BenchmarkTest01597.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01657.html b/src/main/webapp/xss-03/BenchmarkTest01657.html index 6c49fd0d90..9593a7a01c 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01657.html +++ b/src/main/webapp/xss-03/BenchmarkTest01657.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01658.html b/src/main/webapp/xss-03/BenchmarkTest01658.html index a33e0ec0fa..7d562e93cf 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01658.html +++ b/src/main/webapp/xss-03/BenchmarkTest01658.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01659.html b/src/main/webapp/xss-03/BenchmarkTest01659.html index 22d4ae16b4..aa3cb629e9 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01659.html +++ b/src/main/webapp/xss-03/BenchmarkTest01659.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01660.html b/src/main/webapp/xss-03/BenchmarkTest01660.html index 785b0b8131..45d05c944e 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01660.html +++ b/src/main/webapp/xss-03/BenchmarkTest01660.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01661.html b/src/main/webapp/xss-03/BenchmarkTest01661.html index 56afc617b9..01823ba630 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01661.html +++ b/src/main/webapp/xss-03/BenchmarkTest01661.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01662.html b/src/main/webapp/xss-03/BenchmarkTest01662.html index 2d51ab221d..31a8202457 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01662.html +++ b/src/main/webapp/xss-03/BenchmarkTest01662.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01663.html b/src/main/webapp/xss-03/BenchmarkTest01663.html index 2325d115b4..e987864a23 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01663.html +++ b/src/main/webapp/xss-03/BenchmarkTest01663.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01664.html b/src/main/webapp/xss-03/BenchmarkTest01664.html index bba1c3b172..ea3bc52b4e 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01664.html +++ b/src/main/webapp/xss-03/BenchmarkTest01664.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01665.html b/src/main/webapp/xss-03/BenchmarkTest01665.html index e56dec9ea7..9ddc2c8141 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01665.html +++ b/src/main/webapp/xss-03/BenchmarkTest01665.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01666.html b/src/main/webapp/xss-03/BenchmarkTest01666.html index d2c6690b49..57565b8a78 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01666.html +++ b/src/main/webapp/xss-03/BenchmarkTest01666.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01667.html b/src/main/webapp/xss-03/BenchmarkTest01667.html index fba67af1fd..a207b9be58 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01667.html +++ b/src/main/webapp/xss-03/BenchmarkTest01667.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01668.html b/src/main/webapp/xss-03/BenchmarkTest01668.html index 0b92aaddb2..e288aa0458 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01668.html +++ b/src/main/webapp/xss-03/BenchmarkTest01668.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01669.html b/src/main/webapp/xss-03/BenchmarkTest01669.html index afc88b51ff..e6ed2d2b1a 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01669.html +++ b/src/main/webapp/xss-03/BenchmarkTest01669.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01670.html b/src/main/webapp/xss-03/BenchmarkTest01670.html index 9a4cd676a9..10399cd9eb 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01670.html +++ b/src/main/webapp/xss-03/BenchmarkTest01670.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01671.html b/src/main/webapp/xss-03/BenchmarkTest01671.html index 20f44f5137..c94b9e1154 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01671.html +++ b/src/main/webapp/xss-03/BenchmarkTest01671.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01767.html b/src/main/webapp/xss-03/BenchmarkTest01767.html index 1a42a3d54d..90294959d1 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01767.html +++ b/src/main/webapp/xss-03/BenchmarkTest01767.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01771.html b/src/main/webapp/xss-03/BenchmarkTest01771.html index ae8baf6ddd..eb1e5fca10 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01771.html +++ b/src/main/webapp/xss-03/BenchmarkTest01771.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01772.html b/src/main/webapp/xss-03/BenchmarkTest01772.html index a45a241f6f..151dc2d241 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01772.html +++ b/src/main/webapp/xss-03/BenchmarkTest01772.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01776.html b/src/main/webapp/xss-03/BenchmarkTest01776.html index 3b16348846..b1b0ccce84 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01776.html +++ b/src/main/webapp/xss-03/BenchmarkTest01776.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01777.html b/src/main/webapp/xss-03/BenchmarkTest01777.html index acc6b246d0..4de32b95ec 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01777.html +++ b/src/main/webapp/xss-03/BenchmarkTest01777.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-03/BenchmarkTest01914.html b/src/main/webapp/xss-03/BenchmarkTest01914.html index 5bdf9cbd61..c5a37cebb0 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01914.html +++ b/src/main/webapp/xss-03/BenchmarkTest01914.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest01915.html b/src/main/webapp/xss-03/BenchmarkTest01915.html index 2ab6a56e7b..3730097620 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01915.html +++ b/src/main/webapp/xss-03/BenchmarkTest01915.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest01916.html b/src/main/webapp/xss-03/BenchmarkTest01916.html index 6755af7fca..6df6acb9d6 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01916.html +++ b/src/main/webapp/xss-03/BenchmarkTest01916.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest01917.html b/src/main/webapp/xss-03/BenchmarkTest01917.html index fc3e58c7d4..9bdca5f9a8 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01917.html +++ b/src/main/webapp/xss-03/BenchmarkTest01917.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest01918.html b/src/main/webapp/xss-03/BenchmarkTest01918.html index 3c64a3dce8..f479643684 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01918.html +++ b/src/main/webapp/xss-03/BenchmarkTest01918.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest01919.html b/src/main/webapp/xss-03/BenchmarkTest01919.html index 488c527ebe..17e8e8c551 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01919.html +++ b/src/main/webapp/xss-03/BenchmarkTest01919.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest01920.html b/src/main/webapp/xss-03/BenchmarkTest01920.html index e74deb121e..64f98f1cd9 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01920.html +++ b/src/main/webapp/xss-03/BenchmarkTest01920.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest01921.html b/src/main/webapp/xss-03/BenchmarkTest01921.html index 15e77126b8..2041e3dd2b 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01921.html +++ b/src/main/webapp/xss-03/BenchmarkTest01921.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest01922.html b/src/main/webapp/xss-03/BenchmarkTest01922.html index d18bf72151..abec0b3ba2 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01922.html +++ b/src/main/webapp/xss-03/BenchmarkTest01922.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest01923.html b/src/main/webapp/xss-03/BenchmarkTest01923.html index 5f1427c326..736ce2217f 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01923.html +++ b/src/main/webapp/xss-03/BenchmarkTest01923.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest01924.html b/src/main/webapp/xss-03/BenchmarkTest01924.html index 9eb6f9febb..8b6601007c 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01924.html +++ b/src/main/webapp/xss-03/BenchmarkTest01924.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest01925.html b/src/main/webapp/xss-03/BenchmarkTest01925.html index 894d44a784..30eb93c442 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01925.html +++ b/src/main/webapp/xss-03/BenchmarkTest01925.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest01926.html b/src/main/webapp/xss-03/BenchmarkTest01926.html index 9b3f3120e4..9380fa8eee 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01926.html +++ b/src/main/webapp/xss-03/BenchmarkTest01926.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest01927.html b/src/main/webapp/xss-03/BenchmarkTest01927.html index aa9ad0d0a7..7825efd8d9 100644 --- a/src/main/webapp/xss-03/BenchmarkTest01927.html +++ b/src/main/webapp/xss-03/BenchmarkTest01927.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest02045.html b/src/main/webapp/xss-03/BenchmarkTest02045.html index d474a07a31..e4ac749bfd 100644 --- a/src/main/webapp/xss-03/BenchmarkTest02045.html +++ b/src/main/webapp/xss-03/BenchmarkTest02045.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest02046.html b/src/main/webapp/xss-03/BenchmarkTest02046.html index 9c36764ba5..a1c2083b04 100644 --- a/src/main/webapp/xss-03/BenchmarkTest02046.html +++ b/src/main/webapp/xss-03/BenchmarkTest02046.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest02047.html b/src/main/webapp/xss-03/BenchmarkTest02047.html index 0a974cd383..40c6e7ee87 100644 --- a/src/main/webapp/xss-03/BenchmarkTest02047.html +++ b/src/main/webapp/xss-03/BenchmarkTest02047.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest02048.html b/src/main/webapp/xss-03/BenchmarkTest02048.html index 908899cc3f..e363b0026a 100644 --- a/src/main/webapp/xss-03/BenchmarkTest02048.html +++ b/src/main/webapp/xss-03/BenchmarkTest02048.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest02049.html b/src/main/webapp/xss-03/BenchmarkTest02049.html index 245423c42a..2e815502ba 100644 --- a/src/main/webapp/xss-03/BenchmarkTest02049.html +++ b/src/main/webapp/xss-03/BenchmarkTest02049.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest02050.html b/src/main/webapp/xss-03/BenchmarkTest02050.html index cac6a56e6d..f30514f5e0 100644 --- a/src/main/webapp/xss-03/BenchmarkTest02050.html +++ b/src/main/webapp/xss-03/BenchmarkTest02050.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest02051.html b/src/main/webapp/xss-03/BenchmarkTest02051.html index 33bfb067cb..64fb1d77d7 100644 --- a/src/main/webapp/xss-03/BenchmarkTest02051.html +++ b/src/main/webapp/xss-03/BenchmarkTest02051.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest02052.html b/src/main/webapp/xss-03/BenchmarkTest02052.html index 839a4e321d..993562738b 100644 --- a/src/main/webapp/xss-03/BenchmarkTest02052.html +++ b/src/main/webapp/xss-03/BenchmarkTest02052.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest02053.html b/src/main/webapp/xss-03/BenchmarkTest02053.html index bbd402550f..a636004abb 100644 --- a/src/main/webapp/xss-03/BenchmarkTest02053.html +++ b/src/main/webapp/xss-03/BenchmarkTest02053.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest02054.html b/src/main/webapp/xss-03/BenchmarkTest02054.html index 65ab009ff5..e5ec54d11e 100644 --- a/src/main/webapp/xss-03/BenchmarkTest02054.html +++ b/src/main/webapp/xss-03/BenchmarkTest02054.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest02055.html b/src/main/webapp/xss-03/BenchmarkTest02055.html index 3c88c1a8a6..04e0fab1ba 100644 --- a/src/main/webapp/xss-03/BenchmarkTest02055.html +++ b/src/main/webapp/xss-03/BenchmarkTest02055.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest02056.html b/src/main/webapp/xss-03/BenchmarkTest02056.html index 06ceb24eaa..d95afbf483 100644 --- a/src/main/webapp/xss-03/BenchmarkTest02056.html +++ b/src/main/webapp/xss-03/BenchmarkTest02056.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-03/BenchmarkTest02057.html b/src/main/webapp/xss-03/BenchmarkTest02057.html index 2c3329ad6e..c83dc24f37 100644 --- a/src/main/webapp/xss-03/BenchmarkTest02057.html +++ b/src/main/webapp/xss-03/BenchmarkTest02057.html @@ -40,8 +40,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").html("Error " + xhr.status + " ocurred."); + } else { + $("#code").html("Error " + xhr.status + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02123.html b/src/main/webapp/xss-04/BenchmarkTest02123.html index a12443d9c4..833c383124 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02123.html +++ b/src/main/webapp/xss-04/BenchmarkTest02123.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02124.html b/src/main/webapp/xss-04/BenchmarkTest02124.html index dff4165251..4414a35e25 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02124.html +++ b/src/main/webapp/xss-04/BenchmarkTest02124.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02128.html b/src/main/webapp/xss-04/BenchmarkTest02128.html index 42bfcfc8e1..cabe8241f9 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02128.html +++ b/src/main/webapp/xss-04/BenchmarkTest02128.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02129.html b/src/main/webapp/xss-04/BenchmarkTest02129.html index 3aafc2e7dd..98d6d24078 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02129.html +++ b/src/main/webapp/xss-04/BenchmarkTest02129.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02133.html b/src/main/webapp/xss-04/BenchmarkTest02133.html index 0bf5809591..0c455b5b75 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02133.html +++ b/src/main/webapp/xss-04/BenchmarkTest02133.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02134.html b/src/main/webapp/xss-04/BenchmarkTest02134.html index 9f4fc985ce..58e119de1c 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02134.html +++ b/src/main/webapp/xss-04/BenchmarkTest02134.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02223.html b/src/main/webapp/xss-04/BenchmarkTest02223.html index c920a83248..bb785a9d13 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02223.html +++ b/src/main/webapp/xss-04/BenchmarkTest02223.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02224.html b/src/main/webapp/xss-04/BenchmarkTest02224.html index ff0dd722c0..eae27e5f20 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02224.html +++ b/src/main/webapp/xss-04/BenchmarkTest02224.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02228.html b/src/main/webapp/xss-04/BenchmarkTest02228.html index 8716d47b70..cd5011b8db 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02228.html +++ b/src/main/webapp/xss-04/BenchmarkTest02228.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02229.html b/src/main/webapp/xss-04/BenchmarkTest02229.html index 6917d80fbe..2b6f8d1e75 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02229.html +++ b/src/main/webapp/xss-04/BenchmarkTest02229.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02233.html b/src/main/webapp/xss-04/BenchmarkTest02233.html index ad2d029764..8ccc4afd8f 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02233.html +++ b/src/main/webapp/xss-04/BenchmarkTest02233.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02234.html b/src/main/webapp/xss-04/BenchmarkTest02234.html index 78b9b0f59c..cab6d18dd7 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02234.html +++ b/src/main/webapp/xss-04/BenchmarkTest02234.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02238.html b/src/main/webapp/xss-04/BenchmarkTest02238.html index dfccfc87f6..3a57fac315 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02238.html +++ b/src/main/webapp/xss-04/BenchmarkTest02238.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02239.html b/src/main/webapp/xss-04/BenchmarkTest02239.html index 41ee0b9caa..9c5b0a88ec 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02239.html +++ b/src/main/webapp/xss-04/BenchmarkTest02239.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02313.html b/src/main/webapp/xss-04/BenchmarkTest02313.html index fed769be5d..cfcb0a4752 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02313.html +++ b/src/main/webapp/xss-04/BenchmarkTest02313.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02313 input[id=BenchmarkTest02313]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02314.html b/src/main/webapp/xss-04/BenchmarkTest02314.html index f53d7d41f7..7cf3b1c7b1 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02314.html +++ b/src/main/webapp/xss-04/BenchmarkTest02314.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02314 input[id=BenchmarkTest02314]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02315.html b/src/main/webapp/xss-04/BenchmarkTest02315.html index e204755a56..3ed203fd21 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02315.html +++ b/src/main/webapp/xss-04/BenchmarkTest02315.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02315 input[id=BenchmarkTest02315]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02316.html b/src/main/webapp/xss-04/BenchmarkTest02316.html index d294dffca2..256f82444e 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02316.html +++ b/src/main/webapp/xss-04/BenchmarkTest02316.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02316 input[id=BenchmarkTest02316]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02317.html b/src/main/webapp/xss-04/BenchmarkTest02317.html index 61655c58d7..1f7bd43cb0 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02317.html +++ b/src/main/webapp/xss-04/BenchmarkTest02317.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02317 input[id=BenchmarkTest02317]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02318.html b/src/main/webapp/xss-04/BenchmarkTest02318.html index 740fb1a4c4..6d65d96431 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02318.html +++ b/src/main/webapp/xss-04/BenchmarkTest02318.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02318 input[id=BenchmarkTest02318]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02319.html b/src/main/webapp/xss-04/BenchmarkTest02319.html index 5104e09771..320431fb81 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02319.html +++ b/src/main/webapp/xss-04/BenchmarkTest02319.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02319 input[id=BenchmarkTest02319]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02320.html b/src/main/webapp/xss-04/BenchmarkTest02320.html index 80e22bc17b..de710699df 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02320.html +++ b/src/main/webapp/xss-04/BenchmarkTest02320.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02320 input[id=BenchmarkTest02320]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02321.html b/src/main/webapp/xss-04/BenchmarkTest02321.html index 7ba5322319..fdde317367 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02321.html +++ b/src/main/webapp/xss-04/BenchmarkTest02321.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02321 input[id=BenchmarkTest02321]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02322.html b/src/main/webapp/xss-04/BenchmarkTest02322.html index 86eee7db93..a2fc9f78c5 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02322.html +++ b/src/main/webapp/xss-04/BenchmarkTest02322.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02322 input[id=BenchmarkTest02322]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02323.html b/src/main/webapp/xss-04/BenchmarkTest02323.html index 4855fc4769..7ef9a9b721 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02323.html +++ b/src/main/webapp/xss-04/BenchmarkTest02323.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02323 input[id=BenchmarkTest02323]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02324.html b/src/main/webapp/xss-04/BenchmarkTest02324.html index a5d1fd7b78..76e11e762c 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02324.html +++ b/src/main/webapp/xss-04/BenchmarkTest02324.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02324 input[id=BenchmarkTest02324]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02325.html b/src/main/webapp/xss-04/BenchmarkTest02325.html index 390b3bec3c..69f3652dc8 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02325.html +++ b/src/main/webapp/xss-04/BenchmarkTest02325.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02325 input[id=BenchmarkTest02325]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02326.html b/src/main/webapp/xss-04/BenchmarkTest02326.html index 85e8d6013c..b010c1b71e 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02326.html +++ b/src/main/webapp/xss-04/BenchmarkTest02326.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02326 input[id=BenchmarkTest02326]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02327.html b/src/main/webapp/xss-04/BenchmarkTest02327.html index cf30cd0bdc..968a57fb06 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02327.html +++ b/src/main/webapp/xss-04/BenchmarkTest02327.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02327 input[id=BenchmarkTest02327]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02328.html b/src/main/webapp/xss-04/BenchmarkTest02328.html index d8c3af5fe9..3856ad34c5 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02328.html +++ b/src/main/webapp/xss-04/BenchmarkTest02328.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02328 input[id=BenchmarkTest02328]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02329.html b/src/main/webapp/xss-04/BenchmarkTest02329.html index 42b54e4d87..82d00fdfca 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02329.html +++ b/src/main/webapp/xss-04/BenchmarkTest02329.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02329 input[id=BenchmarkTest02329]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02330.html b/src/main/webapp/xss-04/BenchmarkTest02330.html index dda5434f35..f4f37f60f5 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02330.html +++ b/src/main/webapp/xss-04/BenchmarkTest02330.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02330 input[id=BenchmarkTest02330]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02331.html b/src/main/webapp/xss-04/BenchmarkTest02331.html index f78c373589..c6a7b386a0 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02331.html +++ b/src/main/webapp/xss-04/BenchmarkTest02331.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02331 input[id=BenchmarkTest02331]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").text((xhr.responseText).decodeEscapeSequence()); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02332.html b/src/main/webapp/xss-04/BenchmarkTest02332.html index 4c702ce4d2..b803f770b8 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02332.html +++ b/src/main/webapp/xss-04/BenchmarkTest02332.html @@ -10,7 +10,7 @@

-
+

@@ -27,7 +27,6 @@ } }); -//$("#login-btn").click(function(){ function submitForm() { var text = $("#FormBenchmarkTest02332 input[id=BenchmarkTest02332]").val(); @@ -49,8 +48,8 @@ xhr.onreadystatechange = function () { if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { $("#code").html(xhr.responseText); - }else{ - $("#code").text("Error " + xhr.status + " " + xhr.statusText + " ocurred."); + } else { + $("#code").text("Error " + xhr.status + " " + xhr.statusText + " occurred."); } } xhr.send(formData); diff --git a/src/main/webapp/xss-04/BenchmarkTest02397.html b/src/main/webapp/xss-04/BenchmarkTest02397.html index 28460a4850..3bcdfbe083 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02397.html +++ b/src/main/webapp/xss-04/BenchmarkTest02397.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02398.html b/src/main/webapp/xss-04/BenchmarkTest02398.html index bc79ced284..9098797e6d 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02398.html +++ b/src/main/webapp/xss-04/BenchmarkTest02398.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02402.html b/src/main/webapp/xss-04/BenchmarkTest02402.html index b0ded36cb8..44f820c134 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02402.html +++ b/src/main/webapp/xss-04/BenchmarkTest02402.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02403.html b/src/main/webapp/xss-04/BenchmarkTest02403.html index 38cf155b72..0b8c8d5e64 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02403.html +++ b/src/main/webapp/xss-04/BenchmarkTest02403.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02407.html b/src/main/webapp/xss-04/BenchmarkTest02407.html index 5df4699a27..c170374fa2 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02407.html +++ b/src/main/webapp/xss-04/BenchmarkTest02407.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02408.html b/src/main/webapp/xss-04/BenchmarkTest02408.html index 586cd24440..370d911718 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02408.html +++ b/src/main/webapp/xss-04/BenchmarkTest02408.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02482.html b/src/main/webapp/xss-04/BenchmarkTest02482.html index 22aa1562cf..0bad5c505b 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02482.html +++ b/src/main/webapp/xss-04/BenchmarkTest02482.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-04/BenchmarkTest02483.html b/src/main/webapp/xss-04/BenchmarkTest02483.html index 6d195a616e..7f7dfb56f1 100644 --- a/src/main/webapp/xss-04/BenchmarkTest02483.html +++ b/src/main/webapp/xss-04/BenchmarkTest02483.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02487.html b/src/main/webapp/xss-05/BenchmarkTest02487.html index 251db3c37f..26f48124cc 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02487.html +++ b/src/main/webapp/xss-05/BenchmarkTest02487.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02488.html b/src/main/webapp/xss-05/BenchmarkTest02488.html index 32b314f09d..207c93e667 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02488.html +++ b/src/main/webapp/xss-05/BenchmarkTest02488.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02492.html b/src/main/webapp/xss-05/BenchmarkTest02492.html index d20e5e34ab..ebaac7c351 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02492.html +++ b/src/main/webapp/xss-05/BenchmarkTest02492.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02493.html b/src/main/webapp/xss-05/BenchmarkTest02493.html index 8eb2e8322e..61a8310538 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02493.html +++ b/src/main/webapp/xss-05/BenchmarkTest02493.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02578.html b/src/main/webapp/xss-05/BenchmarkTest02578.html index a5429ed972..a3855f8c33 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02578.html +++ b/src/main/webapp/xss-05/BenchmarkTest02578.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02579.html b/src/main/webapp/xss-05/BenchmarkTest02579.html index 79ceb1bb95..6ce8edc160 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02579.html +++ b/src/main/webapp/xss-05/BenchmarkTest02579.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02580.html b/src/main/webapp/xss-05/BenchmarkTest02580.html index a2d0c4b03f..7e1e474ab5 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02580.html +++ b/src/main/webapp/xss-05/BenchmarkTest02580.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02581.html b/src/main/webapp/xss-05/BenchmarkTest02581.html index 92e6a10f74..2fae96b1eb 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02581.html +++ b/src/main/webapp/xss-05/BenchmarkTest02581.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02582.html b/src/main/webapp/xss-05/BenchmarkTest02582.html index 8199c2bf0d..7475cb0c48 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02582.html +++ b/src/main/webapp/xss-05/BenchmarkTest02582.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02583.html b/src/main/webapp/xss-05/BenchmarkTest02583.html index 102210c3a0..50eab94add 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02583.html +++ b/src/main/webapp/xss-05/BenchmarkTest02583.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02584.html b/src/main/webapp/xss-05/BenchmarkTest02584.html index 5dcc6266d8..bb374eafd1 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02584.html +++ b/src/main/webapp/xss-05/BenchmarkTest02584.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02585.html b/src/main/webapp/xss-05/BenchmarkTest02585.html index 7b9e3aa5e7..3985e27dd8 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02585.html +++ b/src/main/webapp/xss-05/BenchmarkTest02585.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02586.html b/src/main/webapp/xss-05/BenchmarkTest02586.html index fb239e6ec1..686a54cab7 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02586.html +++ b/src/main/webapp/xss-05/BenchmarkTest02586.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02587.html b/src/main/webapp/xss-05/BenchmarkTest02587.html index d6b8087844..4bbff66641 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02587.html +++ b/src/main/webapp/xss-05/BenchmarkTest02587.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02588.html b/src/main/webapp/xss-05/BenchmarkTest02588.html index 8fc633cdf1..49aca43187 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02588.html +++ b/src/main/webapp/xss-05/BenchmarkTest02588.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02589.html b/src/main/webapp/xss-05/BenchmarkTest02589.html index 84685b90eb..957c1912ba 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02589.html +++ b/src/main/webapp/xss-05/BenchmarkTest02589.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02590.html b/src/main/webapp/xss-05/BenchmarkTest02590.html index 4e4c0ed7dd..2f820b9f10 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02590.html +++ b/src/main/webapp/xss-05/BenchmarkTest02590.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02591.html b/src/main/webapp/xss-05/BenchmarkTest02591.html index 2abd50a3a2..959298cee3 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02591.html +++ b/src/main/webapp/xss-05/BenchmarkTest02591.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02592.html b/src/main/webapp/xss-05/BenchmarkTest02592.html index cf5f8ecb1d..b9a994ae15 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02592.html +++ b/src/main/webapp/xss-05/BenchmarkTest02592.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02593.html b/src/main/webapp/xss-05/BenchmarkTest02593.html index c144fb4bfa..246d6bc314 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02593.html +++ b/src/main/webapp/xss-05/BenchmarkTest02593.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02594.html b/src/main/webapp/xss-05/BenchmarkTest02594.html index 045564f788..da0d973531 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02594.html +++ b/src/main/webapp/xss-05/BenchmarkTest02594.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02595.html b/src/main/webapp/xss-05/BenchmarkTest02595.html index c76442f1a0..1887852ccd 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02595.html +++ b/src/main/webapp/xss-05/BenchmarkTest02595.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02596.html b/src/main/webapp/xss-05/BenchmarkTest02596.html index 2239a1f54f..c51980e515 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02596.html +++ b/src/main/webapp/xss-05/BenchmarkTest02596.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02597.html b/src/main/webapp/xss-05/BenchmarkTest02597.html index 92afbb1c63..83bb39101f 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02597.html +++ b/src/main/webapp/xss-05/BenchmarkTest02597.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02598.html b/src/main/webapp/xss-05/BenchmarkTest02598.html index 5841ce49ec..b538c326ea 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02598.html +++ b/src/main/webapp/xss-05/BenchmarkTest02598.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02599.html b/src/main/webapp/xss-05/BenchmarkTest02599.html index 9fec9810c2..832db41c71 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02599.html +++ b/src/main/webapp/xss-05/BenchmarkTest02599.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02600.html b/src/main/webapp/xss-05/BenchmarkTest02600.html index dd7377382c..8effbbbd72 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02600.html +++ b/src/main/webapp/xss-05/BenchmarkTest02600.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02601.html b/src/main/webapp/xss-05/BenchmarkTest02601.html index c0cac3306e..a084cbbd19 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02601.html +++ b/src/main/webapp/xss-05/BenchmarkTest02601.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02608.html b/src/main/webapp/xss-05/BenchmarkTest02608.html index 78357c047b..e8160c18c2 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02608.html +++ b/src/main/webapp/xss-05/BenchmarkTest02608.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02609.html b/src/main/webapp/xss-05/BenchmarkTest02609.html index 2f680fc8d5..73ce6dfe1d 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02609.html +++ b/src/main/webapp/xss-05/BenchmarkTest02609.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02682.html b/src/main/webapp/xss-05/BenchmarkTest02682.html index 7cc9b66965..8898f87c0d 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02682.html +++ b/src/main/webapp/xss-05/BenchmarkTest02682.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02683.html b/src/main/webapp/xss-05/BenchmarkTest02683.html index 2a444a5a94..7902f6f2b3 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02683.html +++ b/src/main/webapp/xss-05/BenchmarkTest02683.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02687.html b/src/main/webapp/xss-05/BenchmarkTest02687.html index 557e4fad06..204bd2c25d 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02687.html +++ b/src/main/webapp/xss-05/BenchmarkTest02687.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02688.html b/src/main/webapp/xss-05/BenchmarkTest02688.html index 01057f0d21..a607f41891 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02688.html +++ b/src/main/webapp/xss-05/BenchmarkTest02688.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02692.html b/src/main/webapp/xss-05/BenchmarkTest02692.html index ec020325f6..b480cb8dda 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02692.html +++ b/src/main/webapp/xss-05/BenchmarkTest02692.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02693.html b/src/main/webapp/xss-05/BenchmarkTest02693.html index 4553559c1e..2bb0fd07c1 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02693.html +++ b/src/main/webapp/xss-05/BenchmarkTest02693.html @@ -14,7 +14,7 @@
-
 
+
 

diff --git a/src/main/webapp/xss-05/BenchmarkTest02712.html b/src/main/webapp/xss-05/BenchmarkTest02712.html index 3564e879a5..4eea441465 100644 --- a/src/main/webapp/xss-05/BenchmarkTest02712.html +++ b/src/main/webapp/xss-05/BenchmarkTest02712.html @@ -14,7 +14,7 @@
-
 
+
 

From fa09d91046a01ab3e230fb810071e2573b923fc6 Mon Sep 17 00:00:00 2001 From: davewichers Date: Thu, 3 Dec 2020 15:10:33 -0500 Subject: [PATCH 77/92] Remove duplicate path constant to test files directory. Update all test cases to use this new constant name. Update test case headers to point to new OWASP Benchmark project page on new OWASP site. Clean up a few code constructs in test cases that generated compiler code quality warnings. --- .../org/owasp/benchmark/helpers/Utils.java | 3 -- .../testcode/BenchmarkTest00001.java | 2 +- .../testcode/BenchmarkTest00002.java | 2 +- .../testcode/BenchmarkTest00003.java | 2 +- .../testcode/BenchmarkTest00005.java | 6 ++-- .../testcode/BenchmarkTest00006.java | 4 +-- .../testcode/BenchmarkTest00007.java | 4 +-- .../testcode/BenchmarkTest00008.java | 4 +-- .../testcode/BenchmarkTest00009.java | 6 ++-- .../testcode/BenchmarkTest00011.java | 4 +-- .../testcode/BenchmarkTest00013.java | 4 +-- .../testcode/BenchmarkTest00014.java | 4 +-- .../testcode/BenchmarkTest00015.java | 4 +-- .../testcode/BenchmarkTest00016.java | 3 -- .../testcode/BenchmarkTest00017.java | 4 +-- .../testcode/BenchmarkTest00018.java | 4 +-- .../testcode/BenchmarkTest00019.java | 6 ++-- .../testcode/BenchmarkTest00020.java | 6 ++-- .../testcode/BenchmarkTest00022.java | 6 ++-- .../testcode/BenchmarkTest00024.java | 4 +-- .../testcode/BenchmarkTest00026.java | 4 +-- .../testcode/BenchmarkTest00027.java | 4 +-- .../testcode/BenchmarkTest00028.java | 6 ++-- .../testcode/BenchmarkTest00029.java | 6 ++-- .../testcode/BenchmarkTest00030.java | 4 +-- .../testcode/BenchmarkTest00031.java | 4 +-- .../testcode/BenchmarkTest00032.java | 4 +-- .../testcode/BenchmarkTest00033.java | 4 +-- .../testcode/BenchmarkTest00034.java | 4 +-- .../testcode/BenchmarkTest00035.java | 6 ++-- .../testcode/BenchmarkTest00036.java | 4 +-- .../testcode/BenchmarkTest00037.java | 4 +-- .../testcode/BenchmarkTest00038.java | 4 +-- .../testcode/BenchmarkTest00039.java | 6 ++-- .../testcode/BenchmarkTest00040.java | 4 +-- .../testcode/BenchmarkTest00041.java | 4 +-- .../testcode/BenchmarkTest00043.java | 4 +-- .../testcode/BenchmarkTest00045.java | 29 +++++-------------- .../testcode/BenchmarkTest00046.java | 6 ++-- .../testcode/BenchmarkTest00047.java | 4 +-- .../testcode/BenchmarkTest00048.java | 4 +-- .../testcode/BenchmarkTest00049.java | 4 +-- .../testcode/BenchmarkTest00050.java | 6 ++-- .../testcode/BenchmarkTest00051.java | 4 +-- .../testcode/BenchmarkTest00052.java | 4 +-- .../testcode/BenchmarkTest00053.java | 2 +- .../testcode/BenchmarkTest00054.java | 2 +- .../testcode/BenchmarkTest00055.java | 2 +- .../testcode/BenchmarkTest00056.java | 2 +- .../testcode/BenchmarkTest00057.java | 2 +- .../testcode/BenchmarkTest00058.java | 2 +- .../testcode/BenchmarkTest00059.java | 2 +- .../testcode/BenchmarkTest00060.java | 2 +- .../testcode/BenchmarkTest00062.java | 2 +- .../testcode/BenchmarkTest00063.java | 2 +- .../testcode/BenchmarkTest00064.java | 2 +- .../testcode/BenchmarkTest00065.java | 2 +- .../testcode/BenchmarkTest00069.java | 2 +- .../testcode/BenchmarkTest00070.java | 2 +- .../testcode/BenchmarkTest00071.java | 2 +- .../testcode/BenchmarkTest00072.java | 2 +- .../testcode/BenchmarkTest00073.java | 2 +- .../testcode/BenchmarkTest00074.java | 2 +- .../testcode/BenchmarkTest00075.java | 2 +- .../testcode/BenchmarkTest00076.java | 2 +- .../testcode/BenchmarkTest00102.java | 2 +- .../testcode/BenchmarkTest00119.java | 6 ++-- .../testcode/BenchmarkTest00120.java | 6 ++-- .../testcode/BenchmarkTest00121.java | 2 +- .../testcode/BenchmarkTest00122.java | 2 +- .../testcode/BenchmarkTest00123.java | 6 ++-- .../testcode/BenchmarkTest00124.java | 6 ++-- .../testcode/BenchmarkTest00125.java | 6 ++-- .../testcode/BenchmarkTest00126.java | 2 +- .../testcode/BenchmarkTest00127.java | 2 +- .../testcode/BenchmarkTest00128.java | 2 +- .../testcode/BenchmarkTest00129.java | 2 +- .../testcode/BenchmarkTest00130.java | 2 +- .../testcode/BenchmarkTest00131.java | 4 +-- .../testcode/BenchmarkTest00132.java | 6 ++-- .../testcode/BenchmarkTest00133.java | 6 ++-- .../testcode/BenchmarkTest00134.java | 29 +++++-------------- .../testcode/BenchmarkTest00135.java | 29 +++++-------------- .../testcode/BenchmarkTest00136.java | 6 ++-- .../testcode/BenchmarkTest00137.java | 6 ++-- .../testcode/BenchmarkTest00141.java | 6 ++-- .../testcode/BenchmarkTest00142.java | 6 ++-- .../testcode/BenchmarkTest00143.java | 6 ++-- .../testcode/BenchmarkTest00144.java | 4 +-- .../testcode/BenchmarkTest00145.java | 4 +-- .../testcode/BenchmarkTest00146.java | 4 +-- .../testcode/BenchmarkTest00147.java | 4 +-- .../testcode/BenchmarkTest00148.java | 4 +-- .../testcode/BenchmarkTest00149.java | 4 +-- .../testcode/BenchmarkTest00150.java | 4 +-- .../testcode/BenchmarkTest00151.java | 4 +-- .../testcode/BenchmarkTest00152.java | 4 +-- .../testcode/BenchmarkTest00153.java | 4 +-- .../testcode/BenchmarkTest00154.java | 4 +-- .../testcode/BenchmarkTest00155.java | 4 +-- .../testcode/BenchmarkTest00156.java | 4 +-- .../testcode/BenchmarkTest00157.java | 4 +-- .../testcode/BenchmarkTest00158.java | 4 +-- .../testcode/BenchmarkTest00159.java | 4 +-- .../testcode/BenchmarkTest00171.java | 4 +-- .../testcode/BenchmarkTest00172.java | 4 +-- .../testcode/BenchmarkTest00173.java | 4 +-- .../testcode/BenchmarkTest00174.java | 4 +-- .../testcode/BenchmarkTest00175.java | 4 +-- .../testcode/BenchmarkTest00176.java | 4 +-- .../testcode/BenchmarkTest00177.java | 4 +-- .../testcode/BenchmarkTest00189.java | 4 +-- .../testcode/BenchmarkTest00190.java | 4 +-- .../testcode/BenchmarkTest00191.java | 4 +-- .../testcode/BenchmarkTest00192.java | 4 +-- .../testcode/BenchmarkTest00193.java | 4 +-- .../testcode/BenchmarkTest00194.java | 4 +-- .../testcode/BenchmarkTest00195.java | 4 +-- .../testcode/BenchmarkTest00196.java | 4 +-- .../testcode/BenchmarkTest00197.java | 4 +-- .../testcode/BenchmarkTest00200.java | 4 +-- .../testcode/BenchmarkTest00201.java | 4 +-- .../testcode/BenchmarkTest00202.java | 4 +-- .../testcode/BenchmarkTest00203.java | 4 +-- .../testcode/BenchmarkTest00204.java | 4 +-- .../testcode/BenchmarkTest00205.java | 4 +-- .../testcode/BenchmarkTest00206.java | 4 +-- .../testcode/BenchmarkTest00207.java | 4 +-- .../testcode/BenchmarkTest00208.java | 6 ++-- .../testcode/BenchmarkTest00209.java | 6 ++-- .../testcode/BenchmarkTest00210.java | 6 ++-- .../testcode/BenchmarkTest00211.java | 2 +- .../testcode/BenchmarkTest00212.java | 2 +- .../testcode/BenchmarkTest00213.java | 2 +- .../testcode/BenchmarkTest00214.java | 2 +- .../testcode/BenchmarkTest00215.java | 6 ++-- .../testcode/BenchmarkTest00216.java | 6 ++-- .../testcode/BenchmarkTest00217.java | 4 +-- .../testcode/BenchmarkTest00218.java | 6 ++-- .../testcode/BenchmarkTest00219.java | 6 ++-- .../testcode/BenchmarkTest00220.java | 6 ++-- .../testcode/BenchmarkTest00221.java | 6 ++-- .../testcode/BenchmarkTest00222.java | 6 ++-- .../testcode/BenchmarkTest00223.java | 6 ++-- .../testcode/BenchmarkTest00224.java | 6 ++-- .../testcode/BenchmarkTest00225.java | 6 ++-- .../testcode/BenchmarkTest00226.java | 6 ++-- .../testcode/BenchmarkTest00227.java | 6 ++-- .../testcode/BenchmarkTest00228.java | 6 ++-- .../testcode/BenchmarkTest00229.java | 6 ++-- .../testcode/BenchmarkTest00242.java | 3 -- .../testcode/BenchmarkTest00250.java | 4 +-- .../testcode/BenchmarkTest00251.java | 4 +-- .../testcode/BenchmarkTest00252.java | 4 +-- .../testcode/BenchmarkTest00253.java | 4 +-- .../testcode/BenchmarkTest00254.java | 6 ++-- .../testcode/BenchmarkTest00255.java | 2 +- .../testcode/BenchmarkTest00256.java | 6 ++-- .../testcode/BenchmarkTest00257.java | 6 ++-- .../testcode/BenchmarkTest00258.java | 6 ++-- .../testcode/BenchmarkTest00259.java | 6 ++-- .../testcode/BenchmarkTest00260.java | 6 ++-- .../testcode/BenchmarkTest00261.java | 6 ++-- .../testcode/BenchmarkTest00262.java | 4 +-- .../testcode/BenchmarkTest00263.java | 6 ++-- .../testcode/BenchmarkTest00264.java | 6 ++-- .../testcode/BenchmarkTest00265.java | 6 ++-- .../testcode/BenchmarkTest00266.java | 6 ++-- .../testcode/BenchmarkTest00267.java | 6 ++-- .../testcode/BenchmarkTest00268.java | 6 ++-- .../testcode/BenchmarkTest00269.java | 6 ++-- .../testcode/BenchmarkTest00270.java | 6 ++-- .../testcode/BenchmarkTest00271.java | 6 ++-- .../testcode/BenchmarkTest00272.java | 6 ++-- .../testcode/BenchmarkTest00273.java | 6 ++-- .../testcode/BenchmarkTest00274.java | 6 ++-- .../testcode/BenchmarkTest00275.java | 4 +-- .../testcode/BenchmarkTest00276.java | 4 +-- .../testcode/BenchmarkTest00277.java | 4 +-- .../testcode/BenchmarkTest00278.java | 4 +-- .../testcode/BenchmarkTest00279.java | 4 +-- .../testcode/BenchmarkTest00280.java | 4 +-- .../testcode/BenchmarkTest00281.java | 4 +-- .../testcode/BenchmarkTest00282.java | 4 +-- .../testcode/BenchmarkTest00283.java | 4 +-- .../testcode/BenchmarkTest00284.java | 4 +-- .../testcode/BenchmarkTest00285.java | 4 +-- .../testcode/BenchmarkTest00286.java | 4 +-- .../testcode/BenchmarkTest00287.java | 4 +-- .../testcode/BenchmarkTest00288.java | 4 +-- .../testcode/BenchmarkTest00289.java | 4 +-- .../testcode/BenchmarkTest00290.java | 4 +-- .../testcode/BenchmarkTest00291.java | 4 +-- .../testcode/BenchmarkTest00292.java | 4 +-- .../testcode/BenchmarkTest00293.java | 4 +-- .../testcode/BenchmarkTest00294.java | 4 +-- .../testcode/BenchmarkTest00295.java | 4 +-- .../testcode/BenchmarkTest00301.java | 4 +-- .../testcode/BenchmarkTest00302.java | 4 +-- .../testcode/BenchmarkTest00303.java | 4 +-- .../testcode/BenchmarkTest00304.java | 4 +-- .../testcode/BenchmarkTest00305.java | 4 +-- .../testcode/BenchmarkTest00306.java | 4 +-- .../testcode/BenchmarkTest00307.java | 4 +-- .../testcode/BenchmarkTest00308.java | 4 +-- .../testcode/BenchmarkTest00309.java | 4 +-- .../testcode/BenchmarkTest00310.java | 4 +-- .../testcode/BenchmarkTest00311.java | 4 +-- .../testcode/BenchmarkTest00321.java | 4 +-- .../testcode/BenchmarkTest00322.java | 4 +-- .../testcode/BenchmarkTest00323.java | 4 +-- .../testcode/BenchmarkTest00324.java | 4 +-- .../testcode/BenchmarkTest00325.java | 4 +-- .../testcode/BenchmarkTest00326.java | 4 +-- .../testcode/BenchmarkTest00327.java | 4 +-- .../testcode/BenchmarkTest00328.java | 4 +-- .../testcode/BenchmarkTest00329.java | 4 +-- .../testcode/BenchmarkTest00330.java | 4 +-- .../testcode/BenchmarkTest00331.java | 4 +-- .../testcode/BenchmarkTest00332.java | 4 +-- .../testcode/BenchmarkTest00333.java | 4 +-- .../testcode/BenchmarkTest00334.java | 4 +-- .../testcode/BenchmarkTest00335.java | 4 +-- .../testcode/BenchmarkTest00337.java | 4 +-- .../testcode/BenchmarkTest00338.java | 4 +-- .../testcode/BenchmarkTest00339.java | 4 +-- .../testcode/BenchmarkTest00340.java | 4 +-- .../testcode/BenchmarkTest00341.java | 4 +-- .../testcode/BenchmarkTest00342.java | 4 +-- .../testcode/BenchmarkTest00343.java | 4 +-- .../testcode/BenchmarkTest00344.java | 4 +-- .../testcode/BenchmarkTest00345.java | 2 +- .../testcode/BenchmarkTest00346.java | 6 ++-- .../testcode/BenchmarkTest00350.java | 6 ++-- .../testcode/BenchmarkTest00351.java | 6 ++-- .../testcode/BenchmarkTest00352.java | 2 +- .../testcode/BenchmarkTest00353.java | 2 +- .../testcode/BenchmarkTest00354.java | 6 ++-- .../testcode/BenchmarkTest00355.java | 6 ++-- .../testcode/BenchmarkTest00356.java | 6 ++-- .../testcode/BenchmarkTest00357.java | 2 +- .../testcode/BenchmarkTest00358.java | 2 +- .../testcode/BenchmarkTest00359.java | 4 +-- .../testcode/BenchmarkTest00360.java | 6 ++-- .../testcode/BenchmarkTest00361.java | 6 ++-- .../testcode/BenchmarkTest00362.java | 6 ++-- .../testcode/BenchmarkTest00363.java | 29 +++++-------------- .../testcode/BenchmarkTest00364.java | 6 ++-- .../testcode/BenchmarkTest00365.java | 6 ++-- .../testcode/BenchmarkTest00366.java | 6 ++-- .../testcode/BenchmarkTest00370.java | 6 ++-- .../testcode/BenchmarkTest00371.java | 6 ++-- .../testcode/BenchmarkTest00372.java | 6 ++-- .../testcode/BenchmarkTest00373.java | 6 ++-- .../testcode/BenchmarkTest00374.java | 6 ++-- .../testcode/BenchmarkTest00375.java | 4 +-- .../testcode/BenchmarkTest00376.java | 4 +-- .../testcode/BenchmarkTest00377.java | 4 +-- .../testcode/BenchmarkTest00378.java | 4 +-- .../testcode/BenchmarkTest00379.java | 4 +-- .../testcode/BenchmarkTest00380.java | 4 +-- .../testcode/BenchmarkTest00381.java | 4 +-- .../testcode/BenchmarkTest00382.java | 4 +-- .../testcode/BenchmarkTest00383.java | 4 +-- .../testcode/BenchmarkTest00384.java | 4 +-- .../testcode/BenchmarkTest00385.java | 4 +-- .../testcode/BenchmarkTest00386.java | 4 +-- .../testcode/BenchmarkTest00387.java | 4 +-- .../testcode/BenchmarkTest00388.java | 4 +-- .../testcode/BenchmarkTest00389.java | 4 +-- .../testcode/BenchmarkTest00390.java | 4 +-- .../testcode/BenchmarkTest00391.java | 4 +-- .../testcode/BenchmarkTest00392.java | 4 +-- .../testcode/BenchmarkTest00393.java | 4 +-- .../testcode/BenchmarkTest00394.java | 4 +-- .../testcode/BenchmarkTest00395.java | 4 +-- .../testcode/BenchmarkTest00396.java | 4 +-- .../testcode/BenchmarkTest00404.java | 3 -- .../testcode/BenchmarkTest00405.java | 3 -- .../testcode/BenchmarkTest00406.java | 4 +-- .../testcode/BenchmarkTest00407.java | 4 +-- .../testcode/BenchmarkTest00408.java | 4 +-- .../testcode/BenchmarkTest00409.java | 4 +-- .../testcode/BenchmarkTest00410.java | 4 +-- .../testcode/BenchmarkTest00411.java | 4 +-- .../testcode/BenchmarkTest00412.java | 4 +-- .../testcode/BenchmarkTest00424.java | 4 +-- .../testcode/BenchmarkTest00425.java | 4 +-- .../testcode/BenchmarkTest00426.java | 4 +-- .../testcode/BenchmarkTest00427.java | 4 +-- .../testcode/BenchmarkTest00428.java | 4 +-- .../testcode/BenchmarkTest00429.java | 4 +-- .../testcode/BenchmarkTest00430.java | 4 +-- .../testcode/BenchmarkTest00431.java | 4 +-- .../testcode/BenchmarkTest00432.java | 6 ++-- .../testcode/BenchmarkTest00433.java | 6 ++-- .../testcode/BenchmarkTest00434.java | 4 +-- .../testcode/BenchmarkTest00435.java | 4 +-- .../testcode/BenchmarkTest00436.java | 4 +-- .../testcode/BenchmarkTest00437.java | 4 +-- .../testcode/BenchmarkTest00438.java | 4 +-- .../testcode/BenchmarkTest00439.java | 4 +-- .../testcode/BenchmarkTest00440.java | 4 +-- .../testcode/BenchmarkTest00441.java | 4 +-- .../testcode/BenchmarkTest00442.java | 4 +-- .../testcode/BenchmarkTest00443.java | 2 +- .../testcode/BenchmarkTest00444.java | 6 ++-- .../testcode/BenchmarkTest00445.java | 6 ++-- .../testcode/BenchmarkTest00446.java | 6 ++-- .../testcode/BenchmarkTest00447.java | 2 +- .../testcode/BenchmarkTest00448.java | 6 ++-- .../testcode/BenchmarkTest00449.java | 6 ++-- .../testcode/BenchmarkTest00450.java | 2 +- .../testcode/BenchmarkTest00451.java | 2 +- .../testcode/BenchmarkTest00452.java | 6 ++-- .../testcode/BenchmarkTest00453.java | 6 ++-- .../testcode/BenchmarkTest00454.java | 6 ++-- .../testcode/BenchmarkTest00455.java | 6 ++-- .../testcode/BenchmarkTest00456.java | 6 ++-- .../testcode/BenchmarkTest00457.java | 6 ++-- .../testcode/BenchmarkTest00458.java | 6 ++-- .../testcode/BenchmarkTest00459.java | 6 ++-- .../testcode/BenchmarkTest00460.java | 6 ++-- .../testcode/BenchmarkTest00462.java | 6 ++-- .../testcode/BenchmarkTest00463.java | 6 ++-- .../testcode/BenchmarkTest00464.java | 6 ++-- .../testcode/BenchmarkTest00465.java | 6 ++-- .../testcode/BenchmarkTest00466.java | 6 ++-- .../testcode/BenchmarkTest00467.java | 4 +-- .../testcode/BenchmarkTest00468.java | 4 +-- .../testcode/BenchmarkTest00469.java | 4 +-- .../testcode/BenchmarkTest00470.java | 4 +-- .../testcode/BenchmarkTest00471.java | 4 +-- .../testcode/BenchmarkTest00472.java | 4 +-- .../testcode/BenchmarkTest00473.java | 4 +-- .../testcode/BenchmarkTest00474.java | 4 +-- .../testcode/BenchmarkTest00475.java | 4 +-- .../testcode/BenchmarkTest00476.java | 4 +-- .../testcode/BenchmarkTest00477.java | 4 +-- .../testcode/BenchmarkTest00478.java | 4 +-- .../testcode/BenchmarkTest00479.java | 4 +-- .../testcode/BenchmarkTest00480.java | 4 +-- .../testcode/BenchmarkTest00481.java | 4 +-- .../testcode/BenchmarkTest00492.java | 4 +-- .../testcode/BenchmarkTest00493.java | 4 +-- .../testcode/BenchmarkTest00494.java | 4 +-- .../testcode/BenchmarkTest00495.java | 4 +-- .../testcode/BenchmarkTest00496.java | 4 +-- .../testcode/BenchmarkTest00497.java | 4 +-- .../testcode/BenchmarkTest00498.java | 4 +-- .../testcode/BenchmarkTest00499.java | 4 +-- .../testcode/BenchmarkTest00500.java | 4 +-- .../testcode/BenchmarkTest00508.java | 4 +-- .../testcode/BenchmarkTest00509.java | 4 +-- .../testcode/BenchmarkTest00510.java | 4 +-- .../testcode/BenchmarkTest00511.java | 4 +-- .../testcode/BenchmarkTest00512.java | 4 +-- .../testcode/BenchmarkTest00513.java | 4 +-- .../testcode/BenchmarkTest00514.java | 4 +-- .../testcode/BenchmarkTest00515.java | 4 +-- .../testcode/BenchmarkTest00516.java | 4 +-- .../testcode/BenchmarkTest00517.java | 4 +-- .../testcode/BenchmarkTest00518.java | 4 +-- .../testcode/BenchmarkTest00519.java | 4 +-- .../testcode/BenchmarkTest00520.java | 4 +-- .../testcode/BenchmarkTest00521.java | 6 ++-- .../testcode/BenchmarkTest00522.java | 6 ++-- .../testcode/BenchmarkTest00523.java | 6 ++-- .../testcode/BenchmarkTest00524.java | 2 +- .../testcode/BenchmarkTest00525.java | 6 ++-- .../testcode/BenchmarkTest00526.java | 4 +-- .../testcode/BenchmarkTest00527.java | 4 +-- .../testcode/BenchmarkTest00528.java | 6 ++-- .../testcode/BenchmarkTest00529.java | 6 ++-- .../testcode/BenchmarkTest00531.java | 6 ++-- .../testcode/BenchmarkTest00532.java | 6 ++-- .../testcode/BenchmarkTest00533.java | 6 ++-- .../testcode/BenchmarkTest00534.java | 6 ++-- .../testcode/BenchmarkTest00535.java | 6 ++-- .../testcode/BenchmarkTest00536.java | 6 ++-- .../testcode/BenchmarkTest00537.java | 6 ++-- .../testcode/BenchmarkTest00538.java | 6 ++-- .../testcode/BenchmarkTest00539.java | 6 ++-- .../testcode/BenchmarkTest00540.java | 6 ++-- .../testcode/BenchmarkTest00541.java | 4 +-- .../testcode/BenchmarkTest00542.java | 4 +-- .../testcode/BenchmarkTest00543.java | 4 +-- .../testcode/BenchmarkTest00544.java | 4 +-- .../testcode/BenchmarkTest00545.java | 4 +-- .../testcode/BenchmarkTest00546.java | 4 +-- .../testcode/BenchmarkTest00547.java | 4 +-- .../testcode/BenchmarkTest00548.java | 4 +-- .../testcode/BenchmarkTest00549.java | 4 +-- .../testcode/BenchmarkTest00550.java | 4 +-- .../testcode/BenchmarkTest00551.java | 4 +-- .../testcode/BenchmarkTest00552.java | 4 +-- .../testcode/BenchmarkTest00553.java | 4 +-- .../testcode/BenchmarkTest00554.java | 4 +-- .../testcode/BenchmarkTest00555.java | 4 +-- .../testcode/BenchmarkTest00556.java | 4 +-- .../testcode/BenchmarkTest00557.java | 4 +-- .../testcode/BenchmarkTest00558.java | 4 +-- .../testcode/BenchmarkTest00559.java | 4 +-- .../testcode/BenchmarkTest00567.java | 4 +-- .../testcode/BenchmarkTest00568.java | 4 +-- .../testcode/BenchmarkTest00569.java | 4 +-- .../testcode/BenchmarkTest00570.java | 4 +-- .../testcode/BenchmarkTest00571.java | 4 +-- .../testcode/BenchmarkTest00572.java | 4 +-- .../testcode/BenchmarkTest00573.java | 4 +-- .../testcode/BenchmarkTest00574.java | 4 +-- .../testcode/BenchmarkTest00575.java | 4 +-- .../testcode/BenchmarkTest00576.java | 4 +-- .../testcode/BenchmarkTest00586.java | 4 +-- .../testcode/BenchmarkTest00587.java | 4 +-- .../testcode/BenchmarkTest00588.java | 4 +-- .../testcode/BenchmarkTest00589.java | 4 +-- .../testcode/BenchmarkTest00590.java | 4 +-- .../testcode/BenchmarkTest00591.java | 4 +-- .../testcode/BenchmarkTest00592.java | 4 +-- .../testcode/BenchmarkTest00593.java | 4 +-- .../testcode/BenchmarkTest00594.java | 4 +-- .../testcode/BenchmarkTest00595.java | 4 +-- .../testcode/BenchmarkTest00596.java | 6 ++-- .../testcode/BenchmarkTest00597.java | 6 ++-- .../testcode/BenchmarkTest00598.java | 6 ++-- .../testcode/BenchmarkTest00599.java | 4 +-- .../testcode/BenchmarkTest00600.java | 4 +-- .../testcode/BenchmarkTest00601.java | 4 +-- .../testcode/BenchmarkTest00602.java | 4 +-- .../testcode/BenchmarkTest00603.java | 4 +-- .../testcode/BenchmarkTest00604.java | 4 +-- .../testcode/BenchmarkTest00605.java | 4 +-- .../testcode/BenchmarkTest00606.java | 4 +-- .../testcode/BenchmarkTest00607.java | 4 +-- .../testcode/BenchmarkTest00608.java | 6 ++-- .../testcode/BenchmarkTest00609.java | 6 ++-- .../testcode/BenchmarkTest00610.java | 6 ++-- .../testcode/BenchmarkTest00611.java | 6 ++-- .../testcode/BenchmarkTest00612.java | 2 +- .../testcode/BenchmarkTest00613.java | 6 ++-- .../testcode/BenchmarkTest00614.java | 6 ++-- .../testcode/BenchmarkTest00615.java | 6 ++-- .../testcode/BenchmarkTest00616.java | 6 ++-- .../testcode/BenchmarkTest00617.java | 6 ++-- .../testcode/BenchmarkTest00618.java | 2 +- .../testcode/BenchmarkTest00619.java | 6 ++-- .../testcode/BenchmarkTest00620.java | 6 ++-- .../testcode/BenchmarkTest00621.java | 6 ++-- .../testcode/BenchmarkTest00622.java | 6 ++-- .../testcode/BenchmarkTest00623.java | 4 +-- .../testcode/BenchmarkTest00624.java | 6 ++-- .../testcode/BenchmarkTest00625.java | 6 ++-- .../testcode/BenchmarkTest00626.java | 6 ++-- .../testcode/BenchmarkTest00627.java | 6 ++-- .../testcode/BenchmarkTest00628.java | 6 ++-- .../testcode/BenchmarkTest00629.java | 6 ++-- .../testcode/BenchmarkTest00631.java | 6 ++-- .../testcode/BenchmarkTest00632.java | 6 ++-- .../testcode/BenchmarkTest00633.java | 6 ++-- .../testcode/BenchmarkTest00634.java | 6 ++-- .../testcode/BenchmarkTest00635.java | 6 ++-- .../testcode/BenchmarkTest00636.java | 6 ++-- .../testcode/BenchmarkTest00637.java | 6 ++-- .../testcode/BenchmarkTest00638.java | 6 ++-- .../testcode/BenchmarkTest00639.java | 6 ++-- .../testcode/BenchmarkTest00640.java | 6 ++-- .../testcode/BenchmarkTest00641.java | 6 ++-- .../testcode/BenchmarkTest00642.java | 4 +-- .../testcode/BenchmarkTest00643.java | 4 +-- .../testcode/BenchmarkTest00644.java | 4 +-- .../testcode/BenchmarkTest00645.java | 4 +-- .../testcode/BenchmarkTest00646.java | 4 +-- .../testcode/BenchmarkTest00647.java | 4 +-- .../testcode/BenchmarkTest00648.java | 4 +-- .../testcode/BenchmarkTest00649.java | 4 +-- .../testcode/BenchmarkTest00650.java | 4 +-- .../testcode/BenchmarkTest00651.java | 4 +-- .../testcode/BenchmarkTest00655.java | 3 -- .../testcode/BenchmarkTest00656.java | 4 +-- .../testcode/BenchmarkTest00657.java | 4 +-- .../testcode/BenchmarkTest00658.java | 4 +-- .../testcode/BenchmarkTest00659.java | 4 +-- .../testcode/BenchmarkTest00668.java | 4 +-- .../testcode/BenchmarkTest00669.java | 4 +-- .../testcode/BenchmarkTest00670.java | 4 +-- .../testcode/BenchmarkTest00671.java | 4 +-- .../testcode/BenchmarkTest00672.java | 4 +-- .../testcode/BenchmarkTest00673.java | 4 +-- .../testcode/BenchmarkTest00674.java | 4 +-- .../testcode/BenchmarkTest00675.java | 4 +-- .../testcode/BenchmarkTest00676.java | 4 +-- .../testcode/BenchmarkTest00677.java | 4 +-- .../testcode/BenchmarkTest00679.java | 6 ++-- .../testcode/BenchmarkTest00680.java | 4 +-- .../testcode/BenchmarkTest00681.java | 4 +-- .../testcode/BenchmarkTest00682.java | 4 +-- .../testcode/BenchmarkTest00683.java | 4 +-- .../testcode/BenchmarkTest00684.java | 6 ++-- .../testcode/BenchmarkTest00685.java | 6 ++-- .../testcode/BenchmarkTest00686.java | 2 +- .../testcode/BenchmarkTest00687.java | 2 +- .../testcode/BenchmarkTest00688.java | 6 ++-- .../testcode/BenchmarkTest00689.java | 6 ++-- .../testcode/BenchmarkTest00690.java | 6 ++-- .../testcode/BenchmarkTest00691.java | 6 ++-- .../testcode/BenchmarkTest00692.java | 6 ++-- .../testcode/BenchmarkTest00693.java | 6 ++-- .../testcode/BenchmarkTest00696.java | 6 ++-- .../testcode/BenchmarkTest00697.java | 4 +-- .../testcode/BenchmarkTest00698.java | 4 +-- .../testcode/BenchmarkTest00699.java | 4 +-- .../testcode/BenchmarkTest00700.java | 6 ++-- .../testcode/BenchmarkTest00703.java | 6 ++-- .../testcode/BenchmarkTest00704.java | 6 ++-- .../testcode/BenchmarkTest00705.java | 6 ++-- .../testcode/BenchmarkTest00706.java | 6 ++-- .../testcode/BenchmarkTest00707.java | 6 ++-- .../testcode/BenchmarkTest00708.java | 6 ++-- .../testcode/BenchmarkTest00709.java | 6 ++-- .../testcode/BenchmarkTest00710.java | 6 ++-- .../testcode/BenchmarkTest00711.java | 4 +-- .../testcode/BenchmarkTest00712.java | 4 +-- .../testcode/BenchmarkTest00713.java | 4 +-- .../testcode/BenchmarkTest00714.java | 4 +-- .../testcode/BenchmarkTest00715.java | 4 +-- .../testcode/BenchmarkTest00716.java | 4 +-- .../testcode/BenchmarkTest00717.java | 4 +-- .../testcode/BenchmarkTest00718.java | 4 +-- .../testcode/BenchmarkTest00719.java | 4 +-- .../testcode/BenchmarkTest00720.java | 4 +-- .../testcode/BenchmarkTest00721.java | 4 +-- .../testcode/BenchmarkTest00722.java | 4 +-- .../testcode/BenchmarkTest00723.java | 4 +-- .../testcode/BenchmarkTest00724.java | 4 +-- .../testcode/BenchmarkTest00725.java | 4 +-- .../testcode/BenchmarkTest00726.java | 4 +-- .../testcode/BenchmarkTest00727.java | 4 +-- .../testcode/BenchmarkTest00728.java | 4 +-- .../testcode/BenchmarkTest00729.java | 4 +-- .../testcode/BenchmarkTest00730.java | 4 +-- .../testcode/BenchmarkTest00731.java | 4 +-- .../testcode/BenchmarkTest00732.java | 4 +-- .../testcode/BenchmarkTest00737.java | 4 +-- .../testcode/BenchmarkTest00738.java | 4 +-- .../testcode/BenchmarkTest00739.java | 4 +-- .../testcode/BenchmarkTest00740.java | 4 +-- .../testcode/BenchmarkTest00741.java | 4 +-- .../testcode/BenchmarkTest00742.java | 4 +-- .../testcode/BenchmarkTest00743.java | 4 +-- .../testcode/BenchmarkTest00754.java | 4 +-- .../testcode/BenchmarkTest00755.java | 4 +-- .../testcode/BenchmarkTest00756.java | 4 +-- .../testcode/BenchmarkTest00757.java | 4 +-- .../testcode/BenchmarkTest00758.java | 4 +-- .../testcode/BenchmarkTest00759.java | 4 +-- .../testcode/BenchmarkTest00760.java | 4 +-- .../testcode/BenchmarkTest00761.java | 4 +-- .../testcode/BenchmarkTest00762.java | 4 +-- .../testcode/BenchmarkTest00763.java | 4 +-- .../testcode/BenchmarkTest00768.java | 6 ++-- .../testcode/BenchmarkTest00769.java | 4 +-- .../testcode/BenchmarkTest00770.java | 4 +-- .../testcode/BenchmarkTest00771.java | 4 +-- .../testcode/BenchmarkTest00772.java | 4 +-- .../testcode/BenchmarkTest00773.java | 4 +-- .../testcode/BenchmarkTest00774.java | 4 +-- .../testcode/BenchmarkTest00775.java | 2 +- .../testcode/BenchmarkTest00776.java | 2 +- .../testcode/BenchmarkTest00777.java | 2 +- .../testcode/BenchmarkTest00778.java | 2 +- .../testcode/BenchmarkTest00779.java | 6 ++-- .../testcode/BenchmarkTest00780.java | 6 ++-- .../testcode/BenchmarkTest00781.java | 6 ++-- .../testcode/BenchmarkTest00782.java | 2 +- .../testcode/BenchmarkTest00783.java | 6 ++-- .../testcode/BenchmarkTest00784.java | 6 ++-- .../testcode/BenchmarkTest00785.java | 6 ++-- .../testcode/BenchmarkTest00786.java | 6 ++-- .../testcode/BenchmarkTest00787.java | 6 ++-- .../testcode/BenchmarkTest00788.java | 6 ++-- .../testcode/BenchmarkTest00789.java | 6 ++-- .../testcode/BenchmarkTest00790.java | 6 ++-- .../testcode/BenchmarkTest00791.java | 6 ++-- .../testcode/BenchmarkTest00792.java | 6 ++-- .../testcode/BenchmarkTest00793.java | 6 ++-- .../testcode/BenchmarkTest00794.java | 6 ++-- .../testcode/BenchmarkTest00795.java | 6 ++-- .../testcode/BenchmarkTest00796.java | 6 ++-- .../testcode/BenchmarkTest00797.java | 6 ++-- .../testcode/BenchmarkTest00798.java | 6 ++-- .../testcode/BenchmarkTest00799.java | 4 +-- .../testcode/BenchmarkTest00800.java | 4 +-- .../testcode/BenchmarkTest00801.java | 4 +-- .../testcode/BenchmarkTest00802.java | 4 +-- .../testcode/BenchmarkTest00803.java | 4 +-- .../testcode/BenchmarkTest00804.java | 4 +-- .../testcode/BenchmarkTest00805.java | 4 +-- .../testcode/BenchmarkTest00806.java | 4 +-- .../testcode/BenchmarkTest00807.java | 4 +-- .../testcode/BenchmarkTest00808.java | 4 +-- .../testcode/BenchmarkTest00809.java | 4 +-- .../testcode/BenchmarkTest00810.java | 4 +-- .../testcode/BenchmarkTest00811.java | 4 +-- .../testcode/BenchmarkTest00812.java | 4 +-- .../testcode/BenchmarkTest00813.java | 4 +-- .../testcode/BenchmarkTest00814.java | 4 +-- .../testcode/BenchmarkTest00815.java | 4 +-- .../testcode/BenchmarkTest00816.java | 4 +-- .../testcode/BenchmarkTest00822.java | 4 +-- .../testcode/BenchmarkTest00823.java | 4 +-- .../testcode/BenchmarkTest00824.java | 4 +-- .../testcode/BenchmarkTest00825.java | 4 +-- .../testcode/BenchmarkTest00826.java | 4 +-- .../testcode/BenchmarkTest00827.java | 4 +-- .../testcode/BenchmarkTest00833.java | 4 +-- .../testcode/BenchmarkTest00834.java | 4 +-- .../testcode/BenchmarkTest00835.java | 4 +-- .../testcode/BenchmarkTest00836.java | 4 +-- .../testcode/BenchmarkTest00837.java | 4 +-- .../testcode/BenchmarkTest00838.java | 4 +-- .../testcode/BenchmarkTest00839.java | 4 +-- .../testcode/BenchmarkTest00840.java | 4 +-- .../testcode/BenchmarkTest00841.java | 4 +-- .../testcode/BenchmarkTest00844.java | 4 +-- .../testcode/BenchmarkTest00845.java | 4 +-- .../testcode/BenchmarkTest00846.java | 4 +-- .../testcode/BenchmarkTest00847.java | 4 +-- .../testcode/BenchmarkTest00848.java | 4 +-- .../testcode/BenchmarkTest00849.java | 4 +-- .../testcode/BenchmarkTest00850.java | 4 +-- .../testcode/BenchmarkTest00851.java | 4 +-- .../testcode/BenchmarkTest00852.java | 4 +-- .../testcode/BenchmarkTest00853.java | 6 ++-- .../testcode/BenchmarkTest00854.java | 2 +- .../testcode/BenchmarkTest00855.java | 6 ++-- .../testcode/BenchmarkTest00856.java | 6 ++-- .../testcode/BenchmarkTest00857.java | 6 ++-- .../testcode/BenchmarkTest00858.java | 2 +- .../testcode/BenchmarkTest00859.java | 6 ++-- .../testcode/BenchmarkTest00862.java | 6 ++-- .../testcode/BenchmarkTest00863.java | 4 +-- .../testcode/BenchmarkTest00864.java | 4 +-- .../testcode/BenchmarkTest00865.java | 6 ++-- .../testcode/BenchmarkTest00866.java | 6 ++-- .../testcode/BenchmarkTest00867.java | 6 ++-- .../testcode/BenchmarkTest00868.java | 6 ++-- .../testcode/BenchmarkTest00869.java | 6 ++-- .../testcode/BenchmarkTest00870.java | 6 ++-- .../testcode/BenchmarkTest00871.java | 6 ++-- .../testcode/BenchmarkTest00872.java | 6 ++-- .../testcode/BenchmarkTest00873.java | 6 ++-- .../testcode/BenchmarkTest00874.java | 6 ++-- .../testcode/BenchmarkTest00875.java | 6 ++-- .../testcode/BenchmarkTest00876.java | 6 ++-- .../testcode/BenchmarkTest00877.java | 6 ++-- .../testcode/BenchmarkTest00878.java | 6 ++-- .../testcode/BenchmarkTest00879.java | 4 +-- .../testcode/BenchmarkTest00880.java | 4 +-- .../testcode/BenchmarkTest00881.java | 4 +-- .../testcode/BenchmarkTest00882.java | 4 +-- .../testcode/BenchmarkTest00883.java | 4 +-- .../testcode/BenchmarkTest00884.java | 4 +-- .../testcode/BenchmarkTest00885.java | 4 +-- .../testcode/BenchmarkTest00886.java | 4 +-- .../testcode/BenchmarkTest00887.java | 4 +-- .../testcode/BenchmarkTest00888.java | 4 +-- .../testcode/BenchmarkTest00889.java | 4 +-- .../testcode/BenchmarkTest00890.java | 4 +-- .../testcode/BenchmarkTest00891.java | 4 +-- .../testcode/BenchmarkTest00892.java | 4 +-- .../testcode/BenchmarkTest00893.java | 4 +-- .../testcode/BenchmarkTest00894.java | 4 +-- .../testcode/BenchmarkTest00895.java | 4 +-- .../testcode/BenchmarkTest00896.java | 4 +-- .../testcode/BenchmarkTest00897.java | 4 +-- .../testcode/BenchmarkTest00904.java | 3 -- .../testcode/BenchmarkTest00905.java | 4 +-- .../testcode/BenchmarkTest00906.java | 4 +-- .../testcode/BenchmarkTest00907.java | 4 +-- .../testcode/BenchmarkTest00908.java | 4 +-- .../testcode/BenchmarkTest00909.java | 4 +-- .../testcode/BenchmarkTest00910.java | 4 +-- .../testcode/BenchmarkTest00922.java | 4 +-- .../testcode/BenchmarkTest00923.java | 4 +-- .../testcode/BenchmarkTest00924.java | 4 +-- .../testcode/BenchmarkTest00925.java | 4 +-- .../testcode/BenchmarkTest00926.java | 4 +-- .../testcode/BenchmarkTest00927.java | 4 +-- .../testcode/BenchmarkTest00928.java | 4 +-- .../testcode/BenchmarkTest00929.java | 4 +-- .../testcode/BenchmarkTest00930.java | 4 +-- .../testcode/BenchmarkTest00931.java | 4 +-- .../testcode/BenchmarkTest00932.java | 4 +-- .../testcode/BenchmarkTest00933.java | 6 ++-- .../testcode/BenchmarkTest00935.java | 6 ++-- .../testcode/BenchmarkTest00936.java | 4 +-- .../testcode/BenchmarkTest00937.java | 4 +-- .../testcode/BenchmarkTest00938.java | 4 +-- .../testcode/BenchmarkTest00939.java | 4 +-- .../testcode/BenchmarkTest00940.java | 4 +-- .../testcode/BenchmarkTest00941.java | 4 +-- .../testcode/BenchmarkTest00942.java | 2 +- .../testcode/BenchmarkTest00943.java | 2 +- .../testcode/BenchmarkTest00944.java | 2 +- .../testcode/BenchmarkTest00945.java | 2 +- .../testcode/BenchmarkTest00946.java | 2 +- .../testcode/BenchmarkTest00949.java | 2 +- .../testcode/BenchmarkTest00951.java | 2 +- .../testcode/BenchmarkTest00952.java | 2 +- .../testcode/BenchmarkTest00953.java | 25 ++++------------ .../testcode/BenchmarkTest00954.java | 25 ++++------------ .../testcode/BenchmarkTest00955.java | 25 ++++------------ .../testcode/BenchmarkTest00956.java | 25 ++++------------ .../testcode/BenchmarkTest00957.java | 2 +- .../testcode/BenchmarkTest00958.java | 2 +- .../testcode/BenchmarkTest00961.java | 2 +- .../testcode/BenchmarkTest00962.java | 2 +- .../testcode/BenchmarkTest00963.java | 2 +- .../testcode/BenchmarkTest00964.java | 2 +- .../testcode/BenchmarkTest00965.java | 2 +- .../testcode/BenchmarkTest00966.java | 2 +- .../testcode/BenchmarkTest00967.java | 2 +- .../testcode/BenchmarkTest01007.java | 2 +- .../testcode/BenchmarkTest01015.java | 6 ++-- .../testcode/BenchmarkTest01016.java | 6 ++-- .../testcode/BenchmarkTest01017.java | 6 ++-- .../testcode/BenchmarkTest01018.java | 6 ++-- .../testcode/BenchmarkTest01019.java | 2 +- .../testcode/BenchmarkTest01020.java | 6 ++-- .../testcode/BenchmarkTest01021.java | 2 +- .../testcode/BenchmarkTest01022.java | 2 +- .../testcode/BenchmarkTest01025.java | 6 ++-- .../testcode/BenchmarkTest01026.java | 4 +-- .../testcode/BenchmarkTest01027.java | 4 +-- .../testcode/BenchmarkTest01028.java | 6 ++-- .../testcode/BenchmarkTest01029.java | 6 ++-- .../testcode/BenchmarkTest01030.java | 6 ++-- .../testcode/BenchmarkTest01031.java | 6 ++-- .../testcode/BenchmarkTest01032.java | 6 ++-- .../testcode/BenchmarkTest01033.java | 6 ++-- .../testcode/BenchmarkTest01034.java | 6 ++-- .../testcode/BenchmarkTest01035.java | 6 ++-- .../testcode/BenchmarkTest01036.java | 6 ++-- .../testcode/BenchmarkTest01037.java | 6 ++-- .../testcode/BenchmarkTest01038.java | 6 ++-- .../testcode/BenchmarkTest01039.java | 6 ++-- .../testcode/BenchmarkTest01040.java | 6 ++-- .../testcode/BenchmarkTest01041.java | 6 ++-- .../testcode/BenchmarkTest01042.java | 6 ++-- .../testcode/BenchmarkTest01043.java | 6 ++-- .../testcode/BenchmarkTest01044.java | 6 ++-- .../testcode/BenchmarkTest01045.java | 6 ++-- .../testcode/BenchmarkTest01046.java | 4 +-- .../testcode/BenchmarkTest01047.java | 4 +-- .../testcode/BenchmarkTest01048.java | 4 +-- .../testcode/BenchmarkTest01049.java | 4 +-- .../testcode/BenchmarkTest01050.java | 4 +-- .../testcode/BenchmarkTest01051.java | 4 +-- .../testcode/BenchmarkTest01052.java | 4 +-- .../testcode/BenchmarkTest01053.java | 4 +-- .../testcode/BenchmarkTest01054.java | 4 +-- .../testcode/BenchmarkTest01055.java | 4 +-- .../testcode/BenchmarkTest01056.java | 4 +-- .../testcode/BenchmarkTest01057.java | 4 +-- .../testcode/BenchmarkTest01062.java | 3 -- .../testcode/BenchmarkTest01063.java | 4 +-- .../testcode/BenchmarkTest01064.java | 4 +-- .../testcode/BenchmarkTest01065.java | 4 +-- .../testcode/BenchmarkTest01066.java | 4 +-- .../testcode/BenchmarkTest01067.java | 4 +-- .../testcode/BenchmarkTest01068.java | 4 +-- .../testcode/BenchmarkTest01080.java | 4 +-- .../testcode/BenchmarkTest01081.java | 4 +-- .../testcode/BenchmarkTest01082.java | 4 +-- .../testcode/BenchmarkTest01083.java | 4 +-- .../testcode/BenchmarkTest01084.java | 4 +-- .../testcode/BenchmarkTest01085.java | 4 +-- .../testcode/BenchmarkTest01086.java | 4 +-- .../testcode/BenchmarkTest01089.java | 4 +-- .../testcode/BenchmarkTest01090.java | 4 +-- .../testcode/BenchmarkTest01091.java | 4 +-- .../testcode/BenchmarkTest01092.java | 4 +-- .../testcode/BenchmarkTest01093.java | 4 +-- .../testcode/BenchmarkTest01094.java | 4 +-- .../testcode/BenchmarkTest01095.java | 4 +-- .../testcode/BenchmarkTest01096.java | 4 +-- .../testcode/BenchmarkTest01097.java | 4 +-- .../testcode/BenchmarkTest01098.java | 4 +-- .../testcode/BenchmarkTest01099.java | 6 ++-- .../testcode/BenchmarkTest01100.java | 6 ++-- .../testcode/BenchmarkTest01101.java | 6 ++-- .../testcode/BenchmarkTest01102.java | 6 ++-- .../testcode/BenchmarkTest01103.java | 6 ++-- .../testcode/BenchmarkTest01104.java | 2 +- .../testcode/BenchmarkTest01105.java | 6 ++-- .../testcode/BenchmarkTest01106.java | 6 ++-- .../testcode/BenchmarkTest01107.java | 6 ++-- .../testcode/BenchmarkTest01108.java | 2 +- .../testcode/BenchmarkTest01109.java | 4 +-- .../testcode/BenchmarkTest01110.java | 6 ++-- .../testcode/BenchmarkTest01111.java | 6 ++-- .../testcode/BenchmarkTest01112.java | 6 ++-- .../testcode/BenchmarkTest01113.java | 6 ++-- .../testcode/BenchmarkTest01114.java | 6 ++-- .../testcode/BenchmarkTest01115.java | 6 ++-- .../testcode/BenchmarkTest01116.java | 29 +++++-------------- .../testcode/BenchmarkTest01117.java | 29 +++++-------------- .../testcode/BenchmarkTest01118.java | 6 ++-- .../testcode/BenchmarkTest01120.java | 6 ++-- .../testcode/BenchmarkTest01121.java | 6 ++-- .../testcode/BenchmarkTest01122.java | 6 ++-- .../testcode/BenchmarkTest01123.java | 6 ++-- .../testcode/BenchmarkTest01124.java | 6 ++-- .../testcode/BenchmarkTest01125.java | 6 ++-- .../testcode/BenchmarkTest01126.java | 6 ++-- .../testcode/BenchmarkTest01142.java | 4 +-- .../testcode/BenchmarkTest01143.java | 4 +-- .../testcode/BenchmarkTest01144.java | 4 +-- .../testcode/BenchmarkTest01145.java | 4 +-- .../testcode/BenchmarkTest01146.java | 4 +-- .../testcode/BenchmarkTest01147.java | 2 +- .../testcode/BenchmarkTest01148.java | 6 ++-- .../testcode/BenchmarkTest01149.java | 6 ++-- .../testcode/BenchmarkTest01150.java | 6 ++-- .../testcode/BenchmarkTest01151.java | 2 +- .../testcode/BenchmarkTest01152.java | 2 +- .../testcode/BenchmarkTest01153.java | 2 +- .../testcode/BenchmarkTest01155.java | 4 +-- .../testcode/BenchmarkTest01156.java | 6 ++-- .../testcode/BenchmarkTest01157.java | 6 ++-- .../testcode/BenchmarkTest01158.java | 6 ++-- .../testcode/BenchmarkTest01159.java | 6 ++-- .../testcode/BenchmarkTest01160.java | 6 ++-- .../testcode/BenchmarkTest01161.java | 6 ++-- .../testcode/BenchmarkTest01164.java | 6 ++-- .../testcode/BenchmarkTest01165.java | 6 ++-- .../testcode/BenchmarkTest01166.java | 6 ++-- .../testcode/BenchmarkTest01167.java | 6 ++-- .../testcode/BenchmarkTest01168.java | 6 ++-- .../testcode/BenchmarkTest01169.java | 6 ++-- .../testcode/BenchmarkTest01170.java | 6 ++-- .../testcode/BenchmarkTest01171.java | 4 +-- .../testcode/BenchmarkTest01172.java | 4 +-- .../testcode/BenchmarkTest01173.java | 4 +-- .../testcode/BenchmarkTest01174.java | 4 +-- .../testcode/BenchmarkTest01175.java | 4 +-- .../testcode/BenchmarkTest01176.java | 4 +-- .../testcode/BenchmarkTest01177.java | 4 +-- .../testcode/BenchmarkTest01178.java | 4 +-- .../testcode/BenchmarkTest01179.java | 4 +-- .../testcode/BenchmarkTest01180.java | 4 +-- .../testcode/BenchmarkTest01181.java | 4 +-- .../testcode/BenchmarkTest01182.java | 4 +-- .../testcode/BenchmarkTest01188.java | 4 +-- .../testcode/BenchmarkTest01189.java | 4 +-- .../testcode/BenchmarkTest01190.java | 4 +-- .../testcode/BenchmarkTest01191.java | 4 +-- .../testcode/BenchmarkTest01192.java | 4 +-- .../testcode/BenchmarkTest01193.java | 4 +-- .../testcode/BenchmarkTest01194.java | 4 +-- .../testcode/BenchmarkTest01203.java | 4 +-- .../testcode/BenchmarkTest01204.java | 4 +-- .../testcode/BenchmarkTest01205.java | 4 +-- .../testcode/BenchmarkTest01206.java | 4 +-- .../testcode/BenchmarkTest01207.java | 4 +-- .../testcode/BenchmarkTest01208.java | 4 +-- .../testcode/BenchmarkTest01209.java | 4 +-- .../testcode/BenchmarkTest01210.java | 4 +-- .../testcode/BenchmarkTest01211.java | 4 +-- .../testcode/BenchmarkTest01212.java | 4 +-- .../testcode/BenchmarkTest01213.java | 4 +-- .../testcode/BenchmarkTest01214.java | 4 +-- .../testcode/BenchmarkTest01216.java | 4 +-- .../testcode/BenchmarkTest01217.java | 4 +-- .../testcode/BenchmarkTest01218.java | 4 +-- .../testcode/BenchmarkTest01219.java | 4 +-- .../testcode/BenchmarkTest01220.java | 4 +-- .../testcode/BenchmarkTest01221.java | 4 +-- .../testcode/BenchmarkTest01222.java | 4 +-- .../testcode/BenchmarkTest01223.java | 4 +-- .../testcode/BenchmarkTest01224.java | 4 +-- .../testcode/BenchmarkTest01225.java | 4 +-- .../testcode/BenchmarkTest01226.java | 2 +- .../testcode/BenchmarkTest01227.java | 2 +- .../testcode/BenchmarkTest01228.java | 6 ++-- .../testcode/BenchmarkTest01229.java | 6 ++-- .../testcode/BenchmarkTest01230.java | 6 ++-- .../testcode/BenchmarkTest01231.java | 6 ++-- .../testcode/BenchmarkTest01232.java | 6 ++-- .../testcode/BenchmarkTest01233.java | 6 ++-- .../testcode/BenchmarkTest01234.java | 6 ++-- .../testcode/BenchmarkTest01235.java | 6 ++-- .../testcode/BenchmarkTest01236.java | 6 ++-- .../testcode/BenchmarkTest01237.java | 6 ++-- .../testcode/BenchmarkTest01238.java | 6 ++-- .../testcode/BenchmarkTest01239.java | 29 +++++-------------- .../testcode/BenchmarkTest01240.java | 6 ++-- .../testcode/BenchmarkTest01244.java | 6 ++-- .../testcode/BenchmarkTest01245.java | 6 ++-- .../testcode/BenchmarkTest01246.java | 6 ++-- .../testcode/BenchmarkTest01247.java | 6 ++-- .../testcode/BenchmarkTest01248.java | 6 ++-- .../testcode/BenchmarkTest01249.java | 6 ++-- .../testcode/BenchmarkTest01250.java | 6 ++-- .../testcode/BenchmarkTest01251.java | 4 +-- .../testcode/BenchmarkTest01252.java | 4 +-- .../testcode/BenchmarkTest01253.java | 4 +-- .../testcode/BenchmarkTest01254.java | 4 +-- .../testcode/BenchmarkTest01255.java | 4 +-- .../testcode/BenchmarkTest01256.java | 4 +-- .../testcode/BenchmarkTest01257.java | 4 +-- .../testcode/BenchmarkTest01258.java | 4 +-- .../testcode/BenchmarkTest01259.java | 4 +-- .../testcode/BenchmarkTest01260.java | 4 +-- .../testcode/BenchmarkTest01261.java | 4 +-- .../testcode/BenchmarkTest01262.java | 4 +-- .../testcode/BenchmarkTest01263.java | 4 +-- .../testcode/BenchmarkTest01264.java | 4 +-- .../testcode/BenchmarkTest01265.java | 4 +-- .../testcode/BenchmarkTest01266.java | 4 +-- .../testcode/BenchmarkTest01267.java | 4 +-- .../testcode/BenchmarkTest01268.java | 4 +-- .../testcode/BenchmarkTest01269.java | 4 +-- .../testcode/BenchmarkTest01270.java | 4 +-- .../testcode/BenchmarkTest01284.java | 4 +-- .../testcode/BenchmarkTest01285.java | 4 +-- .../testcode/BenchmarkTest01286.java | 4 +-- .../testcode/BenchmarkTest01287.java | 4 +-- .../testcode/BenchmarkTest01288.java | 4 +-- .../testcode/BenchmarkTest01289.java | 4 +-- .../testcode/BenchmarkTest01290.java | 4 +-- .../testcode/BenchmarkTest01299.java | 4 +-- .../testcode/BenchmarkTest01300.java | 4 +-- .../testcode/BenchmarkTest01301.java | 4 +-- .../testcode/BenchmarkTest01302.java | 4 +-- .../testcode/BenchmarkTest01303.java | 4 +-- .../testcode/BenchmarkTest01304.java | 4 +-- .../testcode/BenchmarkTest01305.java | 4 +-- .../testcode/BenchmarkTest01306.java | 4 +-- .../testcode/BenchmarkTest01307.java | 4 +-- .../testcode/BenchmarkTest01309.java | 4 +-- .../testcode/BenchmarkTest01310.java | 4 +-- .../testcode/BenchmarkTest01311.java | 4 +-- .../testcode/BenchmarkTest01312.java | 4 +-- .../testcode/BenchmarkTest01313.java | 4 +-- .../testcode/BenchmarkTest01314.java | 4 +-- .../testcode/BenchmarkTest01315.java | 4 +-- .../testcode/BenchmarkTest01316.java | 4 +-- .../testcode/BenchmarkTest01317.java | 6 ++-- .../testcode/BenchmarkTest01318.java | 6 ++-- .../testcode/BenchmarkTest01319.java | 2 +- .../testcode/BenchmarkTest01320.java | 6 ++-- .../testcode/BenchmarkTest01321.java | 6 ++-- .../testcode/BenchmarkTest01322.java | 6 ++-- .../testcode/BenchmarkTest01323.java | 6 ++-- .../testcode/BenchmarkTest01324.java | 2 +- .../testcode/BenchmarkTest01325.java | 6 ++-- .../testcode/BenchmarkTest01328.java | 6 ++-- .../testcode/BenchmarkTest01329.java | 6 ++-- .../testcode/BenchmarkTest01330.java | 6 ++-- .../testcode/BenchmarkTest01331.java | 6 ++-- .../testcode/BenchmarkTest01332.java | 6 ++-- .../testcode/BenchmarkTest01333.java | 6 ++-- .../testcode/BenchmarkTest01334.java | 6 ++-- .../testcode/BenchmarkTest01335.java | 4 +-- .../testcode/BenchmarkTest01336.java | 4 +-- .../testcode/BenchmarkTest01337.java | 4 +-- .../testcode/BenchmarkTest01338.java | 4 +-- .../testcode/BenchmarkTest01339.java | 4 +-- .../testcode/BenchmarkTest01340.java | 4 +-- .../testcode/BenchmarkTest01341.java | 4 +-- .../testcode/BenchmarkTest01342.java | 4 +-- .../testcode/BenchmarkTest01343.java | 4 +-- .../testcode/BenchmarkTest01344.java | 4 +-- .../testcode/BenchmarkTest01345.java | 4 +-- .../testcode/BenchmarkTest01346.java | 4 +-- .../testcode/BenchmarkTest01347.java | 4 +-- .../testcode/BenchmarkTest01348.java | 4 +-- .../testcode/BenchmarkTest01349.java | 4 +-- .../testcode/BenchmarkTest01350.java | 4 +-- .../testcode/BenchmarkTest01351.java | 4 +-- .../testcode/BenchmarkTest01352.java | 4 +-- .../testcode/BenchmarkTest01353.java | 4 +-- .../testcode/BenchmarkTest01359.java | 3 -- .../testcode/BenchmarkTest01360.java | 4 +-- .../testcode/BenchmarkTest01361.java | 4 +-- .../testcode/BenchmarkTest01362.java | 4 +-- .../testcode/BenchmarkTest01363.java | 4 +-- .../testcode/BenchmarkTest01364.java | 4 +-- .../testcode/BenchmarkTest01365.java | 4 +-- .../testcode/BenchmarkTest01374.java | 4 +-- .../testcode/BenchmarkTest01375.java | 4 +-- .../testcode/BenchmarkTest01376.java | 4 +-- .../testcode/BenchmarkTest01377.java | 4 +-- .../testcode/BenchmarkTest01378.java | 4 +-- .../testcode/BenchmarkTest01379.java | 4 +-- .../testcode/BenchmarkTest01380.java | 4 +-- .../testcode/BenchmarkTest01381.java | 4 +-- .../testcode/BenchmarkTest01382.java | 4 +-- .../testcode/BenchmarkTest01383.java | 4 +-- .../testcode/BenchmarkTest01384.java | 4 +-- .../testcode/BenchmarkTest01385.java | 4 +-- .../testcode/BenchmarkTest01389.java | 6 ++-- .../testcode/BenchmarkTest01391.java | 4 +-- .../testcode/BenchmarkTest01392.java | 4 +-- .../testcode/BenchmarkTest01393.java | 4 +-- .../testcode/BenchmarkTest01394.java | 4 +-- .../testcode/BenchmarkTest01395.java | 4 +-- .../testcode/BenchmarkTest01396.java | 4 +-- .../testcode/BenchmarkTest01397.java | 4 +-- .../testcode/BenchmarkTest01398.java | 6 ++-- .../testcode/BenchmarkTest01399.java | 6 ++-- .../testcode/BenchmarkTest01400.java | 2 +- .../testcode/BenchmarkTest01401.java | 2 +- .../testcode/BenchmarkTest01403.java | 6 ++-- .../testcode/BenchmarkTest01404.java | 4 +-- .../testcode/BenchmarkTest01405.java | 6 ++-- .../testcode/BenchmarkTest01406.java | 6 ++-- .../testcode/BenchmarkTest01407.java | 29 +++++-------------- .../testcode/BenchmarkTest01408.java | 6 ++-- .../testcode/BenchmarkTest01409.java | 6 ++-- .../testcode/BenchmarkTest01410.java | 6 ++-- .../testcode/BenchmarkTest01411.java | 6 ++-- .../testcode/BenchmarkTest01412.java | 6 ++-- .../testcode/BenchmarkTest01413.java | 6 ++-- .../testcode/BenchmarkTest01414.java | 6 ++-- .../testcode/BenchmarkTest01415.java | 6 ++-- .../testcode/BenchmarkTest01416.java | 6 ++-- .../testcode/BenchmarkTest01417.java | 4 +-- .../testcode/BenchmarkTest01418.java | 4 +-- .../testcode/BenchmarkTest01419.java | 4 +-- .../testcode/BenchmarkTest01420.java | 4 +-- .../testcode/BenchmarkTest01421.java | 4 +-- .../testcode/BenchmarkTest01422.java | 4 +-- .../testcode/BenchmarkTest01423.java | 4 +-- .../testcode/BenchmarkTest01424.java | 4 +-- .../testcode/BenchmarkTest01425.java | 4 +-- .../testcode/BenchmarkTest01426.java | 4 +-- .../testcode/BenchmarkTest01427.java | 4 +-- .../testcode/BenchmarkTest01428.java | 4 +-- .../testcode/BenchmarkTest01429.java | 4 +-- .../testcode/BenchmarkTest01430.java | 4 +-- .../testcode/BenchmarkTest01436.java | 3 -- .../testcode/BenchmarkTest01437.java | 4 +-- .../testcode/BenchmarkTest01438.java | 4 +-- .../testcode/BenchmarkTest01439.java | 4 +-- .../testcode/BenchmarkTest01440.java | 4 +-- .../testcode/BenchmarkTest01441.java | 4 +-- .../testcode/BenchmarkTest01442.java | 4 +-- .../testcode/BenchmarkTest01443.java | 4 +-- .../testcode/BenchmarkTest01444.java | 4 +-- .../testcode/BenchmarkTest01445.java | 4 +-- .../testcode/BenchmarkTest01446.java | 4 +-- .../testcode/BenchmarkTest01454.java | 4 +-- .../testcode/BenchmarkTest01455.java | 4 +-- .../testcode/BenchmarkTest01456.java | 4 +-- .../testcode/BenchmarkTest01457.java | 4 +-- .../testcode/BenchmarkTest01458.java | 4 +-- .../testcode/BenchmarkTest01459.java | 4 +-- .../testcode/BenchmarkTest01460.java | 4 +-- .../testcode/BenchmarkTest01461.java | 4 +-- .../testcode/BenchmarkTest01462.java | 4 +-- .../testcode/BenchmarkTest01463.java | 4 +-- .../testcode/BenchmarkTest01464.java | 4 +-- .../testcode/BenchmarkTest01465.java | 4 +-- .../testcode/BenchmarkTest01466.java | 4 +-- .../testcode/BenchmarkTest01467.java | 6 ++-- .../testcode/BenchmarkTest01468.java | 6 ++-- .../testcode/BenchmarkTest01469.java | 6 ++-- .../testcode/BenchmarkTest01470.java | 6 ++-- .../testcode/BenchmarkTest01471.java | 4 +-- .../testcode/BenchmarkTest01472.java | 4 +-- .../testcode/BenchmarkTest01473.java | 4 +-- .../testcode/BenchmarkTest01474.java | 4 +-- .../testcode/BenchmarkTest01475.java | 4 +-- .../testcode/BenchmarkTest01476.java | 4 +-- .../testcode/BenchmarkTest01477.java | 4 +-- .../testcode/BenchmarkTest01478.java | 4 +-- .../testcode/BenchmarkTest01479.java | 4 +-- .../testcode/BenchmarkTest01480.java | 6 ++-- .../testcode/BenchmarkTest01481.java | 2 +- .../testcode/BenchmarkTest01482.java | 2 +- .../testcode/BenchmarkTest01483.java | 6 ++-- .../testcode/BenchmarkTest01484.java | 6 ++-- .../testcode/BenchmarkTest01485.java | 6 ++-- .../testcode/BenchmarkTest01486.java | 6 ++-- .../testcode/BenchmarkTest01487.java | 2 +- .../testcode/BenchmarkTest01488.java | 2 +- .../testcode/BenchmarkTest01489.java | 6 ++-- .../testcode/BenchmarkTest01493.java | 6 ++-- .../testcode/BenchmarkTest01494.java | 6 ++-- .../testcode/BenchmarkTest01495.java | 6 ++-- .../testcode/BenchmarkTest01496.java | 6 ++-- .../testcode/BenchmarkTest01497.java | 6 ++-- .../testcode/BenchmarkTest01498.java | 29 +++++-------------- .../testcode/BenchmarkTest01499.java | 6 ++-- .../testcode/BenchmarkTest01500.java | 6 ++-- .../testcode/BenchmarkTest01503.java | 6 ++-- .../testcode/BenchmarkTest01504.java | 6 ++-- .../testcode/BenchmarkTest01505.java | 4 +-- .../testcode/BenchmarkTest01506.java | 4 +-- .../testcode/BenchmarkTest01507.java | 4 +-- .../testcode/BenchmarkTest01508.java | 4 +-- .../testcode/BenchmarkTest01509.java | 4 +-- .../testcode/BenchmarkTest01510.java | 4 +-- .../testcode/BenchmarkTest01511.java | 4 +-- .../testcode/BenchmarkTest01512.java | 4 +-- .../testcode/BenchmarkTest01513.java | 4 +-- .../testcode/BenchmarkTest01514.java | 4 +-- .../testcode/BenchmarkTest01515.java | 4 +-- .../testcode/BenchmarkTest01516.java | 4 +-- .../testcode/BenchmarkTest01517.java | 4 +-- .../testcode/BenchmarkTest01522.java | 3 -- .../testcode/BenchmarkTest01523.java | 3 -- .../testcode/BenchmarkTest01524.java | 3 -- .../testcode/BenchmarkTest01525.java | 4 +-- .../testcode/BenchmarkTest01526.java | 4 +-- .../testcode/BenchmarkTest01527.java | 4 +-- .../testcode/BenchmarkTest01528.java | 4 +-- .../testcode/BenchmarkTest01529.java | 4 +-- .../testcode/BenchmarkTest01530.java | 4 +-- .../testcode/BenchmarkTest01531.java | 4 +-- .../testcode/BenchmarkTest01532.java | 4 +-- .../testcode/BenchmarkTest01533.java | 4 +-- .../testcode/BenchmarkTest01546.java | 4 +-- .../testcode/BenchmarkTest01547.java | 4 +-- .../testcode/BenchmarkTest01548.java | 4 +-- .../testcode/BenchmarkTest01549.java | 4 +-- .../testcode/BenchmarkTest01550.java | 4 +-- .../testcode/BenchmarkTest01551.java | 4 +-- .../testcode/BenchmarkTest01552.java | 4 +-- .../testcode/BenchmarkTest01553.java | 4 +-- .../testcode/BenchmarkTest01554.java | 6 ++-- .../testcode/BenchmarkTest01557.java | 4 +-- .../testcode/BenchmarkTest01558.java | 4 +-- .../testcode/BenchmarkTest01559.java | 4 +-- .../testcode/BenchmarkTest01560.java | 4 +-- .../testcode/BenchmarkTest01561.java | 4 +-- .../testcode/BenchmarkTest01562.java | 4 +-- .../testcode/BenchmarkTest01563.java | 2 +- .../testcode/BenchmarkTest01564.java | 2 +- .../testcode/BenchmarkTest01565.java | 6 ++-- .../testcode/BenchmarkTest01566.java | 6 ++-- .../testcode/BenchmarkTest01567.java | 2 +- .../testcode/BenchmarkTest01570.java | 6 ++-- .../testcode/BenchmarkTest01571.java | 4 +-- .../testcode/BenchmarkTest01572.java | 6 ++-- .../testcode/BenchmarkTest01573.java | 6 ++-- .../testcode/BenchmarkTest01574.java | 6 ++-- .../testcode/BenchmarkTest01576.java | 6 ++-- .../testcode/BenchmarkTest01577.java | 6 ++-- .../testcode/BenchmarkTest01578.java | 6 ++-- .../testcode/BenchmarkTest01579.java | 6 ++-- .../testcode/BenchmarkTest01580.java | 6 ++-- .../testcode/BenchmarkTest01581.java | 6 ++-- .../testcode/BenchmarkTest01582.java | 6 ++-- .../testcode/BenchmarkTest01583.java | 4 +-- .../testcode/BenchmarkTest01584.java | 4 +-- .../testcode/BenchmarkTest01585.java | 4 +-- .../testcode/BenchmarkTest01586.java | 4 +-- .../testcode/BenchmarkTest01587.java | 4 +-- .../testcode/BenchmarkTest01588.java | 4 +-- .../testcode/BenchmarkTest01589.java | 4 +-- .../testcode/BenchmarkTest01590.java | 4 +-- .../testcode/BenchmarkTest01591.java | 4 +-- .../testcode/BenchmarkTest01592.java | 4 +-- .../testcode/BenchmarkTest01593.java | 4 +-- .../testcode/BenchmarkTest01594.java | 4 +-- .../testcode/BenchmarkTest01595.java | 4 +-- .../testcode/BenchmarkTest01596.java | 4 +-- .../testcode/BenchmarkTest01597.java | 4 +-- .../testcode/BenchmarkTest01598.java | 4 +-- .../testcode/BenchmarkTest01599.java | 4 +-- .../testcode/BenchmarkTest01600.java | 4 +-- .../testcode/BenchmarkTest01601.java | 4 +-- .../testcode/BenchmarkTest01604.java | 3 -- .../testcode/BenchmarkTest01605.java | 3 -- .../testcode/BenchmarkTest01606.java | 4 +-- .../testcode/BenchmarkTest01607.java | 4 +-- .../testcode/BenchmarkTest01608.java | 4 +-- .../testcode/BenchmarkTest01609.java | 4 +-- .../testcode/BenchmarkTest01610.java | 4 +-- .../testcode/BenchmarkTest01615.java | 4 +-- .../testcode/BenchmarkTest01616.java | 4 +-- .../testcode/BenchmarkTest01617.java | 4 +-- .../testcode/BenchmarkTest01618.java | 4 +-- .../testcode/BenchmarkTest01619.java | 4 +-- .../testcode/BenchmarkTest01620.java | 4 +-- .../testcode/BenchmarkTest01621.java | 4 +-- .../testcode/BenchmarkTest01622.java | 4 +-- .../testcode/BenchmarkTest01623.java | 4 +-- .../testcode/BenchmarkTest01624.java | 4 +-- .../testcode/BenchmarkTest01626.java | 4 +-- .../testcode/BenchmarkTest01627.java | 4 +-- .../testcode/BenchmarkTest01628.java | 4 +-- .../testcode/BenchmarkTest01629.java | 4 +-- .../testcode/BenchmarkTest01630.java | 4 +-- .../testcode/BenchmarkTest01631.java | 4 +-- .../testcode/BenchmarkTest01632.java | 4 +-- .../testcode/BenchmarkTest01633.java | 4 +-- .../testcode/BenchmarkTest01634.java | 6 ++-- .../testcode/BenchmarkTest01635.java | 2 +- .../testcode/BenchmarkTest01636.java | 2 +- .../testcode/BenchmarkTest01637.java | 6 ++-- .../testcode/BenchmarkTest01638.java | 6 ++-- .../testcode/BenchmarkTest01639.java | 6 ++-- .../testcode/BenchmarkTest01640.java | 2 +- .../testcode/BenchmarkTest01641.java | 6 ++-- .../testcode/BenchmarkTest01642.java | 6 ++-- .../testcode/BenchmarkTest01643.java | 6 ++-- .../testcode/BenchmarkTest01644.java | 6 ++-- .../testcode/BenchmarkTest01645.java | 6 ++-- .../testcode/BenchmarkTest01646.java | 6 ++-- .../testcode/BenchmarkTest01647.java | 6 ++-- .../testcode/BenchmarkTest01649.java | 6 ++-- .../testcode/BenchmarkTest01650.java | 6 ++-- .../testcode/BenchmarkTest01651.java | 6 ++-- .../testcode/BenchmarkTest01652.java | 6 ++-- .../testcode/BenchmarkTest01653.java | 6 ++-- .../testcode/BenchmarkTest01654.java | 6 ++-- .../testcode/BenchmarkTest01655.java | 6 ++-- .../testcode/BenchmarkTest01656.java | 6 ++-- .../testcode/BenchmarkTest01657.java | 4 +-- .../testcode/BenchmarkTest01658.java | 4 +-- .../testcode/BenchmarkTest01659.java | 4 +-- .../testcode/BenchmarkTest01660.java | 4 +-- .../testcode/BenchmarkTest01661.java | 4 +-- .../testcode/BenchmarkTest01662.java | 4 +-- .../testcode/BenchmarkTest01663.java | 4 +-- .../testcode/BenchmarkTest01664.java | 4 +-- .../testcode/BenchmarkTest01665.java | 4 +-- .../testcode/BenchmarkTest01666.java | 4 +-- .../testcode/BenchmarkTest01667.java | 4 +-- .../testcode/BenchmarkTest01668.java | 4 +-- .../testcode/BenchmarkTest01669.java | 4 +-- .../testcode/BenchmarkTest01670.java | 4 +-- .../testcode/BenchmarkTest01671.java | 4 +-- .../testcode/BenchmarkTest01672.java | 4 +-- .../testcode/BenchmarkTest01673.java | 4 +-- .../testcode/BenchmarkTest01674.java | 4 +-- .../testcode/BenchmarkTest01684.java | 3 -- .../testcode/BenchmarkTest01685.java | 4 +-- .../testcode/BenchmarkTest01686.java | 4 +-- .../testcode/BenchmarkTest01687.java | 4 +-- .../testcode/BenchmarkTest01688.java | 4 +-- .../testcode/BenchmarkTest01689.java | 4 +-- .../testcode/BenchmarkTest01690.java | 4 +-- .../testcode/BenchmarkTest01691.java | 4 +-- .../testcode/BenchmarkTest01692.java | 4 +-- .../testcode/BenchmarkTest01693.java | 4 +-- .../testcode/BenchmarkTest01708.java | 4 +-- .../testcode/BenchmarkTest01709.java | 4 +-- .../testcode/BenchmarkTest01710.java | 4 +-- .../testcode/BenchmarkTest01711.java | 4 +-- .../testcode/BenchmarkTest01712.java | 4 +-- .../testcode/BenchmarkTest01713.java | 4 +-- .../testcode/BenchmarkTest01714.java | 4 +-- .../testcode/BenchmarkTest01715.java | 4 +-- .../testcode/BenchmarkTest01716.java | 4 +-- .../testcode/BenchmarkTest01717.java | 4 +-- .../testcode/BenchmarkTest01718.java | 4 +-- .../testcode/BenchmarkTest01719.java | 4 +-- .../testcode/BenchmarkTest01720.java | 4 +-- .../testcode/BenchmarkTest01721.java | 4 +-- .../testcode/BenchmarkTest01722.java | 4 +-- .../testcode/BenchmarkTest01724.java | 6 ++-- .../testcode/BenchmarkTest01725.java | 4 +-- .../testcode/BenchmarkTest01726.java | 4 +-- .../testcode/BenchmarkTest01727.java | 4 +-- .../testcode/BenchmarkTest01728.java | 4 +-- .../testcode/BenchmarkTest01729.java | 4 +-- .../testcode/BenchmarkTest01730.java | 4 +-- .../testcode/BenchmarkTest01731.java | 4 +-- .../testcode/BenchmarkTest01732.java | 4 +-- .../testcode/BenchmarkTest01733.java | 4 +-- .../testcode/BenchmarkTest01734.java | 4 +-- .../testcode/BenchmarkTest01735.java | 4 +-- .../testcode/BenchmarkTest01736.java | 4 +-- .../testcode/BenchmarkTest01737.java | 2 +- .../testcode/BenchmarkTest01738.java | 6 ++-- .../testcode/BenchmarkTest01739.java | 6 ++-- .../testcode/BenchmarkTest01740.java | 6 ++-- .../testcode/BenchmarkTest01741.java | 6 ++-- .../testcode/BenchmarkTest01742.java | 6 ++-- .../testcode/BenchmarkTest01744.java | 6 ++-- .../testcode/BenchmarkTest01745.java | 4 +-- .../testcode/BenchmarkTest01746.java | 6 ++-- .../testcode/BenchmarkTest01747.java | 6 ++-- .../testcode/BenchmarkTest01748.java | 6 ++-- .../testcode/BenchmarkTest01749.java | 6 ++-- .../testcode/BenchmarkTest01750.java | 6 ++-- .../testcode/BenchmarkTest01751.java | 6 ++-- .../testcode/BenchmarkTest01752.java | 29 +++++-------------- .../testcode/BenchmarkTest01757.java | 6 ++-- .../testcode/BenchmarkTest01758.java | 6 ++-- .../testcode/BenchmarkTest01759.java | 6 ++-- .../testcode/BenchmarkTest01760.java | 6 ++-- .../testcode/BenchmarkTest01761.java | 6 ++-- .../testcode/BenchmarkTest01762.java | 6 ++-- .../testcode/BenchmarkTest01763.java | 6 ++-- .../testcode/BenchmarkTest01764.java | 6 ++-- .../testcode/BenchmarkTest01765.java | 6 ++-- .../testcode/BenchmarkTest01766.java | 6 ++-- .../testcode/BenchmarkTest01767.java | 4 +-- .../testcode/BenchmarkTest01768.java | 4 +-- .../testcode/BenchmarkTest01769.java | 4 +-- .../testcode/BenchmarkTest01770.java | 4 +-- .../testcode/BenchmarkTest01771.java | 4 +-- .../testcode/BenchmarkTest01772.java | 4 +-- .../testcode/BenchmarkTest01773.java | 4 +-- .../testcode/BenchmarkTest01774.java | 4 +-- .../testcode/BenchmarkTest01775.java | 4 +-- .../testcode/BenchmarkTest01776.java | 4 +-- .../testcode/BenchmarkTest01777.java | 4 +-- .../testcode/BenchmarkTest01778.java | 4 +-- .../testcode/BenchmarkTest01779.java | 4 +-- .../testcode/BenchmarkTest01780.java | 4 +-- .../testcode/BenchmarkTest01790.java | 4 +-- .../testcode/BenchmarkTest01791.java | 4 +-- .../testcode/BenchmarkTest01792.java | 4 +-- .../testcode/BenchmarkTest01793.java | 4 +-- .../testcode/BenchmarkTest01794.java | 4 +-- .../testcode/BenchmarkTest01795.java | 4 +-- .../testcode/BenchmarkTest01796.java | 4 +-- .../testcode/BenchmarkTest01802.java | 4 +-- .../testcode/BenchmarkTest01803.java | 4 +-- .../testcode/BenchmarkTest01804.java | 4 +-- .../testcode/BenchmarkTest01805.java | 4 +-- .../testcode/BenchmarkTest01806.java | 4 +-- .../testcode/BenchmarkTest01807.java | 4 +-- .../testcode/BenchmarkTest01809.java | 6 ++-- .../testcode/BenchmarkTest01810.java | 6 ++-- .../testcode/BenchmarkTest01811.java | 6 ++-- .../testcode/BenchmarkTest01812.java | 4 +-- .../testcode/BenchmarkTest01813.java | 4 +-- .../testcode/BenchmarkTest01814.java | 4 +-- .../testcode/BenchmarkTest01815.java | 4 +-- .../testcode/BenchmarkTest01816.java | 4 +-- .../testcode/BenchmarkTest01817.java | 4 +-- .../testcode/BenchmarkTest01818.java | 4 +-- .../testcode/BenchmarkTest01819.java | 4 +-- .../testcode/BenchmarkTest01820.java | 4 +-- .../testcode/BenchmarkTest01821.java | 4 +-- .../testcode/BenchmarkTest01822.java | 2 +- .../testcode/BenchmarkTest01823.java | 2 +- .../testcode/BenchmarkTest01824.java | 2 +- .../testcode/BenchmarkTest01825.java | 2 +- .../testcode/BenchmarkTest01826.java | 2 +- .../testcode/BenchmarkTest01827.java | 2 +- .../testcode/BenchmarkTest01828.java | 2 +- .../testcode/BenchmarkTest01829.java | 2 +- .../testcode/BenchmarkTest01830.java | 2 +- .../testcode/BenchmarkTest01833.java | 2 +- .../testcode/BenchmarkTest01834.java | 2 +- .../testcode/BenchmarkTest01835.java | 2 +- .../testcode/BenchmarkTest01836.java | 2 +- .../testcode/BenchmarkTest01837.java | 2 +- .../testcode/BenchmarkTest01838.java | 2 +- .../testcode/BenchmarkTest01839.java | 2 +- .../testcode/BenchmarkTest01840.java | 2 +- .../testcode/BenchmarkTest01841.java | 25 ++++------------ .../testcode/BenchmarkTest01844.java | 2 +- .../testcode/BenchmarkTest01845.java | 2 +- .../testcode/BenchmarkTest01846.java | 2 +- .../testcode/BenchmarkTest01847.java | 2 +- .../testcode/BenchmarkTest01848.java | 2 +- .../testcode/BenchmarkTest01849.java | 2 +- .../testcode/BenchmarkTest01895.java | 6 ++-- .../testcode/BenchmarkTest01896.java | 6 ++-- .../testcode/BenchmarkTest01897.java | 6 ++-- .../testcode/BenchmarkTest01898.java | 6 ++-- .../testcode/BenchmarkTest01899.java | 2 +- .../testcode/BenchmarkTest01900.java | 6 ++-- .../testcode/BenchmarkTest01901.java | 2 +- .../testcode/BenchmarkTest01904.java | 4 +-- .../testcode/BenchmarkTest01905.java | 6 ++-- .../testcode/BenchmarkTest01906.java | 6 ++-- .../testcode/BenchmarkTest01907.java | 6 ++-- .../testcode/BenchmarkTest01908.java | 6 ++-- .../testcode/BenchmarkTest01911.java | 6 ++-- .../testcode/BenchmarkTest01912.java | 6 ++-- .../testcode/BenchmarkTest01913.java | 6 ++-- .../testcode/BenchmarkTest01914.java | 4 +-- .../testcode/BenchmarkTest01915.java | 4 +-- .../testcode/BenchmarkTest01916.java | 4 +-- .../testcode/BenchmarkTest01917.java | 4 +-- .../testcode/BenchmarkTest01918.java | 4 +-- .../testcode/BenchmarkTest01919.java | 4 +-- .../testcode/BenchmarkTest01920.java | 4 +-- .../testcode/BenchmarkTest01921.java | 4 +-- .../testcode/BenchmarkTest01922.java | 4 +-- .../testcode/BenchmarkTest01923.java | 4 +-- .../testcode/BenchmarkTest01924.java | 4 +-- .../testcode/BenchmarkTest01925.java | 4 +-- .../testcode/BenchmarkTest01926.java | 4 +-- .../testcode/BenchmarkTest01927.java | 4 +-- .../testcode/BenchmarkTest01928.java | 4 +-- .../testcode/BenchmarkTest01929.java | 4 +-- .../testcode/BenchmarkTest01935.java | 3 -- .../testcode/BenchmarkTest01936.java | 4 +-- .../testcode/BenchmarkTest01937.java | 4 +-- .../testcode/BenchmarkTest01938.java | 4 +-- .../testcode/BenchmarkTest01939.java | 4 +-- .../testcode/BenchmarkTest01940.java | 4 +-- .../testcode/BenchmarkTest01941.java | 4 +-- .../testcode/BenchmarkTest01942.java | 4 +-- .../testcode/BenchmarkTest01943.java | 4 +-- .../testcode/BenchmarkTest01944.java | 4 +-- .../testcode/BenchmarkTest01955.java | 4 +-- .../testcode/BenchmarkTest01956.java | 4 +-- .../testcode/BenchmarkTest01957.java | 4 +-- .../testcode/BenchmarkTest01958.java | 4 +-- .../testcode/BenchmarkTest01959.java | 4 +-- .../testcode/BenchmarkTest01960.java | 4 +-- .../testcode/BenchmarkTest01961.java | 4 +-- .../testcode/BenchmarkTest01962.java | 4 +-- .../testcode/BenchmarkTest01963.java | 4 +-- .../testcode/BenchmarkTest01964.java | 4 +-- .../testcode/BenchmarkTest01966.java | 4 +-- .../testcode/BenchmarkTest01967.java | 4 +-- .../testcode/BenchmarkTest01968.java | 4 +-- .../testcode/BenchmarkTest01969.java | 4 +-- .../testcode/BenchmarkTest01970.java | 4 +-- .../testcode/BenchmarkTest01971.java | 4 +-- .../testcode/BenchmarkTest01972.java | 4 +-- .../testcode/BenchmarkTest01973.java | 4 +-- .../testcode/BenchmarkTest01974.java | 4 +-- .../testcode/BenchmarkTest01975.java | 2 +- .../testcode/BenchmarkTest01976.java | 2 +- .../testcode/BenchmarkTest01977.java | 2 +- .../testcode/BenchmarkTest01978.java | 6 ++-- .../testcode/BenchmarkTest01979.java | 2 +- .../testcode/BenchmarkTest01980.java | 6 ++-- .../testcode/BenchmarkTest01981.java | 6 ++-- .../testcode/BenchmarkTest01982.java | 2 +- .../testcode/BenchmarkTest01983.java | 6 ++-- .../testcode/BenchmarkTest01984.java | 6 ++-- .../testcode/BenchmarkTest01985.java | 4 +-- .../testcode/BenchmarkTest01986.java | 6 ++-- .../testcode/BenchmarkTest01987.java | 6 ++-- .../testcode/BenchmarkTest01988.java | 6 ++-- .../testcode/BenchmarkTest01989.java | 6 ++-- .../testcode/BenchmarkTest01990.java | 6 ++-- .../testcode/BenchmarkTest01991.java | 6 ++-- .../testcode/BenchmarkTest01993.java | 6 ++-- .../testcode/BenchmarkTest01994.java | 6 ++-- .../testcode/BenchmarkTest01995.java | 6 ++-- .../testcode/BenchmarkTest01996.java | 6 ++-- .../testcode/BenchmarkTest01997.java | 6 ++-- .../testcode/BenchmarkTest01998.java | 6 ++-- .../testcode/BenchmarkTest02006.java | 3 -- .../testcode/BenchmarkTest02015.java | 4 +-- .../testcode/BenchmarkTest02016.java | 4 +-- .../testcode/BenchmarkTest02017.java | 6 ++-- .../testcode/BenchmarkTest02018.java | 6 ++-- .../testcode/BenchmarkTest02019.java | 6 ++-- .../testcode/BenchmarkTest02020.java | 6 ++-- .../testcode/BenchmarkTest02021.java | 2 +- .../testcode/BenchmarkTest02022.java | 6 ++-- .../testcode/BenchmarkTest02023.java | 6 ++-- .../testcode/BenchmarkTest02024.java | 2 +- .../testcode/BenchmarkTest02026.java | 6 ++-- .../testcode/BenchmarkTest02027.java | 6 ++-- .../testcode/BenchmarkTest02028.java | 6 ++-- .../testcode/BenchmarkTest02029.java | 4 +-- .../testcode/BenchmarkTest02030.java | 6 ++-- .../testcode/BenchmarkTest02031.java | 6 ++-- .../testcode/BenchmarkTest02032.java | 6 ++-- .../testcode/BenchmarkTest02033.java | 6 ++-- .../testcode/BenchmarkTest02034.java | 29 +++++-------------- .../testcode/BenchmarkTest02035.java | 6 ++-- .../testcode/BenchmarkTest02041.java | 6 ++-- .../testcode/BenchmarkTest02042.java | 6 ++-- .../testcode/BenchmarkTest02043.java | 6 ++-- .../testcode/BenchmarkTest02044.java | 6 ++-- .../testcode/BenchmarkTest02045.java | 4 +-- .../testcode/BenchmarkTest02046.java | 4 +-- .../testcode/BenchmarkTest02047.java | 4 +-- .../testcode/BenchmarkTest02048.java | 4 +-- .../testcode/BenchmarkTest02049.java | 4 +-- .../testcode/BenchmarkTest02050.java | 4 +-- .../testcode/BenchmarkTest02051.java | 4 +-- .../testcode/BenchmarkTest02052.java | 4 +-- .../testcode/BenchmarkTest02053.java | 4 +-- .../testcode/BenchmarkTest02054.java | 4 +-- .../testcode/BenchmarkTest02055.java | 4 +-- .../testcode/BenchmarkTest02056.java | 4 +-- .../testcode/BenchmarkTest02057.java | 4 +-- .../testcode/BenchmarkTest02058.java | 4 +-- .../testcode/BenchmarkTest02059.java | 4 +-- .../testcode/BenchmarkTest02064.java | 3 -- .../testcode/BenchmarkTest02065.java | 3 -- .../testcode/BenchmarkTest02066.java | 3 -- .../testcode/BenchmarkTest02067.java | 4 +-- .../testcode/BenchmarkTest02068.java | 4 +-- .../testcode/BenchmarkTest02069.java | 4 +-- .../testcode/BenchmarkTest02070.java | 4 +-- .../testcode/BenchmarkTest02084.java | 4 +-- .../testcode/BenchmarkTest02085.java | 4 +-- .../testcode/BenchmarkTest02086.java | 4 +-- .../testcode/BenchmarkTest02087.java | 4 +-- .../testcode/BenchmarkTest02088.java | 4 +-- .../testcode/BenchmarkTest02089.java | 4 +-- .../testcode/BenchmarkTest02090.java | 4 +-- .../testcode/BenchmarkTest02091.java | 4 +-- .../testcode/BenchmarkTest02092.java | 4 +-- .../testcode/BenchmarkTest02093.java | 4 +-- .../testcode/BenchmarkTest02094.java | 4 +-- .../testcode/BenchmarkTest02095.java | 4 +-- .../testcode/BenchmarkTest02096.java | 4 +-- .../testcode/BenchmarkTest02097.java | 4 +-- .../testcode/BenchmarkTest02098.java | 4 +-- .../testcode/BenchmarkTest02099.java | 4 +-- .../testcode/BenchmarkTest02100.java | 4 +-- .../testcode/BenchmarkTest02101.java | 6 ++-- .../testcode/BenchmarkTest02102.java | 6 ++-- .../testcode/BenchmarkTest02103.java | 2 +- .../testcode/BenchmarkTest02105.java | 6 ++-- .../testcode/BenchmarkTest02106.java | 4 +-- .../testcode/BenchmarkTest02107.java | 4 +-- .../testcode/BenchmarkTest02108.java | 6 ++-- .../testcode/BenchmarkTest02109.java | 6 ++-- .../testcode/BenchmarkTest02110.java | 6 ++-- .../testcode/BenchmarkTest02111.java | 29 +++++-------------- .../testcode/BenchmarkTest02112.java | 6 ++-- .../testcode/BenchmarkTest02113.java | 6 ++-- .../testcode/BenchmarkTest02118.java | 6 ++-- .../testcode/BenchmarkTest02119.java | 6 ++-- .../testcode/BenchmarkTest02120.java | 6 ++-- .../testcode/BenchmarkTest02121.java | 6 ++-- .../testcode/BenchmarkTest02122.java | 4 +-- .../testcode/BenchmarkTest02123.java | 4 +-- .../testcode/BenchmarkTest02124.java | 4 +-- .../testcode/BenchmarkTest02125.java | 4 +-- .../testcode/BenchmarkTest02126.java | 4 +-- .../testcode/BenchmarkTest02127.java | 4 +-- .../testcode/BenchmarkTest02128.java | 4 +-- .../testcode/BenchmarkTest02129.java | 4 +-- .../testcode/BenchmarkTest02130.java | 4 +-- .../testcode/BenchmarkTest02131.java | 4 +-- .../testcode/BenchmarkTest02132.java | 4 +-- .../testcode/BenchmarkTest02133.java | 4 +-- .../testcode/BenchmarkTest02134.java | 4 +-- .../testcode/BenchmarkTest02135.java | 4 +-- .../testcode/BenchmarkTest02136.java | 4 +-- .../testcode/BenchmarkTest02137.java | 4 +-- .../testcode/BenchmarkTest02143.java | 3 -- .../testcode/BenchmarkTest02144.java | 3 -- .../testcode/BenchmarkTest02145.java | 4 +-- .../testcode/BenchmarkTest02146.java | 4 +-- .../testcode/BenchmarkTest02147.java | 4 +-- .../testcode/BenchmarkTest02148.java | 4 +-- .../testcode/BenchmarkTest02149.java | 4 +-- .../testcode/BenchmarkTest02150.java | 4 +-- .../testcode/BenchmarkTest02151.java | 4 +-- .../testcode/BenchmarkTest02152.java | 4 +-- .../testcode/BenchmarkTest02153.java | 4 +-- .../testcode/BenchmarkTest02154.java | 4 +-- .../testcode/BenchmarkTest02155.java | 4 +-- .../testcode/BenchmarkTest02156.java | 4 +-- .../testcode/BenchmarkTest02165.java | 4 +-- .../testcode/BenchmarkTest02166.java | 4 +-- .../testcode/BenchmarkTest02167.java | 4 +-- .../testcode/BenchmarkTest02168.java | 4 +-- .../testcode/BenchmarkTest02169.java | 4 +-- .../testcode/BenchmarkTest02170.java | 4 +-- .../testcode/BenchmarkTest02171.java | 4 +-- .../testcode/BenchmarkTest02172.java | 4 +-- .../testcode/BenchmarkTest02173.java | 4 +-- .../testcode/BenchmarkTest02174.java | 4 +-- .../testcode/BenchmarkTest02175.java | 4 +-- .../testcode/BenchmarkTest02176.java | 4 +-- .../testcode/BenchmarkTest02177.java | 4 +-- .../testcode/BenchmarkTest02178.java | 6 ++-- .../testcode/BenchmarkTest02181.java | 6 ++-- .../testcode/BenchmarkTest02182.java | 6 ++-- .../testcode/BenchmarkTest02183.java | 4 +-- .../testcode/BenchmarkTest02184.java | 4 +-- .../testcode/BenchmarkTest02185.java | 4 +-- .../testcode/BenchmarkTest02186.java | 4 +-- .../testcode/BenchmarkTest02187.java | 4 +-- .../testcode/BenchmarkTest02188.java | 4 +-- .../testcode/BenchmarkTest02189.java | 4 +-- .../testcode/BenchmarkTest02190.java | 2 +- .../testcode/BenchmarkTest02191.java | 2 +- .../testcode/BenchmarkTest02192.java | 6 ++-- .../testcode/BenchmarkTest02193.java | 6 ++-- .../testcode/BenchmarkTest02194.java | 6 ++-- .../testcode/BenchmarkTest02195.java | 6 ++-- .../testcode/BenchmarkTest02197.java | 6 ++-- .../testcode/BenchmarkTest02198.java | 6 ++-- .../testcode/BenchmarkTest02199.java | 4 +-- .../testcode/BenchmarkTest02200.java | 4 +-- .../testcode/BenchmarkTest02201.java | 6 ++-- .../testcode/BenchmarkTest02202.java | 6 ++-- .../testcode/BenchmarkTest02203.java | 6 ++-- .../testcode/BenchmarkTest02204.java | 29 +++++-------------- .../testcode/BenchmarkTest02205.java | 6 ++-- .../testcode/BenchmarkTest02206.java | 6 ++-- .../testcode/BenchmarkTest02207.java | 6 ++-- .../testcode/BenchmarkTest02210.java | 6 ++-- .../testcode/BenchmarkTest02211.java | 6 ++-- .../testcode/BenchmarkTest02212.java | 6 ++-- .../testcode/BenchmarkTest02213.java | 6 ++-- .../testcode/BenchmarkTest02214.java | 6 ++-- .../testcode/BenchmarkTest02215.java | 6 ++-- .../testcode/BenchmarkTest02216.java | 6 ++-- .../testcode/BenchmarkTest02217.java | 6 ++-- .../testcode/BenchmarkTest02218.java | 6 ++-- .../testcode/BenchmarkTest02219.java | 6 ++-- .../testcode/BenchmarkTest02220.java | 6 ++-- .../testcode/BenchmarkTest02221.java | 4 +-- .../testcode/BenchmarkTest02222.java | 4 +-- .../testcode/BenchmarkTest02223.java | 4 +-- .../testcode/BenchmarkTest02224.java | 4 +-- .../testcode/BenchmarkTest02225.java | 4 +-- .../testcode/BenchmarkTest02226.java | 4 +-- .../testcode/BenchmarkTest02227.java | 4 +-- .../testcode/BenchmarkTest02228.java | 4 +-- .../testcode/BenchmarkTest02229.java | 4 +-- .../testcode/BenchmarkTest02230.java | 4 +-- .../testcode/BenchmarkTest02231.java | 4 +-- .../testcode/BenchmarkTest02232.java | 4 +-- .../testcode/BenchmarkTest02233.java | 4 +-- .../testcode/BenchmarkTest02234.java | 4 +-- .../testcode/BenchmarkTest02235.java | 4 +-- .../testcode/BenchmarkTest02236.java | 4 +-- .../testcode/BenchmarkTest02237.java | 4 +-- .../testcode/BenchmarkTest02238.java | 4 +-- .../testcode/BenchmarkTest02239.java | 4 +-- .../testcode/BenchmarkTest02240.java | 4 +-- .../testcode/BenchmarkTest02241.java | 4 +-- .../testcode/BenchmarkTest02242.java | 4 +-- .../testcode/BenchmarkTest02243.java | 4 +-- .../testcode/BenchmarkTest02244.java | 4 +-- .../testcode/BenchmarkTest02247.java | 3 -- .../testcode/BenchmarkTest02248.java | 3 -- .../testcode/BenchmarkTest02249.java | 4 +-- .../testcode/BenchmarkTest02250.java | 4 +-- .../testcode/BenchmarkTest02251.java | 4 +-- .../testcode/BenchmarkTest02252.java | 4 +-- .../testcode/BenchmarkTest02253.java | 4 +-- .../testcode/BenchmarkTest02261.java | 4 +-- .../testcode/BenchmarkTest02262.java | 4 +-- .../testcode/BenchmarkTest02263.java | 4 +-- .../testcode/BenchmarkTest02264.java | 4 +-- .../testcode/BenchmarkTest02265.java | 4 +-- .../testcode/BenchmarkTest02266.java | 4 +-- .../testcode/BenchmarkTest02267.java | 4 +-- .../testcode/BenchmarkTest02268.java | 4 +-- .../testcode/BenchmarkTest02269.java | 4 +-- .../testcode/BenchmarkTest02270.java | 4 +-- .../testcode/BenchmarkTest02271.java | 4 +-- .../testcode/BenchmarkTest02272.java | 4 +-- .../testcode/BenchmarkTest02273.java | 4 +-- .../testcode/BenchmarkTest02274.java | 4 +-- .../testcode/BenchmarkTest02277.java | 6 ++-- .../testcode/BenchmarkTest02281.java | 6 ++-- .../testcode/BenchmarkTest02282.java | 4 +-- .../testcode/BenchmarkTest02283.java | 4 +-- .../testcode/BenchmarkTest02284.java | 4 +-- .../testcode/BenchmarkTest02285.java | 4 +-- .../testcode/BenchmarkTest02286.java | 4 +-- .../testcode/BenchmarkTest02287.java | 4 +-- .../testcode/BenchmarkTest02288.java | 4 +-- .../testcode/BenchmarkTest02289.java | 2 +- .../testcode/BenchmarkTest02290.java | 6 ++-- .../testcode/BenchmarkTest02291.java | 6 ++-- .../testcode/BenchmarkTest02292.java | 6 ++-- .../testcode/BenchmarkTest02293.java | 6 ++-- .../testcode/BenchmarkTest02294.java | 6 ++-- .../testcode/BenchmarkTest02295.java | 6 ++-- .../testcode/BenchmarkTest02296.java | 2 +- .../testcode/BenchmarkTest02297.java | 2 +- .../testcode/BenchmarkTest02298.java | 2 +- .../testcode/BenchmarkTest02300.java | 6 ++-- .../testcode/BenchmarkTest02301.java | 4 +-- .../testcode/BenchmarkTest02302.java | 4 +-- .../testcode/BenchmarkTest02303.java | 6 ++-- .../testcode/BenchmarkTest02304.java | 6 ++-- .../testcode/BenchmarkTest02307.java | 6 ++-- .../testcode/BenchmarkTest02308.java | 6 ++-- .../testcode/BenchmarkTest02309.java | 6 ++-- .../testcode/BenchmarkTest02310.java | 6 ++-- .../testcode/BenchmarkTest02311.java | 6 ++-- .../testcode/BenchmarkTest02312.java | 6 ++-- .../testcode/BenchmarkTest02313.java | 4 +-- .../testcode/BenchmarkTest02314.java | 4 +-- .../testcode/BenchmarkTest02315.java | 4 +-- .../testcode/BenchmarkTest02316.java | 4 +-- .../testcode/BenchmarkTest02317.java | 4 +-- .../testcode/BenchmarkTest02318.java | 4 +-- .../testcode/BenchmarkTest02319.java | 4 +-- .../testcode/BenchmarkTest02320.java | 4 +-- .../testcode/BenchmarkTest02321.java | 4 +-- .../testcode/BenchmarkTest02322.java | 4 +-- .../testcode/BenchmarkTest02323.java | 4 +-- .../testcode/BenchmarkTest02324.java | 4 +-- .../testcode/BenchmarkTest02325.java | 4 +-- .../testcode/BenchmarkTest02326.java | 4 +-- .../testcode/BenchmarkTest02327.java | 4 +-- .../testcode/BenchmarkTest02328.java | 4 +-- .../testcode/BenchmarkTest02329.java | 4 +-- .../testcode/BenchmarkTest02330.java | 4 +-- .../testcode/BenchmarkTest02331.java | 4 +-- .../testcode/BenchmarkTest02332.java | 4 +-- .../testcode/BenchmarkTest02333.java | 4 +-- .../testcode/BenchmarkTest02334.java | 4 +-- .../testcode/BenchmarkTest02335.java | 4 +-- .../testcode/BenchmarkTest02336.java | 4 +-- .../testcode/BenchmarkTest02340.java | 4 +-- .../testcode/BenchmarkTest02341.java | 4 +-- .../testcode/BenchmarkTest02342.java | 4 +-- .../testcode/BenchmarkTest02343.java | 4 +-- .../testcode/BenchmarkTest02344.java | 4 +-- .../testcode/BenchmarkTest02352.java | 4 +-- .../testcode/BenchmarkTest02353.java | 4 +-- .../testcode/BenchmarkTest02354.java | 4 +-- .../testcode/BenchmarkTest02355.java | 4 +-- .../testcode/BenchmarkTest02356.java | 4 +-- .../testcode/BenchmarkTest02357.java | 4 +-- .../testcode/BenchmarkTest02358.java | 6 ++-- .../testcode/BenchmarkTest02361.java | 4 +-- .../testcode/BenchmarkTest02362.java | 4 +-- .../testcode/BenchmarkTest02363.java | 4 +-- .../testcode/BenchmarkTest02364.java | 4 +-- .../testcode/BenchmarkTest02365.java | 4 +-- .../testcode/BenchmarkTest02366.java | 4 +-- .../testcode/BenchmarkTest02367.java | 4 +-- .../testcode/BenchmarkTest02368.java | 4 +-- .../testcode/BenchmarkTest02369.java | 4 +-- .../testcode/BenchmarkTest02370.java | 4 +-- .../testcode/BenchmarkTest02371.java | 2 +- .../testcode/BenchmarkTest02372.java | 6 ++-- .../testcode/BenchmarkTest02373.java | 6 ++-- .../testcode/BenchmarkTest02374.java | 6 ++-- .../testcode/BenchmarkTest02375.java | 6 ++-- .../testcode/BenchmarkTest02377.java | 4 +-- .../testcode/BenchmarkTest02378.java | 6 ++-- .../testcode/BenchmarkTest02379.java | 6 ++-- .../testcode/BenchmarkTest02380.java | 6 ++-- .../testcode/BenchmarkTest02381.java | 29 +++++-------------- .../testcode/BenchmarkTest02382.java | 6 ++-- .../testcode/BenchmarkTest02383.java | 6 ++-- .../testcode/BenchmarkTest02385.java | 6 ++-- .../testcode/BenchmarkTest02386.java | 6 ++-- .../testcode/BenchmarkTest02387.java | 6 ++-- .../testcode/BenchmarkTest02388.java | 6 ++-- .../testcode/BenchmarkTest02389.java | 6 ++-- .../testcode/BenchmarkTest02390.java | 6 ++-- .../testcode/BenchmarkTest02391.java | 6 ++-- .../testcode/BenchmarkTest02392.java | 6 ++-- .../testcode/BenchmarkTest02393.java | 6 ++-- .../testcode/BenchmarkTest02394.java | 4 +-- .../testcode/BenchmarkTest02395.java | 4 +-- .../testcode/BenchmarkTest02396.java | 4 +-- .../testcode/BenchmarkTest02397.java | 4 +-- .../testcode/BenchmarkTest02398.java | 4 +-- .../testcode/BenchmarkTest02399.java | 4 +-- .../testcode/BenchmarkTest02400.java | 4 +-- .../testcode/BenchmarkTest02401.java | 4 +-- .../testcode/BenchmarkTest02402.java | 4 +-- .../testcode/BenchmarkTest02403.java | 4 +-- .../testcode/BenchmarkTest02404.java | 4 +-- .../testcode/BenchmarkTest02405.java | 4 +-- .../testcode/BenchmarkTest02406.java | 4 +-- .../testcode/BenchmarkTest02407.java | 4 +-- .../testcode/BenchmarkTest02408.java | 4 +-- .../testcode/BenchmarkTest02409.java | 4 +-- .../testcode/BenchmarkTest02410.java | 4 +-- .../testcode/BenchmarkTest02411.java | 4 +-- .../testcode/BenchmarkTest02412.java | 4 +-- .../testcode/BenchmarkTest02413.java | 4 +-- .../testcode/BenchmarkTest02414.java | 4 +-- .../testcode/BenchmarkTest02428.java | 4 +-- .../testcode/BenchmarkTest02429.java | 4 +-- .../testcode/BenchmarkTest02430.java | 4 +-- .../testcode/BenchmarkTest02431.java | 4 +-- .../testcode/BenchmarkTest02432.java | 4 +-- .../testcode/BenchmarkTest02433.java | 4 +-- .../testcode/BenchmarkTest02446.java | 4 +-- .../testcode/BenchmarkTest02447.java | 4 +-- .../testcode/BenchmarkTest02448.java | 4 +-- .../testcode/BenchmarkTest02449.java | 4 +-- .../testcode/BenchmarkTest02450.java | 4 +-- .../testcode/BenchmarkTest02451.java | 4 +-- .../testcode/BenchmarkTest02452.java | 6 ++-- .../testcode/BenchmarkTest02453.java | 6 ++-- .../testcode/BenchmarkTest02454.java | 4 +-- .../testcode/BenchmarkTest02455.java | 4 +-- .../testcode/BenchmarkTest02456.java | 4 +-- .../testcode/BenchmarkTest02457.java | 4 +-- .../testcode/BenchmarkTest02458.java | 6 ++-- .../testcode/BenchmarkTest02459.java | 2 +- .../testcode/BenchmarkTest02460.java | 2 +- .../testcode/BenchmarkTest02461.java | 2 +- .../testcode/BenchmarkTest02462.java | 6 ++-- .../testcode/BenchmarkTest02463.java | 6 ++-- .../testcode/BenchmarkTest02464.java | 4 +-- .../testcode/BenchmarkTest02465.java | 6 ++-- .../testcode/BenchmarkTest02466.java | 6 ++-- .../testcode/BenchmarkTest02467.java | 6 ++-- .../testcode/BenchmarkTest02468.java | 29 +++++-------------- .../testcode/BenchmarkTest02469.java | 6 ++-- .../testcode/BenchmarkTest02470.java | 6 ++-- .../testcode/BenchmarkTest02471.java | 6 ++-- .../testcode/BenchmarkTest02474.java | 6 ++-- .../testcode/BenchmarkTest02475.java | 6 ++-- .../testcode/BenchmarkTest02476.java | 6 ++-- .../testcode/BenchmarkTest02477.java | 6 ++-- .../testcode/BenchmarkTest02478.java | 6 ++-- .../testcode/BenchmarkTest02479.java | 6 ++-- .../testcode/BenchmarkTest02480.java | 4 +-- .../testcode/BenchmarkTest02481.java | 4 +-- .../testcode/BenchmarkTest02482.java | 4 +-- .../testcode/BenchmarkTest02483.java | 4 +-- .../testcode/BenchmarkTest02484.java | 4 +-- .../testcode/BenchmarkTest02485.java | 4 +-- .../testcode/BenchmarkTest02486.java | 4 +-- .../testcode/BenchmarkTest02487.java | 4 +-- .../testcode/BenchmarkTest02488.java | 4 +-- .../testcode/BenchmarkTest02489.java | 4 +-- .../testcode/BenchmarkTest02490.java | 4 +-- .../testcode/BenchmarkTest02491.java | 4 +-- .../testcode/BenchmarkTest02492.java | 4 +-- .../testcode/BenchmarkTest02493.java | 4 +-- .../testcode/BenchmarkTest02494.java | 4 +-- .../testcode/BenchmarkTest02495.java | 4 +-- .../testcode/BenchmarkTest02496.java | 4 +-- .../testcode/BenchmarkTest02508.java | 3 -- .../testcode/BenchmarkTest02509.java | 4 +-- .../testcode/BenchmarkTest02510.java | 4 +-- .../testcode/BenchmarkTest02511.java | 4 +-- .../testcode/BenchmarkTest02512.java | 4 +-- .../testcode/BenchmarkTest02513.java | 4 +-- .../testcode/BenchmarkTest02514.java | 4 +-- .../testcode/BenchmarkTest02515.java | 4 +-- .../testcode/BenchmarkTest02516.java | 4 +-- .../testcode/BenchmarkTest02517.java | 4 +-- .../testcode/BenchmarkTest02518.java | 4 +-- .../testcode/BenchmarkTest02523.java | 4 +-- .../testcode/BenchmarkTest02524.java | 4 +-- .../testcode/BenchmarkTest02525.java | 4 +-- .../testcode/BenchmarkTest02526.java | 4 +-- .../testcode/BenchmarkTest02527.java | 4 +-- .../testcode/BenchmarkTest02528.java | 4 +-- .../testcode/BenchmarkTest02529.java | 4 +-- .../testcode/BenchmarkTest02530.java | 4 +-- .../testcode/BenchmarkTest02531.java | 4 +-- .../testcode/BenchmarkTest02532.java | 4 +-- .../testcode/BenchmarkTest02533.java | 4 +-- .../testcode/BenchmarkTest02534.java | 4 +-- .../testcode/BenchmarkTest02535.java | 4 +-- .../testcode/BenchmarkTest02536.java | 4 +-- .../testcode/BenchmarkTest02537.java | 4 +-- .../testcode/BenchmarkTest02538.java | 4 +-- .../testcode/BenchmarkTest02539.java | 4 +-- .../testcode/BenchmarkTest02540.java | 4 +-- .../testcode/BenchmarkTest02541.java | 4 +-- .../testcode/BenchmarkTest02542.java | 4 +-- .../testcode/BenchmarkTest02543.java | 4 +-- .../testcode/BenchmarkTest02544.java | 4 +-- .../testcode/BenchmarkTest02545.java | 4 +-- .../testcode/BenchmarkTest02546.java | 4 +-- .../testcode/BenchmarkTest02547.java | 2 +- .../testcode/BenchmarkTest02548.java | 6 ++-- .../testcode/BenchmarkTest02549.java | 6 ++-- .../testcode/BenchmarkTest02550.java | 6 ++-- .../testcode/BenchmarkTest02551.java | 2 +- .../testcode/BenchmarkTest02552.java | 2 +- .../testcode/BenchmarkTest02554.java | 6 ++-- .../testcode/BenchmarkTest02555.java | 4 +-- .../testcode/BenchmarkTest02556.java | 4 +-- .../testcode/BenchmarkTest02557.java | 4 +-- .../testcode/BenchmarkTest02558.java | 4 +-- .../testcode/BenchmarkTest02559.java | 6 ++-- .../testcode/BenchmarkTest02560.java | 6 ++-- .../testcode/BenchmarkTest02561.java | 6 ++-- .../testcode/BenchmarkTest02562.java | 6 ++-- .../testcode/BenchmarkTest02563.java | 6 ++-- .../testcode/BenchmarkTest02564.java | 6 ++-- .../testcode/BenchmarkTest02565.java | 29 +++++-------------- .../testcode/BenchmarkTest02566.java | 29 +++++-------------- .../testcode/BenchmarkTest02567.java | 6 ++-- .../testcode/BenchmarkTest02568.java | 6 ++-- .../testcode/BenchmarkTest02569.java | 6 ++-- .../testcode/BenchmarkTest02570.java | 6 ++-- .../testcode/BenchmarkTest02573.java | 6 ++-- .../testcode/BenchmarkTest02574.java | 6 ++-- .../testcode/BenchmarkTest02575.java | 6 ++-- .../testcode/BenchmarkTest02576.java | 6 ++-- .../testcode/BenchmarkTest02577.java | 6 ++-- .../testcode/BenchmarkTest02578.java | 4 +-- .../testcode/BenchmarkTest02579.java | 4 +-- .../testcode/BenchmarkTest02580.java | 4 +-- .../testcode/BenchmarkTest02581.java | 4 +-- .../testcode/BenchmarkTest02582.java | 4 +-- .../testcode/BenchmarkTest02583.java | 4 +-- .../testcode/BenchmarkTest02584.java | 4 +-- .../testcode/BenchmarkTest02585.java | 4 +-- .../testcode/BenchmarkTest02586.java | 4 +-- .../testcode/BenchmarkTest02587.java | 4 +-- .../testcode/BenchmarkTest02588.java | 4 +-- .../testcode/BenchmarkTest02589.java | 4 +-- .../testcode/BenchmarkTest02590.java | 4 +-- .../testcode/BenchmarkTest02591.java | 4 +-- .../testcode/BenchmarkTest02592.java | 4 +-- .../testcode/BenchmarkTest02593.java | 4 +-- .../testcode/BenchmarkTest02594.java | 4 +-- .../testcode/BenchmarkTest02595.java | 4 +-- .../testcode/BenchmarkTest02596.java | 4 +-- .../testcode/BenchmarkTest02597.java | 4 +-- .../testcode/BenchmarkTest02598.java | 4 +-- .../testcode/BenchmarkTest02599.java | 4 +-- .../testcode/BenchmarkTest02600.java | 4 +-- .../testcode/BenchmarkTest02601.java | 4 +-- .../testcode/BenchmarkTest02607.java | 3 -- .../testcode/BenchmarkTest02608.java | 4 +-- .../testcode/BenchmarkTest02609.java | 4 +-- .../testcode/BenchmarkTest02610.java | 4 +-- .../testcode/BenchmarkTest02611.java | 4 +-- .../testcode/BenchmarkTest02612.java | 4 +-- .../testcode/BenchmarkTest02613.java | 4 +-- .../testcode/BenchmarkTest02622.java | 4 +-- .../testcode/BenchmarkTest02623.java | 4 +-- .../testcode/BenchmarkTest02624.java | 4 +-- .../testcode/BenchmarkTest02625.java | 4 +-- .../testcode/BenchmarkTest02626.java | 4 +-- .../testcode/BenchmarkTest02627.java | 4 +-- .../testcode/BenchmarkTest02628.java | 4 +-- .../testcode/BenchmarkTest02629.java | 4 +-- .../testcode/BenchmarkTest02630.java | 4 +-- .../testcode/BenchmarkTest02631.java | 4 +-- .../testcode/BenchmarkTest02632.java | 4 +-- .../testcode/BenchmarkTest02633.java | 4 +-- .../testcode/BenchmarkTest02634.java | 4 +-- .../testcode/BenchmarkTest02635.java | 4 +-- .../testcode/BenchmarkTest02636.java | 4 +-- .../testcode/BenchmarkTest02637.java | 4 +-- .../testcode/BenchmarkTest02638.java | 4 +-- .../testcode/BenchmarkTest02639.java | 4 +-- .../testcode/BenchmarkTest02640.java | 4 +-- .../testcode/BenchmarkTest02641.java | 4 +-- .../testcode/BenchmarkTest02642.java | 6 ++-- .../testcode/BenchmarkTest02643.java | 6 ++-- .../testcode/BenchmarkTest02644.java | 4 +-- .../testcode/BenchmarkTest02645.java | 4 +-- .../testcode/BenchmarkTest02646.java | 4 +-- .../testcode/BenchmarkTest02647.java | 4 +-- .../testcode/BenchmarkTest02648.java | 4 +-- .../testcode/BenchmarkTest02649.java | 4 +-- .../testcode/BenchmarkTest02650.java | 4 +-- .../testcode/BenchmarkTest02651.java | 4 +-- .../testcode/BenchmarkTest02652.java | 4 +-- .../testcode/BenchmarkTest02653.java | 4 +-- .../testcode/BenchmarkTest02654.java | 4 +-- .../testcode/BenchmarkTest02655.java | 4 +-- .../testcode/BenchmarkTest02656.java | 4 +-- .../testcode/BenchmarkTest02657.java | 4 +-- .../testcode/BenchmarkTest02658.java | 6 ++-- .../testcode/BenchmarkTest02659.java | 2 +- .../testcode/BenchmarkTest02660.java | 6 ++-- .../testcode/BenchmarkTest02661.java | 6 ++-- .../testcode/BenchmarkTest02662.java | 2 +- .../testcode/BenchmarkTest02663.java | 6 ++-- .../testcode/BenchmarkTest02664.java | 4 +-- .../testcode/BenchmarkTest02665.java | 6 ++-- .../testcode/BenchmarkTest02666.java | 6 ++-- .../testcode/BenchmarkTest02667.java | 6 ++-- .../testcode/BenchmarkTest02668.java | 6 ++-- .../testcode/BenchmarkTest02669.java | 6 ++-- .../testcode/BenchmarkTest02670.java | 6 ++-- .../testcode/BenchmarkTest02671.java | 6 ++-- .../testcode/BenchmarkTest02672.java | 6 ++-- .../testcode/BenchmarkTest02673.java | 6 ++-- .../testcode/BenchmarkTest02674.java | 6 ++-- .../testcode/BenchmarkTest02675.java | 6 ++-- .../testcode/BenchmarkTest02676.java | 6 ++-- .../testcode/BenchmarkTest02677.java | 6 ++-- .../testcode/BenchmarkTest02678.java | 6 ++-- .../testcode/BenchmarkTest02679.java | 4 +-- .../testcode/BenchmarkTest02680.java | 4 +-- .../testcode/BenchmarkTest02681.java | 4 +-- .../testcode/BenchmarkTest02682.java | 4 +-- .../testcode/BenchmarkTest02683.java | 4 +-- .../testcode/BenchmarkTest02684.java | 4 +-- .../testcode/BenchmarkTest02685.java | 4 +-- .../testcode/BenchmarkTest02686.java | 4 +-- .../testcode/BenchmarkTest02687.java | 4 +-- .../testcode/BenchmarkTest02688.java | 4 +-- .../testcode/BenchmarkTest02689.java | 4 +-- .../testcode/BenchmarkTest02690.java | 4 +-- .../testcode/BenchmarkTest02691.java | 4 +-- .../testcode/BenchmarkTest02692.java | 4 +-- .../testcode/BenchmarkTest02693.java | 4 +-- .../testcode/BenchmarkTest02694.java | 4 +-- .../testcode/BenchmarkTest02695.java | 4 +-- .../testcode/BenchmarkTest02696.java | 4 +-- .../testcode/BenchmarkTest02697.java | 4 +-- .../testcode/BenchmarkTest02698.java | 4 +-- .../testcode/BenchmarkTest02699.java | 4 +-- .../testcode/BenchmarkTest02711.java | 3 -- .../testcode/BenchmarkTest02712.java | 4 +-- .../testcode/BenchmarkTest02713.java | 4 +-- .../testcode/BenchmarkTest02714.java | 4 +-- .../testcode/BenchmarkTest02722.java | 4 +-- .../testcode/BenchmarkTest02723.java | 4 +-- .../testcode/BenchmarkTest02724.java | 4 +-- .../testcode/BenchmarkTest02725.java | 4 +-- .../testcode/BenchmarkTest02726.java | 4 +-- .../testcode/BenchmarkTest02727.java | 4 +-- .../testcode/BenchmarkTest02728.java | 4 +-- .../testcode/BenchmarkTest02729.java | 4 +-- .../testcode/BenchmarkTest02730.java | 4 +-- .../testcode/BenchmarkTest02731.java | 4 +-- .../testcode/BenchmarkTest02732.java | 4 +-- .../testcode/BenchmarkTest02733.java | 6 ++-- .../testcode/BenchmarkTest02736.java | 6 ++-- .../testcode/BenchmarkTest02737.java | 4 +-- .../testcode/BenchmarkTest02738.java | 4 +-- .../testcode/BenchmarkTest02739.java | 4 +-- .../testcode/BenchmarkTest02740.java | 4 +-- 2023 files changed, 4537 insertions(+), 4907 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/helpers/Utils.java b/src/main/java/org/owasp/benchmark/helpers/Utils.java index 17e26866a9..bea5637c9b 100644 --- a/src/main/java/org/owasp/benchmark/helpers/Utils.java +++ b/src/main/java/org/owasp/benchmark/helpers/Utils.java @@ -89,9 +89,6 @@ public class Utils { // A 'test' directory that target test files are created in so test cases can use them public static final String TESTFILES_DIR = USERDIR + File.separator + "testfiles" + File.separator; - public static final String testfileDir = USERDIR + File.separator + "testfiles" + File.separator; - // Note: The above constant was renamed to be all CAPs, but generated test cases use old name. Remove - // after regenerating with new constant name. public static final String DATA_DIR = USERDIR + File.separator + "data" + File.separator; diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00001.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00001.java index 60e54fbbb6..8bb00ede8d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00001.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00001.java @@ -67,7 +67,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + param; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + param; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00002.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00002.java index b35f5e5a06..0de13df8ba 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00002.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00002.java @@ -67,7 +67,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + param; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + param; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00003.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00003.java index 797df543bc..7b8c30d46b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00003.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00003.java @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00005.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00005.java index c98e1587bd..6fa0258a26 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00005.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00005.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00006.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00006.java index 42d754f413..decd55c69e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00006.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00006.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00007.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00007.java index 15127c235f..ee5fc49c44 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00007.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00007.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00008.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00008.java index 7bed4eb60d..de57102472 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00008.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00008.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00009.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00009.java index 63f3461753..d3cb37b2c6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00009.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00009.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00011.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00011.java index 1414a7e55a..199b6cdd9b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00011.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00011.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00013.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00013.java index 588802a687..8fdceecb52 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00013.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00013.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00014.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00014.java index a41d708d58..e94eef083e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00014.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00014.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00015.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00015.java index bad024f675..690f57696a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00015.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00015.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00016.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00016.java index 0fc32c07ab..c34f5481ec 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00016.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00016.java @@ -69,9 +69,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00017.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00017.java index 7dc210033f..6feccf1b8b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00017.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00017.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00018.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00018.java index ea14bf26bd..7f06e4f598 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00018.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00018.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00019.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00019.java index 052cfd3d3f..ae15fb91d5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00019.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00019.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00020.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00020.java index 78b143ddfc..f66f043af5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00020.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00020.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00022.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00022.java index 6380f0c2ce..357b9ab0b9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00022.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00022.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00024.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00024.java index ad513f80b8..c5d1627e4d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00024.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00024.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00026.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00026.java index c67f3f524b..7223f33c00 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00026.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00026.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00027.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00027.java index 9c720b20e7..9e19a15438 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00027.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00027.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00028.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00028.java index fed5e70479..6da9a94c7d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00028.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00028.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -55,7 +55,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + param; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + param; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00029.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00029.java index 4bb6d81938..351c691898 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00029.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00029.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -74,7 +74,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00030.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00030.java index 3a82e075e6..b0413cc8e4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00030.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00030.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00031.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00031.java index b956f5d32a..12bca3b930 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00031.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00031.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00032.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00032.java index 47aca0c453..50e5ef2f36 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00032.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00032.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00033.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00033.java index 1bf3bffb3b..4c30d2209d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00033.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00033.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00034.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00034.java index d27128a514..667e0839e7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00034.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00034.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00035.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00035.java index a0f60e11da..545672cdc2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00035.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00035.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00036.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00036.java index aca52161f6..c846c589a7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00036.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00036.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00037.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00037.java index a8eb7aa8a8..ae2a4128c7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00037.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00037.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00038.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00038.java index 1b002e2258..e60a69a446 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00038.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00038.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00039.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00039.java index 1a0e0f68ee..73ed3a0c11 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00039.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00039.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -62,7 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + param + "'"; try { - java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); + java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); response.getWriter().println( "Your results are: " ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00040.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00040.java index 91bfe8d381..a19825c0b4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00040.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00040.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00041.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00041.java index 887505e066..b676738a22 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00041.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00041.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00043.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00043.java index 11f4e55516..33a9ff5c9e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00043.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00043.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00045.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00045.java index 5d42e59e36..ebfea9321d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00045.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00045.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -49,38 +49,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr else param = ""; - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + param; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + param).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + param).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + param; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00046.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00046.java index a6208480ab..a041c84494 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00046.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00046.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -69,7 +69,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00047.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00047.java index d864b22b43..c22034d637 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00047.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00047.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00048.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00048.java index 60ee7aabae..088b053a4d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00048.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00048.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00049.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00049.java index 6fc9807691..c19c7e4d56 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00049.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00049.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00050.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00050.java index 58d00e8399..700501b460 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00050.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00050.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00051.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00051.java index 2a76f612b4..35b25170f2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00051.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00051.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00052.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00052.java index 1f2f5f5f66..af905732eb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00052.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00052.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00053.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00053.java index d3340486b8..11d2a3f203 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00053.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00053.java @@ -106,7 +106,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00054.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00054.java index 5a3a36503f..5d68345bb2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00054.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00054.java @@ -103,7 +103,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00055.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00055.java index a0fb6d8cae..239b89ae3a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00055.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00055.java @@ -99,7 +99,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00056.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00056.java index 1e2b0fba25..8b828f12d2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00056.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00056.java @@ -109,7 +109,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00057.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00057.java index 6404e94874..9018369f76 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00057.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00057.java @@ -106,7 +106,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00058.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00058.java index 8ddec22845..b557bd615d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00058.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00058.java @@ -92,7 +92,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00059.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00059.java index 7e22c2cd23..fee50dc656 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00059.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00059.java @@ -103,7 +103,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00060.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00060.java index a5782a93e8..abca70f7f8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00060.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00060.java @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00062.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00062.java index 667ceaf7a0..eeb9586cbf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00062.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00062.java @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00063.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00063.java index 56992b71a3..5b087fdc2d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00063.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00063.java @@ -74,7 +74,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00064.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00064.java index 0b33499d31..d9597464c6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00064.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00064.java @@ -74,7 +74,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00065.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00065.java index 0a598be324..faafc4ac3f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00065.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00065.java @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00069.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00069.java index d21d031782..707828d20c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00069.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00069.java @@ -98,7 +98,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00070.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00070.java index b9c2aee1eb..934a08cdf9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00070.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00070.java @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00071.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00071.java index 7a62231c50..6adcc27028 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00071.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00071.java @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00072.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00072.java index 73b4023480..123cc8c1ce 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00072.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00072.java @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00073.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00073.java index e0d5a7c18e..e50ed0d2af 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00073.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00073.java @@ -103,7 +103,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00074.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00074.java index 2d9fbc6ce3..ecab84e672 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00074.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00074.java @@ -92,7 +92,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00075.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00075.java index fac4d8009a..3b7d1d5353 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00075.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00075.java @@ -93,7 +93,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00076.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00076.java index d01fbf5898..2bcd5d1b11 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00076.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00076.java @@ -106,7 +106,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00102.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00102.java index 47cc4a66d2..067849072b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00102.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00102.java @@ -67,7 +67,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); + java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); response.getWriter().println( "Your results are: " ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00119.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00119.java index 49d6467709..23074dd9a8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00119.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00119.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -101,7 +101,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00120.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00120.java index 7f24712960..d3a82e72d5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00120.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00120.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -92,7 +92,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00121.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00121.java index af1ac72fb6..0a3300dc00 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00121.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00121.java @@ -101,7 +101,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00122.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00122.java index ea7c3a7b7d..3ed673f164 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00122.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00122.java @@ -91,7 +91,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00123.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00123.java index a9a61cf7ba..98f87cf89c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00123.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00123.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00124.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00124.java index d93e475fe2..01c25f367e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00124.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00124.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00125.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00125.java index 5debf6c75a..aaf755dc9d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00125.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00125.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00126.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00126.java index d932a62834..104e3c1283 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00126.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00126.java @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00127.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00127.java index fab72bb1fd..f904787bad 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00127.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00127.java @@ -100,7 +100,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00128.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00128.java index 193380f8bc..0d1bb40f81 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00128.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00128.java @@ -96,7 +96,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00129.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00129.java index 561b45aad6..3d0c75e7bc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00129.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00129.java @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00130.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00130.java index 1d4db2601f..7ed042fb9c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00130.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00130.java @@ -109,7 +109,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00131.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00131.java index ee233f844f..e38ecfd237 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00131.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00131.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00132.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00132.java index dbb09662ae..f1c1a62da7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00132.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00132.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -75,7 +75,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00133.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00133.java index 914f68c70f..ef6efcfb0a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00133.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00133.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -62,7 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00134.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00134.java index 54c910385a..a7a6aefa18 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00134.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00134.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -62,38 +62,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00135.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00135.java index 0c9eba730c..e9a06f5a00 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00135.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00135.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -71,38 +71,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00136.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00136.java index 91742cb141..4714a626c1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00136.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00136.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -75,7 +75,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00137.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00137.java index b533f97b72..a921fef133 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00137.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00137.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -58,7 +58,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr bar = (String)map53289.get("keyA-53289"); // get safe value back out - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00141.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00141.java index 1560d73c94..974c06e977 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00141.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00141.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00142.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00142.java index 5a9d2a994a..7b43893ce9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00142.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00142.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -78,7 +78,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00143.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00143.java index b9b8d05f02..0a546b4f20 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00143.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00143.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00144.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00144.java index c73901b220..7250aff06f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00144.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00144.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00145.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00145.java index cf8d3267fe..e7f50edee2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00145.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00145.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00146.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00146.java index a967c074fc..6774e18a54 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00146.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00146.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00147.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00147.java index e7e77989f8..7dcbeee9aa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00147.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00147.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00148.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00148.java index 85bc5558f9..febe52bee4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00148.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00148.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00149.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00149.java index cf049e770c..e56c46f27f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00149.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00149.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00150.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00150.java index 6b94ffd9e1..6fc513bdee 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00150.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00150.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00151.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00151.java index 38d237c523..51cea2cd74 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00151.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00151.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00152.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00152.java index fe84455066..d808686716 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00152.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00152.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00153.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00153.java index 03a97c3abe..61c8490d0d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00153.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00153.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00154.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00154.java index 0baaace48f..dcb7919b52 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00154.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00154.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00155.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00155.java index cdcc15c0f3..d9dcb48f5d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00155.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00155.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00156.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00156.java index 682ff838b9..a8d196ee35 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00156.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00156.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00157.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00157.java index dafee1a3a3..ed1c0bfc40 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00157.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00157.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00158.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00158.java index d687bb687a..e423c13904 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00158.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00158.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00159.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00159.java index 0536a48a23..899f5f41a5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00159.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00159.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00171.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00171.java index a2fb130f53..9f77dcdfcb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00171.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00171.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00172.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00172.java index a54677ad93..f4bab0deda 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00172.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00172.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00173.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00173.java index 0d84f1a9ba..a564b724ed 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00173.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00173.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00174.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00174.java index 2f5af3cfa0..aa99c41bfd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00174.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00174.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00175.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00175.java index 3f0627f279..5cd684b10a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00175.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00175.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00176.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00176.java index b5584442d2..bd5a4895b8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00176.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00176.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00177.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00177.java index d176b2ba24..dc21576515 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00177.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00177.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00189.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00189.java index 79ee599beb..6d6c22f30b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00189.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00189.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00190.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00190.java index 991c50b63d..57c3cb7e3e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00190.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00190.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00191.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00191.java index 05d7e61cd0..97dd9739ff 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00191.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00191.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00192.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00192.java index 3121759e80..34d8876010 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00192.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00192.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00193.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00193.java index 8d1e57cc9f..8f48c7ac6e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00193.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00193.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00194.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00194.java index a9e2a08d7e..8647f03bdc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00194.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00194.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00195.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00195.java index 761fe0932a..f551a7b0f8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00195.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00195.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00196.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00196.java index 839a6a5cd0..2dba9fc17f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00196.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00196.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00197.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00197.java index 1bee827e63..2d95fb7389 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00197.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00197.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00200.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00200.java index 04eb731b86..3d1220e39d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00200.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00200.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00201.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00201.java index 374f09a909..031e5d356b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00201.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00201.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00202.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00202.java index fa2c50b8b5..13c7b20ebe 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00202.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00202.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00203.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00203.java index 5a288c9f2f..61780e9ae3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00203.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00203.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00204.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00204.java index acd4804e22..a690223817 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00204.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00204.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00205.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00205.java index 059941962b..3ab069df9f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00205.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00205.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00206.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00206.java index cd415bd511..97f5abb635 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00206.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00206.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00207.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00207.java index 11dc6acae9..28e99fe266 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00207.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00207.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00208.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00208.java index 107a3aa8d4..1ffb234731 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00208.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00208.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -102,7 +102,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00209.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00209.java index 8ce1e0949e..9c910a12b5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00209.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00209.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00210.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00210.java index 1b0c5554b8..6267f26d5b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00210.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00210.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -100,7 +100,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00211.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00211.java index 18993aa65a..2247f5d25f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00211.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00211.java @@ -99,7 +99,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00212.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00212.java index 99baae9609..6c72959085 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00212.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00212.java @@ -95,7 +95,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00213.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00213.java index 09d4a6742d..72c9101f76 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00213.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00213.java @@ -109,7 +109,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00214.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00214.java index 90422e3172..06cc0f1f67 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00214.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00214.java @@ -99,7 +99,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00215.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00215.java index f16e052342..12954d4deb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00215.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00215.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,7 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = param; - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00216.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00216.java index c3983fd1ea..68882d69a4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00216.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00216.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -67,7 +67,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr else bar = "This should never happen"; - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00217.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00217.java index 33233f93f9..d2352960ea 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00217.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00217.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00218.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00218.java index 55ba083935..2c45447a78 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00218.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00218.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file", null, startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00219.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00219.java index be4bd657bc..3a5047ee6f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00219.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00219.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -71,7 +71,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00220.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00220.java index d534181cd5..dac400c63f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00220.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00220.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00221.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00221.java index f9e04a51cc..11d2e6f1b5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00221.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00221.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -71,7 +71,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00222.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00222.java index 36385611b0..284342d119 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00222.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00222.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -84,7 +84,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00223.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00223.java index 50f82d7965..574f2303c2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00223.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00223.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00224.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00224.java index 16acca7dc8..064e9fad3a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00224.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00224.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -89,7 +89,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00225.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00225.java index be58fc4682..7294c734bc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00225.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00225.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00226.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00226.java index 335146ee1e..aa00faf9ee 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00226.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00226.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00227.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00227.java index 6180faa3c9..c3313b0fa6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00227.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00227.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -98,7 +98,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00228.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00228.java index bd8a6b9869..68b3f1e5f2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00228.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00228.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00229.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00229.java index 17e0753742..b62b9bae86 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00229.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00229.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -84,7 +84,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00242.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00242.java index a0140305ce..59e84a762b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00242.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00242.java @@ -87,9 +87,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00250.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00250.java index 0762e1041f..4a98b5d117 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00250.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00250.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00251.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00251.java index 37d7a7f70d..7dbaa914ac 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00251.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00251.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00252.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00252.java index 6ef9e55c38..e47a8d23f7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00252.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00252.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00253.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00253.java index 39aa5e2d84..4901a040d9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00253.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00253.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00254.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00254.java index c3ade1838f..462bb9b56f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00254.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00254.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00255.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00255.java index fec39a0d1b..e4b0a51e32 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00255.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00255.java @@ -96,7 +96,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00256.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00256.java index f92ca0454a..dbecdd3a1d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00256.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00256.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -99,7 +99,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00257.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00257.java index d734c48af7..c1b114b724 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00257.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00257.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00258.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00258.java index dff34b364e..e4c94fe09f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00258.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00258.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -89,7 +89,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00259.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00259.java index a163f2a25f..81ec7e1fc2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00259.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00259.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -77,7 +77,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00260.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00260.java index ca116c2edf..3956141d97 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00260.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00260.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -77,7 +77,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00261.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00261.java index 71b68530ca..ac0047d864 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00261.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00261.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = thing.doSomething(g3000); // reflection - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00262.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00262.java index 24079ac814..87dc7dcc19 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00262.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00262.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00263.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00263.java index 4b4fa72662..6a58062cca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00263.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00263.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -77,7 +77,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00264.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00264.java index c218d2ace5..5edc5a578e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00264.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00264.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -64,7 +64,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00265.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00265.java index db8cb17f28..6958b2b0ff 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00265.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00265.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00266.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00266.java index 825c7d2100..48b994c8bb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00266.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00266.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00267.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00267.java index 2321b90576..c378f8ce1c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00267.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00267.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -83,7 +83,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00268.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00268.java index d272609b53..7a2a62f956 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00268.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00268.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -80,7 +80,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00269.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00269.java index 2131fd09f6..49af1a6965 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00269.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00269.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -80,7 +80,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00270.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00270.java index 55f7470228..767a815a3b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00270.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00270.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -84,7 +84,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00271.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00271.java index 8a6639b95c..fec4061707 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00271.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00271.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00272.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00272.java index b0af62fe43..41680221cf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00272.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00272.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -93,7 +93,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00273.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00273.java index 263d112886..a40b5f50f5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00273.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00273.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00274.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00274.java index c08af7e945..b6fd8402f0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00274.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00274.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -77,7 +77,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00275.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00275.java index 5ed99eda87..662b5098cc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00275.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00275.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00276.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00276.java index fc37b09e0d..4d889131d4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00276.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00276.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00277.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00277.java index c306f2d4dd..34547d9103 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00277.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00277.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00278.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00278.java index 27f6193d96..50cd90126b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00278.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00278.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00279.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00279.java index 095adde722..d211792a6a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00279.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00279.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00280.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00280.java index cbf2484132..e6f5a6bd78 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00280.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00280.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00281.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00281.java index 5485f18643..2182c8ccbf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00281.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00281.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00282.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00282.java index afd007fed9..aec40ab8b8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00282.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00282.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00283.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00283.java index 7df7536e14..9e40e42712 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00283.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00283.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00284.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00284.java index aca10e6837..53be1ff5a3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00284.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00284.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00285.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00285.java index 25790fba78..35336ea2f1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00285.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00285.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00286.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00286.java index b8b4179b48..72fd484122 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00286.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00286.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00287.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00287.java index b1f2fd4f90..fc39fb4eb2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00287.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00287.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00288.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00288.java index eb661bf72f..15f59d9051 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00288.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00288.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00289.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00289.java index d8694ec436..5b1f00c904 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00289.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00289.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00290.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00290.java index 9d392dffb2..5e3b194d8e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00290.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00290.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00291.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00291.java index b75d9bb040..e154c57db7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00291.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00291.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00292.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00292.java index 1197d7a2cb..a56eae7eaa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00292.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00292.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00293.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00293.java index 6c8c1a5f4b..3de424d5ad 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00293.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00293.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00294.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00294.java index 5a238503a7..32756d6319 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00294.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00294.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00295.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00295.java index 1565687902..2cd9da8545 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00295.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00295.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00301.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00301.java index 5feb08b11e..3fcadbf288 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00301.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00301.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00302.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00302.java index cf9779e711..7000e31d2f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00302.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00302.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00303.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00303.java index 4751a39c22..6983efce30 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00303.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00303.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00304.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00304.java index d9dd116a66..e3acc6883e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00304.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00304.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00305.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00305.java index 2652151b19..ee471d1491 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00305.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00305.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00306.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00306.java index 78fa626616..1619a8ee16 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00306.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00306.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00307.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00307.java index d4268514ac..d5432e1bfe 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00307.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00307.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00308.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00308.java index da95c97051..1d21dd3126 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00308.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00308.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00309.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00309.java index 526e8ce24f..0fd3232045 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00309.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00309.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00310.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00310.java index d786779c3d..9a7343de46 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00310.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00310.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00311.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00311.java index 96fcc0f3f9..dfef391bee 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00311.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00311.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00321.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00321.java index 51a1c48ff7..1e5b5b199c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00321.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00321.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00322.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00322.java index d3a947af27..b3b61f7b80 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00322.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00322.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00323.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00323.java index 018c2bffe6..190b315b26 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00323.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00323.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00324.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00324.java index d121fce9ed..8275bee687 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00324.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00324.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00325.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00325.java index 97ede9246f..c2052f5e5f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00325.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00325.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00326.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00326.java index b44c520fdd..d4305fe61d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00326.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00326.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00327.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00327.java index 14dc6d2bc8..97c712ea8c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00327.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00327.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00328.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00328.java index 041ff519fa..744b83b820 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00328.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00328.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00329.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00329.java index 8219917df6..061f066127 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00329.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00329.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00330.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00330.java index ed78cc23b6..3b65146fbb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00330.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00330.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00331.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00331.java index 5f5cb460f2..d48dab3e4a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00331.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00331.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00332.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00332.java index 02905b59f9..2f1883a01c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00332.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00332.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00333.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00333.java index fbc27fc03a..81a2308b4e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00333.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00333.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00334.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00334.java index da50e2e987..d8dd2205b5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00334.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00334.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00335.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00335.java index 22b94ef279..494b14d1b8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00335.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00335.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00337.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00337.java index 8b11f06874..267ed72dd8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00337.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00337.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00338.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00338.java index 9a15df5717..55e4bdd5b0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00338.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00338.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00339.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00339.java index acdcf40818..e999fdaac9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00339.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00339.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00340.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00340.java index a0571c5e69..df2479f3cf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00340.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00340.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00341.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00341.java index a59ae6e7a7..64b2e487ca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00341.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00341.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00342.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00342.java index 93c7fb9841..a7080f410f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00342.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00342.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00343.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00343.java index 232907bab9..365563ed83 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00343.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00343.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00344.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00344.java index 8846af9c8e..e69e5fe9dc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00344.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00344.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00345.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00345.java index 83f406d9da..0e2c1360a0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00345.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00345.java @@ -74,7 +74,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00346.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00346.java index f1d202615b..ad1c992845 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00346.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00346.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -74,7 +74,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00350.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00350.java index a1b6b3721e..5fbbee8dc5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00350.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00350.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -76,7 +76,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00351.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00351.java index 680045b8f8..7e53f56b1c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00351.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00351.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -76,7 +76,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00352.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00352.java index b78216c395..0e0793dd16 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00352.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00352.java @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00353.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00353.java index 0d554e538f..09e41d904d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00353.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00353.java @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00354.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00354.java index 4a4b3eb8e9..1d22cdd9f2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00354.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00354.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00355.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00355.java index 77fae9ed8b..8a0de2885c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00355.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00355.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00356.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00356.java index 71c1092fa5..93209362b6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00356.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00356.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00357.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00357.java index 48174bb831..71d2e95788 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00357.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00357.java @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00358.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00358.java index d98d5b10e9..0bdf3bff42 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00358.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00358.java @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00359.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00359.java index 255a0d6a4d..7ac7293496 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00359.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00359.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00360.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00360.java index 77dcf90d53..9f5c24fdaf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00360.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00360.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -55,7 +55,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00361.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00361.java index 1ca01ba159..e9ea077b83 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00361.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00361.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00362.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00362.java index d761c1ee01..732a0ed8d9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00362.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00362.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -51,7 +51,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00363.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00363.java index 458c44a407..2f1c920dfa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00363.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00363.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -47,38 +47,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = param; - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00364.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00364.java index 260b41f59c..02e1246335 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00364.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00364.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,7 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00365.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00365.java index a4e0632afd..3b87b9b3c4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00365.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00365.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -53,7 +53,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr bar = (String)map10106.get("keyA-10106"); // get safe value back out - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00366.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00366.java index ae916630ef..961bd1fbfe 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00366.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00366.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00370.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00370.java index 204ad7961f..0c677fa739 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00370.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00370.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00371.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00371.java index 9280a0bb8f..f32f849cbf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00371.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00371.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00372.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00372.java index c483c6db13..b61961be72 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00372.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00372.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00373.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00373.java index 11a18a6999..b96e213998 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00373.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00373.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00374.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00374.java index ef6d31afc3..93001d14f2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00374.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00374.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -71,7 +71,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00375.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00375.java index fe3293f4c9..42ce54f22a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00375.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00375.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00376.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00376.java index 8badee139f..abb3145e85 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00376.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00376.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00377.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00377.java index 5c8a2e6d9a..36ffe2667c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00377.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00377.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00378.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00378.java index 5e9c9b56a7..17f6d587e1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00378.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00378.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00379.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00379.java index 929e67c99f..f5671125b4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00379.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00379.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00380.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00380.java index c1428b07ca..54553f1094 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00380.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00380.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00381.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00381.java index 410d5938d6..4f6c99470c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00381.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00381.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00382.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00382.java index 4a52020d5c..8720965bc9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00382.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00382.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00383.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00383.java index f4d2e1c63a..08fd92ac46 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00383.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00383.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00384.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00384.java index 9725306172..69f8f6d36e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00384.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00384.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00385.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00385.java index 7d5354246e..0c2fc0538b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00385.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00385.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00386.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00386.java index 52ca8ecd62..77de964afa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00386.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00386.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00387.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00387.java index 142cf5119f..d2974eed0b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00387.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00387.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00388.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00388.java index b3dd71f2f9..43a3122f84 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00388.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00388.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00389.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00389.java index 7a81e69a27..521b627776 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00389.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00389.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00390.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00390.java index 01e1b0a266..3d7f92a658 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00390.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00390.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00391.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00391.java index b2ced365e8..dc92dd3640 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00391.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00391.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00392.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00392.java index 67f567ed3d..6bbc75bac3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00392.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00392.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00393.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00393.java index f5c01f0ad5..7889cb74e4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00393.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00393.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00394.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00394.java index f1ec81f01b..f3b883aeed 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00394.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00394.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00395.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00395.java index 6b66a5da06..4a961e3a43 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00395.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00395.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00396.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00396.java index 3e8987a53e..d95fff3ca0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00396.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00396.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00404.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00404.java index 6f1b4aa040..7dc28f4f08 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00404.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00404.java @@ -67,9 +67,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00405.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00405.java index d0a12cb784..d1e84d35ca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00405.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00405.java @@ -66,9 +66,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00406.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00406.java index 4508bd2fa9..c6c051de32 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00406.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00406.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00407.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00407.java index 841b4091c9..7a146fef83 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00407.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00407.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00408.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00408.java index ad25ac073a..e7d53fba6b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00408.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00408.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00409.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00409.java index 1c2dc056c7..7e16687e1e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00409.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00409.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00410.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00410.java index c3c593817e..741eb62bb8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00410.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00410.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00411.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00411.java index 9b50f1343f..d88af4165c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00411.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00411.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00412.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00412.java index 614c2ac789..5214113a91 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00412.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00412.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00424.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00424.java index 3d0299f132..c3a74cca9e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00424.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00424.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00425.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00425.java index 37d4bdf4ba..ceb98f9d76 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00425.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00425.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00426.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00426.java index 6232e4b783..a59674401c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00426.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00426.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00427.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00427.java index 344e82b63f..b8084b202b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00427.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00427.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00428.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00428.java index 626e4b2f6c..bf37d338f1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00428.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00428.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00429.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00429.java index 4bb3b8b73e..56749e79b6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00429.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00429.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00430.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00430.java index 06bafa133a..29a76ad532 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00430.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00430.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00431.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00431.java index 37ccd9d225..f4e4650f73 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00431.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00431.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00432.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00432.java index fd4c76fcc6..a44ee9d9b9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00432.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00432.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -59,7 +59,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00433.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00433.java index 95f9227abf..350ed0e8f0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00433.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00433.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -55,7 +55,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00434.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00434.java index 47341ae3bd..423b350d89 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00434.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00434.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00435.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00435.java index df6249564e..7d77076501 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00435.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00435.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00436.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00436.java index d5317ab585..51b06f8817 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00436.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00436.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00437.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00437.java index 5090be65a6..9d56c11b0f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00437.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00437.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00438.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00438.java index 42734c2374..4def2427ae 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00438.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00438.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00439.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00439.java index c1681899cb..cd1ad4b9c6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00439.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00439.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00440.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00440.java index f157ed6748..8e97800790 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00440.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00440.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00441.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00441.java index 7fe78333a9..02512c70c1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00441.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00441.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00442.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00442.java index 5ed96f9339..ff6a0cfe64 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00442.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00442.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00443.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00443.java index 5fa178fce7..6dfcb0f3a3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00443.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00443.java @@ -97,7 +97,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00444.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00444.java index 8a9091eaf0..bf8966e89a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00444.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00444.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -75,7 +75,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00445.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00445.java index 9f91fdbd26..7ca65a68a1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00445.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00445.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -101,7 +101,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00446.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00446.java index 82d9f8b5f2..2a8d1244bf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00446.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00446.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00447.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00447.java index a77aa96dab..d0e0257602 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00447.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00447.java @@ -99,7 +99,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00448.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00448.java index 9009f39c4c..d81eecc006 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00448.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00448.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00449.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00449.java index 285719acee..78708fe2e5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00449.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00449.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -83,7 +83,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00450.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00450.java index 88776e5c2e..bfc305b0d0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00450.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00450.java @@ -103,7 +103,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00451.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00451.java index 8e7ea7ff1f..f1c641c805 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00451.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00451.java @@ -96,7 +96,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00452.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00452.java index 5c8afea95d..09e39ba149 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00452.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00452.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -56,7 +56,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00453.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00453.java index 8f45816882..c95e30fe35 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00453.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00453.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file", null, startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00454.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00454.java index 370a449f17..1a593cd7b0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00454.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00454.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -62,7 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00455.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00455.java index 3c229c3ec9..55c2be9bc9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00455.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00455.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -60,7 +60,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00456.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00456.java index d33ffcf7a1..7440e5ecaa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00456.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00456.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,7 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00457.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00457.java index 3e22192225..b8d3008f6a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00457.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00457.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00458.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00458.java index c04076c9f4..7dc1990de5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00458.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00458.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -75,7 +75,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00459.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00459.java index e8cb1f5cc1..a24a0f367c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00459.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00459.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -60,7 +60,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00460.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00460.java index 54ceab251b..41ca694ee5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00460.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00460.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = thing.doSomething(g62588); // reflection - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00462.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00462.java index 920010d2cb..4e1748390d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00462.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00462.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00463.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00463.java index b173bab219..22bb0deaa9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00463.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00463.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -80,7 +80,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00464.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00464.java index 1fb8e70bfd..741c67df9e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00464.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00464.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -75,7 +75,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00465.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00465.java index bcf43f0e5b..f1d91faf9e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00465.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00465.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -75,7 +75,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00466.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00466.java index 506a191172..e8e09e3e84 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00466.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00466.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -80,7 +80,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00467.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00467.java index 2180894c0c..e4f3855681 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00467.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00467.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00468.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00468.java index 34d0714bca..6cbd90979f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00468.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00468.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00469.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00469.java index d13cee3de2..fb8ff75678 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00469.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00469.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00470.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00470.java index 76aae0b1fe..00d488a746 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00470.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00470.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00471.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00471.java index 3f9b538a9c..84efc47301 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00471.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00471.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00472.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00472.java index 4725bebe71..0009086819 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00472.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00472.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00473.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00473.java index 364ed1bf8f..d01514a9ca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00473.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00473.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00474.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00474.java index 60741d134e..dc65785be0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00474.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00474.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00475.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00475.java index 6fa6b70c70..da25eeec7d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00475.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00475.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00476.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00476.java index 19f0afa22d..4eaa12f37b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00476.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00476.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00477.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00477.java index 986b043d10..0d220be39e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00477.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00477.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00478.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00478.java index de1abe549d..8a790eca14 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00478.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00478.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00479.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00479.java index 21a296df2a..99964c56f4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00479.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00479.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00480.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00480.java index e7f4936b60..634a786fd2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00480.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00480.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00481.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00481.java index e8d8a05f71..f8bdb43c80 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00481.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00481.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00492.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00492.java index ea445362b9..f0dfdb9048 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00492.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00492.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00493.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00493.java index 19717d02b9..51aaac07eb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00493.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00493.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00494.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00494.java index ea4a948a87..0c9a3dfbb8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00494.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00494.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00495.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00495.java index 6b2017e81a..df54a7751c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00495.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00495.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00496.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00496.java index ac0cdc09ff..9ed20eb81b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00496.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00496.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00497.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00497.java index ecc7bd5358..738eb24dd3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00497.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00497.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00498.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00498.java index a199420146..44b1a09e00 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00498.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00498.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00499.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00499.java index eeb58f2280..d75c276851 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00499.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00499.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00500.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00500.java index 373acbcb3a..944cfd90f5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00500.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00500.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00508.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00508.java index 65b6c2e8b3..c34d928dc6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00508.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00508.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00509.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00509.java index 36a21af732..a068d2a8e0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00509.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00509.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00510.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00510.java index ac78fce3d3..e57e733d91 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00510.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00510.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00511.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00511.java index 274311ce20..84eb69cb1c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00511.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00511.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00512.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00512.java index fae7d7311f..179fc586aa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00512.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00512.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00513.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00513.java index d99330b075..88a2ae1832 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00513.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00513.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00514.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00514.java index 5338d53643..f55839d301 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00514.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00514.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00515.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00515.java index 72fda4caea..ca8ff38051 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00515.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00515.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00516.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00516.java index d2a5fce2d0..9f2e62b7f6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00516.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00516.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00517.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00517.java index f98ca5d098..6f8b26179d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00517.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00517.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00518.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00518.java index 1816e79a51..fe27f5d8a1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00518.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00518.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00519.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00519.java index d2224af505..699fa9ead2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00519.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00519.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00520.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00520.java index 8c69f465fe..bd3d832715 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00520.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00520.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00521.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00521.java index cbbfb25858..f703776ccb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00521.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00521.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -103,7 +103,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00522.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00522.java index 46d27813c1..855cc739c1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00522.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00522.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -102,7 +102,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00523.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00523.java index 23687f052c..4ec6b7f168 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00523.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00523.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -98,7 +98,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00524.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00524.java index 32ce618d7a..487b036b95 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00524.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00524.java @@ -112,7 +112,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00525.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00525.java index aa528cc80e..4875e73277 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00525.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00525.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -71,7 +71,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00526.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00526.java index cba974cae2..7531118f2a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00526.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00526.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00527.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00527.java index 1d1b2b993a..adea3ceb04 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00527.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00527.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00528.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00528.java index 4acc9851fd..b34975017c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00528.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00528.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -76,7 +76,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file", null, startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00529.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00529.java index fbacb5bff2..637770f4df 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00529.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00529.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -65,7 +65,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00531.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00531.java index 61f527578c..6a9ac50d52 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00531.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00531.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00532.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00532.java index 125f8811e1..61e7f4a541 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00532.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00532.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00533.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00533.java index 17028dff66..07790c1daf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00533.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00533.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -91,7 +91,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00534.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00534.java index a2d70681ba..6d54916230 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00534.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00534.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -100,7 +100,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00535.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00535.java index 27b1b04812..00c77089dd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00535.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00535.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00536.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00536.java index dc9ceb74f8..1c06dbf72c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00536.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00536.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00537.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00537.java index 43d915ec8a..626952f28d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00537.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00537.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00538.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00538.java index cf18de1af6..7f15df3395 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00538.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00538.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00539.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00539.java index cdd91750f0..bde7a84a78 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00539.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00539.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00540.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00540.java index 0bf60846df..e8a9d2f650 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00540.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00540.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00541.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00541.java index ece3b3c52b..04f466b58f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00541.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00541.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00542.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00542.java index f7fff721e4..5310bfea56 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00542.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00542.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00543.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00543.java index 9ba8122a23..fa4b4ac960 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00543.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00543.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00544.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00544.java index f9bf198307..e3cbc5de9e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00544.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00544.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00545.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00545.java index 44847c7cc4..f3568875f4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00545.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00545.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00546.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00546.java index e936bdcb09..fd5a14c720 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00546.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00546.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00547.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00547.java index 1d880609a9..96acb9310d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00547.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00547.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00548.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00548.java index 85131e5df2..ac13e9efeb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00548.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00548.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00549.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00549.java index 125f16c4ed..caa767e7b1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00549.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00549.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00550.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00550.java index 9419044448..63576a5339 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00550.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00550.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00551.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00551.java index 29b64122dc..47da6a7362 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00551.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00551.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00552.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00552.java index 39e91faf88..170027c8c8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00552.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00552.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00553.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00553.java index 57112b514a..5f3a2c7429 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00553.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00553.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00554.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00554.java index ff3ea83d86..7bea4a3563 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00554.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00554.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00555.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00555.java index 11ba28037a..6361b33c90 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00555.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00555.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00556.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00556.java index 22bebb9b22..11a5ee2e06 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00556.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00556.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00557.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00557.java index e3f22a3722..4fd5c3ff6b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00557.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00557.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00558.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00558.java index 7e5d21bfa9..f53c41b983 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00558.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00558.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00559.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00559.java index 7bf40d1747..718926babe 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00559.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00559.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00567.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00567.java index 629d412a76..e6dd480de1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00567.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00567.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00568.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00568.java index d26db2db7c..ce3f42301c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00568.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00568.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00569.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00569.java index 5ad12e02b4..d6d797900c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00569.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00569.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00570.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00570.java index a0e084d6af..e88fadb37b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00570.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00570.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00571.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00571.java index f7799de9bd..5ddf2b0d2b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00571.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00571.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00572.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00572.java index 6de1c6e818..6155deac8f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00572.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00572.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00573.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00573.java index 34ed3ef7aa..038ba677a7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00573.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00573.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00574.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00574.java index 8a40b63785..3fbbf1346c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00574.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00574.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00575.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00575.java index 7279d3108a..a8cdc939ec 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00575.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00575.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00576.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00576.java index 067cdba25b..28fdd00382 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00576.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00576.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00586.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00586.java index cdcf768c9c..93e7b09dec 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00586.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00586.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00587.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00587.java index 0a9cb6eb4f..3d13f4336d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00587.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00587.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00588.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00588.java index 701c557e92..689a30b619 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00588.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00588.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00589.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00589.java index 9495e2a9a8..6fd483df0d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00589.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00589.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00590.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00590.java index 4d6029f81f..59e34baa3d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00590.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00590.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00591.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00591.java index f90a7913a7..187372d83b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00591.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00591.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00592.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00592.java index 4718e0c65f..fd356b8098 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00592.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00592.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00593.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00593.java index 288d148727..518f770063 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00593.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00593.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00594.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00594.java index 8d032a1eac..62b4a34677 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00594.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00594.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00595.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00595.java index 266ccdcd10..1f639d3f7a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00595.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00595.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00596.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00596.java index 82eb976a06..b7f623fd94 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00596.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00596.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00597.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00597.java index 8a911cc128..10da780749 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00597.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00597.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -64,7 +64,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00598.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00598.java index dd317d2431..52765a0185 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00598.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00598.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -67,7 +67,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); + java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); response.getWriter().println( "Your results are: " ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00599.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00599.java index d77772ebc9..153f8e8814 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00599.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00599.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00600.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00600.java index 1fa211b2d8..8396f2cc5f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00600.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00600.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00601.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00601.java index 1e26204f18..1e448be682 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00601.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00601.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00602.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00602.java index 605ad86cc7..2ee9d8b810 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00602.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00602.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00603.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00603.java index 692421bec6..756a9f362d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00603.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00603.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00604.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00604.java index ddd0d5e5f1..819866307e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00604.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00604.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00605.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00605.java index 2c562349c3..37f30bcd33 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00605.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00605.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00606.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00606.java index 74892a3d5b..5891ef125a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00606.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00606.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00607.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00607.java index 9b89426235..1344c0be85 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00607.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00607.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00608.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00608.java index 51dc3feaa5..677f9e01c0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00608.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00608.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00609.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00609.java index 6232a02ae4..d83fc76c03 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00609.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00609.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00610.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00610.java index 661cbf13c0..0af23cfeb4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00610.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00610.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -98,7 +98,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00611.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00611.java index b342ad25f8..d8dae31223 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00611.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00611.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00612.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00612.java index 1cf6b5508a..410de17de2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00612.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00612.java @@ -93,7 +93,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00613.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00613.java index 96040fd95c..d7e5997a6b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00613.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00613.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -77,7 +77,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00614.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00614.java index c47caa8933..424fe1c784 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00614.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00614.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00615.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00615.java index f0aa457d58..57101677a0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00615.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00615.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00616.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00616.java index 7ae8906f2f..0b6e445b36 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00616.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00616.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -76,7 +76,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00617.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00617.java index cf97d4473f..a2ad1fb866 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00617.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00617.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -77,7 +77,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00618.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00618.java index 6e6163158f..239bed6352 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00618.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00618.java @@ -92,7 +92,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00619.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00619.java index c00cff6013..eb2be7fedd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00619.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00619.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -58,7 +58,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00620.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00620.java index a7637b9612..63e3ec6808 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00620.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00620.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -58,7 +58,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00621.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00621.java index 085af13b07..674bd209d5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00621.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00621.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -62,7 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = thing.doSomething(g28566); // reflection - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00622.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00622.java index 9cd971aa07..e577094861 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00622.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00622.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -67,7 +67,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00623.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00623.java index 58d5fd763e..053e0fb528 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00623.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00623.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00624.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00624.java index cb5c8b51a5..90f6d1fb95 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00624.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00624.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -53,7 +53,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName),false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00625.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00625.java index a89f73eba0..6d56c32346 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00625.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00625.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -58,7 +58,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName),false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00626.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00626.java index 6d355478db..ce720a04be 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00626.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00626.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -62,7 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00627.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00627.java index c9414a8175..e3fdc9685d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00627.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00627.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -56,7 +56,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00628.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00628.java index 10c4118cb8..f919be63f4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00628.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00628.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00629.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00629.java index 7b3b1144d5..7736d52160 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00629.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00629.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -54,7 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr else bar = "This should never happen"; - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00631.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00631.java index e2c08b31e6..927b4b10c0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00631.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00631.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -77,7 +77,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00632.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00632.java index 84d2059332..09d11619dd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00632.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00632.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -77,7 +77,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00633.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00633.java index 6a47259254..00df2e4999 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00633.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00633.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -95,7 +95,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00634.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00634.java index e1f14f071e..3a22ee83cb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00634.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00634.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -78,7 +78,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00635.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00635.java index 99e6d46a57..d966646978 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00635.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00635.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00636.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00636.java index 3f78fd7224..9c5a6056e0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00636.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00636.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00637.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00637.java index ba4751557a..c2e6e6ae43 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00637.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00637.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -74,7 +74,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00638.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00638.java index c1acfff1f9..52cc27b5e6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00638.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00638.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -71,7 +71,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00639.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00639.java index c03a9f51e0..137fb96b32 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00639.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00639.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -75,7 +75,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00640.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00640.java index a8779bb71b..1372370a1c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00640.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00640.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -77,7 +77,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00641.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00641.java index 3b17753207..714455354b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00641.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00641.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -77,7 +77,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00642.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00642.java index ccd1566fb0..164f1b7024 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00642.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00642.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00643.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00643.java index 1d8b6a83d3..d565b93611 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00643.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00643.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00644.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00644.java index dae9c740f8..f8d6a25e3d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00644.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00644.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00645.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00645.java index f0b67c9ab3..94743a971c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00645.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00645.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00646.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00646.java index a8c14e235d..6d98dcd4d0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00646.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00646.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00647.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00647.java index 1095e5d86a..23fc9c4425 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00647.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00647.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00648.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00648.java index e2677d67b2..2e57a178a0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00648.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00648.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00649.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00649.java index 5a092bd668..acf8dc7f60 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00649.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00649.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00650.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00650.java index fa79d20315..25ec79b065 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00650.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00650.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00651.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00651.java index f91ac8f5c5..688f0ed34d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00651.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00651.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00655.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00655.java index ce943d5e9c..92fb36f00b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00655.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00655.java @@ -68,9 +68,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00656.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00656.java index 89e00e5e71..3f821ab9be 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00656.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00656.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00657.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00657.java index 88c5fc38aa..e6f6be3c37 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00657.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00657.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00658.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00658.java index a3504291a6..8e9a8fa7d4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00658.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00658.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00659.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00659.java index 2900e69e8c..8958fef71a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00659.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00659.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00668.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00668.java index 856e82a0be..efa77605ec 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00668.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00668.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00669.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00669.java index a8cdc15cee..ac886a6932 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00669.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00669.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00670.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00670.java index 0060152ba3..824b2e25ab 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00670.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00670.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00671.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00671.java index da6024afdd..13c38acb10 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00671.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00671.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00672.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00672.java index ddc8227816..8835eb6d53 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00672.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00672.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00673.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00673.java index 79456ed5f0..c8efa62a34 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00673.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00673.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00674.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00674.java index 1c48e71984..f16eabb7b0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00674.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00674.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00675.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00675.java index 567204a9fe..b464d81029 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00675.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00675.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00676.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00676.java index 46d7c81b87..1c51205350 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00676.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00676.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00677.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00677.java index 3cce8c1030..04930a2b36 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00677.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00677.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00679.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00679.java index 5ba4cfe7c3..8cfe86d2be 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00679.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00679.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -51,7 +51,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); + java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); response.getWriter().println( "Your results are: " ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00680.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00680.java index 50563cded9..2d93f1a270 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00680.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00680.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00681.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00681.java index 781324aee6..4698afdb1f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00681.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00681.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00682.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00682.java index f6fa6ca5ff..680efd5046 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00682.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00682.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00683.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00683.java index 4c9c043fe7..b068de37a3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00683.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00683.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00684.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00684.java index b67f805544..e07789253f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00684.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00684.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00685.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00685.java index 34dbe86268..7506aec71b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00685.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00685.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00686.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00686.java index f60483af38..fcc281ccec 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00686.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00686.java @@ -93,7 +93,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00687.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00687.java index 837d49877a..bbc42ea418 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00687.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00687.java @@ -95,7 +95,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00688.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00688.java index e950d0dfbe..0c0a3fa64b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00688.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00688.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -89,7 +89,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00689.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00689.java index 6c43a93c41..0a564cdef3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00689.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00689.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00690.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00690.java index 18ca644404..5aa7fe7c8b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00690.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00690.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -92,7 +92,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00691.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00691.java index e086c23389..4181d547fc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00691.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00691.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -96,7 +96,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00692.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00692.java index 70bfe84455..1ff9d34910 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00692.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00692.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00693.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00693.java index 858a170fd9..249d58a7e2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00693.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00693.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -89,7 +89,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00696.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00696.java index 7a4e24967a..8120e29336 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00696.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00696.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -69,7 +69,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00697.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00697.java index 3093c86752..a44d71b833 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00697.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00697.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00698.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00698.java index 1885ff318b..c081da72ce 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00698.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00698.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00699.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00699.java index 08e5059d81..d85d48a17a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00699.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00699.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00700.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00700.java index 72d8c1e523..f677b0a411 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00700.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00700.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -58,7 +58,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00703.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00703.java index b082d9d672..267cfab124 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00703.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00703.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00704.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00704.java index 3d699d266b..8af63b0e9b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00704.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00704.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00705.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00705.java index ab25a9ff09..70fc8555ba 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00705.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00705.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -76,7 +76,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00706.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00706.java index 5ad4e6c06b..7073ca5aa9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00706.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00706.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00707.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00707.java index d830405271..7ff42c8ca2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00707.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00707.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -76,7 +76,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00708.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00708.java index c527a71d78..5637d1fa70 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00708.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00708.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -71,7 +71,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00709.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00709.java index b066a23d0c..f9d29d74d5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00709.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00709.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00710.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00710.java index 22cea1e85a..0d6a240de6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00710.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00710.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00711.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00711.java index 2f655e1bbf..fdaed68555 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00711.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00711.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00712.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00712.java index 26052aedbf..573793e6c1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00712.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00712.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00713.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00713.java index aae61d7c30..5484a6440a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00713.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00713.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00714.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00714.java index ef04d2cf8a..136d5ef598 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00714.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00714.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00715.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00715.java index cc50e4822b..01cf0a2380 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00715.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00715.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00716.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00716.java index c64a859665..69bcd3aee2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00716.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00716.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00717.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00717.java index d8daba9757..f02b84a43d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00717.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00717.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00718.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00718.java index b6ef8544e1..4c6c1f1402 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00718.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00718.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00719.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00719.java index 44215096ef..a3b03e5fea 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00719.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00719.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00720.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00720.java index f3f69743d4..f4a67d89c4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00720.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00720.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00721.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00721.java index 734a5dc8fa..804a1a7eed 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00721.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00721.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00722.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00722.java index 7c7cc19ddd..ae596c1e86 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00722.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00722.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00723.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00723.java index 796be4fb7c..3d6e623249 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00723.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00723.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00724.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00724.java index 0349611740..44709bc21f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00724.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00724.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00725.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00725.java index 8b0066cd06..321926e344 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00725.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00725.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00726.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00726.java index 29c596e737..d38fd24832 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00726.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00726.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00727.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00727.java index c27a69c286..dcd71cc254 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00727.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00727.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00728.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00728.java index 9aacd65a87..387b8aaa96 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00728.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00728.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00729.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00729.java index b9d0d81961..e30e5f8d8d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00729.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00729.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00730.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00730.java index 045a147347..35280e07ae 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00730.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00730.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00731.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00731.java index 3739b5c9a6..e753c52b09 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00731.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00731.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00732.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00732.java index c889c5efae..96bf0c2a5d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00732.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00732.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00737.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00737.java index 53e6d991fa..bef19de0f9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00737.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00737.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00738.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00738.java index 575eb7bc70..df64b0ab4b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00738.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00738.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00739.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00739.java index d8c0fc71bb..1a3b47d795 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00739.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00739.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00740.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00740.java index 6293c79d3b..267c412ee9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00740.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00740.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00741.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00741.java index b248a5508a..857b74074b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00741.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00741.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00742.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00742.java index e88583c00f..00811e6dcd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00742.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00742.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00743.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00743.java index 1ac3917f21..209c6da8d3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00743.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00743.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00754.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00754.java index 6c9521852f..2b687b12aa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00754.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00754.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00755.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00755.java index 0f339b9f64..c14c7deeb3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00755.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00755.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00756.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00756.java index 8168ca65f5..2022371077 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00756.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00756.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00757.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00757.java index 25412cd7f8..d837db9581 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00757.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00757.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00758.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00758.java index 717a6391c1..7c5f5fd0f7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00758.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00758.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00759.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00759.java index 0c5f50c4ef..b7526fc4a6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00759.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00759.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00760.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00760.java index 5dfb49e5d2..e88541fbd7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00760.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00760.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00761.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00761.java index b73948afec..22ffdcd017 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00761.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00761.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00762.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00762.java index d052a15261..cc5f4faa04 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00762.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00762.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00763.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00763.java index 75c090426e..887f4b3e04 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00763.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00763.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00768.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00768.java index 2e0aee544f..154ae65769 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00768.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00768.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -53,7 +53,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); + java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); response.getWriter().println( "Your results are: " ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00769.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00769.java index 0f75cd5c61..4eeb257901 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00769.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00769.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00770.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00770.java index 7dd4bd9f76..0b6afff74d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00770.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00770.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00771.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00771.java index 9f296e8ab3..d7b9001bad 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00771.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00771.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00772.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00772.java index 3e98973840..a2a7221401 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00772.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00772.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00773.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00773.java index 4ef6d01f91..509a9e1ca0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00773.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00773.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00774.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00774.java index 84cb720652..d7fdab633e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00774.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00774.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00775.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00775.java index d99c4a4e0a..4d21ad166b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00775.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00775.java @@ -110,7 +110,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00776.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00776.java index 8b4ee1e4c5..fa60121d95 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00776.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00776.java @@ -104,7 +104,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00777.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00777.java index 859c95f440..71dc6dee8d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00777.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00777.java @@ -106,7 +106,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00778.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00778.java index 559731e938..0ae1150c2f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00778.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00778.java @@ -106,7 +106,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00779.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00779.java index 3b62b0e31d..32f706518f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00779.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00779.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -96,7 +96,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00780.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00780.java index d4fb85fed1..204270ded9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00780.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00780.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -103,7 +103,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00781.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00781.java index 659b8496fc..1c2868c932 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00781.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00781.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -97,7 +97,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00782.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00782.java index 73e02fed25..96dccbde4b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00782.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00782.java @@ -108,7 +108,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00783.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00783.java index 2053768fbb..a0d8d03025 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00783.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00783.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00784.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00784.java index 00bc75c478..b9a44d59c9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00784.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00784.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -84,7 +84,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00785.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00785.java index 438f61141e..53aeeb848f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00785.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00785.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00786.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00786.java index 980077f55a..2026d67cd5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00786.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00786.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -71,7 +71,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00787.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00787.java index 498274a2dc..d291d56621 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00787.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00787.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -69,7 +69,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00788.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00788.java index 90f0a70c85..512f51a327 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00788.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00788.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00789.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00789.java index 9e1c0e36fe..cbdfd5a999 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00789.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00789.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00790.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00790.java index 04af666bd0..8aa4f20b2d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00790.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00790.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00791.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00791.java index 1961c84779..4d970d5419 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00791.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00791.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00792.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00792.java index 92a9dd4402..0ff6f2fd4b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00792.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00792.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00793.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00793.java index 8d8c4906fc..2c9f6d91f2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00793.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00793.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00794.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00794.java index 44d0e5d82b..aa60b79470 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00794.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00794.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -84,7 +84,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00795.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00795.java index 5156defaca..67d237d27f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00795.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00795.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -84,7 +84,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00796.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00796.java index 5f0a3c0665..aa2781dd11 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00796.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00796.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -89,7 +89,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00797.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00797.java index 97afcc826f..072a9d1c18 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00797.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00797.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00798.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00798.java index df40c7213d..342ff60e4a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00798.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00798.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00799.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00799.java index 1a75a3d5b2..1967387676 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00799.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00799.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00800.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00800.java index 0c517d6056..9baf27e060 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00800.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00800.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00801.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00801.java index 267d377918..409f9e2443 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00801.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00801.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00802.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00802.java index 7f68789732..f1b21ef7a1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00802.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00802.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00803.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00803.java index 4edef6ddb0..e562614a2b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00803.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00803.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00804.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00804.java index 74b9e0760a..52014ac27e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00804.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00804.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00805.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00805.java index 94723c9c5f..df256c479d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00805.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00805.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00806.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00806.java index 706de0ed24..dfaeede567 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00806.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00806.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00807.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00807.java index 90f3db233f..1cc98b69a2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00807.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00807.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00808.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00808.java index dc8d1b3f2d..c0608f3e3e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00808.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00808.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00809.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00809.java index a1067a36a7..0697c598ac 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00809.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00809.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00810.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00810.java index e9386eff26..77b1e484de 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00810.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00810.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00811.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00811.java index 1253d322bf..9fcd333bbb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00811.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00811.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00812.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00812.java index 30cd5ad016..27217a8edf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00812.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00812.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00813.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00813.java index b81c93a378..b058b33703 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00813.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00813.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00814.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00814.java index dd1e33d780..f823ff0ce6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00814.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00814.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00815.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00815.java index 19edaa9883..c022d4c967 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00815.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00815.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00816.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00816.java index 1ae21cb5f0..6dceedcefe 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00816.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00816.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00822.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00822.java index 85d426aa79..5fa30e4491 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00822.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00822.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00823.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00823.java index 2b007da3d7..6a114b91a0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00823.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00823.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00824.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00824.java index 877aaf7ac6..e63d7d7fd4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00824.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00824.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00825.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00825.java index a8497602b9..ba697f97c6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00825.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00825.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00826.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00826.java index e57dd82bf4..496a267c3d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00826.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00826.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00827.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00827.java index 608ef49d80..629619d126 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00827.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00827.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00833.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00833.java index 7336f3c414..dd0c11f5ca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00833.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00833.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00834.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00834.java index 214e008b99..b463503f1d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00834.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00834.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00835.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00835.java index 83132dba85..37daf3cfdc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00835.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00835.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00836.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00836.java index b4814498d6..7477fc96fc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00836.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00836.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00837.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00837.java index 91fdf09a39..c5b81054b1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00837.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00837.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00838.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00838.java index 7468d88101..496755ef57 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00838.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00838.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00839.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00839.java index 245f38c3d9..fd58ea8212 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00839.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00839.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00840.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00840.java index 14f199f176..9cbf5de5e8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00840.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00840.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00841.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00841.java index ac8462c741..3db12c1486 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00841.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00841.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00844.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00844.java index 825b298e3b..9a5818bd62 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00844.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00844.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00845.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00845.java index 1a57fec1e0..5c1a7f2669 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00845.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00845.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00846.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00846.java index 4d93763366..6b35704f81 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00846.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00846.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00847.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00847.java index 0bffc14e98..eae221a4c5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00847.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00847.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00848.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00848.java index f800ec0833..f592bee19e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00848.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00848.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00849.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00849.java index 3cd5b31268..90b610333d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00849.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00849.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00850.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00850.java index 239515861c..99e64e3256 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00850.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00850.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00851.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00851.java index 79ae00a5d4..765c9d91c1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00851.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00851.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00852.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00852.java index ec022f5b1d..4f61e4c0d8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00852.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00852.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00853.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00853.java index a47c64053f..6b57ebb206 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00853.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00853.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -84,7 +84,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00854.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00854.java index e406e72803..80813fd519 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00854.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00854.java @@ -92,7 +92,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00855.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00855.java index 4acf6a43ff..afdf89c8d4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00855.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00855.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -92,7 +92,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00856.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00856.java index 2285fcf0c8..54242d1b6f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00856.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00856.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -96,7 +96,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00857.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00857.java index 798b0afcf9..6eeb2130e7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00857.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00857.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -102,7 +102,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00858.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00858.java index a44742cfbc..2664364703 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00858.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00858.java @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00859.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00859.java index 04ceb1c5c1..0f6dec8a0f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00859.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00859.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -80,7 +80,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00862.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00862.java index ab5439afe5..338183713a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00862.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00862.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -53,7 +53,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00863.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00863.java index 3d1b5bf30e..50f5e1e9d3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00863.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00863.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00864.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00864.java index b1c973c70c..e2a5fc10c0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00864.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00864.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00865.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00865.java index f06528f544..8b69d13c58 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00865.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00865.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -67,7 +67,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file", null, startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00866.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00866.java index 98869b60f6..1bb9acd417 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00866.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00866.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00867.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00867.java index 545c72eeb9..86d60938ea 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00867.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00867.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -57,7 +57,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00868.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00868.java index 6b83bcdf37..77fb56ffe3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00868.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00868.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00869.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00869.java index 936053639e..af5b357b39 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00869.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00869.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00870.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00870.java index 6423d39459..d063556bbc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00870.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00870.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -67,7 +67,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00871.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00871.java index fa1e482c90..601f1749e4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00871.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00871.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -72,7 +72,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00872.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00872.java index 537e3bfd4a..e8dfd759f6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00872.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00872.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00873.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00873.java index 7dea15f8f8..1c2c85677f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00873.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00873.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00874.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00874.java index 0171c710c7..f60820a937 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00874.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00874.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -67,7 +67,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00875.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00875.java index ff8323dc07..ff9b2efc1d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00875.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00875.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -80,7 +80,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00876.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00876.java index 2aa34736c1..d8ac1639f1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00876.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00876.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -76,7 +76,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00877.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00877.java index f0f237890c..0288db3bc5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00877.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00877.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -83,7 +83,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00878.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00878.java index a7847f6449..8c98102b26 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00878.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00878.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00879.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00879.java index bc39f9165d..5c25e7f969 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00879.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00879.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00880.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00880.java index 2624e98562..b14c5ea0d3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00880.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00880.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00881.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00881.java index 7a01ade112..736194cb34 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00881.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00881.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00882.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00882.java index d6f7be122e..a7cf85fa3f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00882.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00882.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00883.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00883.java index 53f6ad41fc..f47f5d9e69 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00883.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00883.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00884.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00884.java index 76783a7be6..3ea9844866 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00884.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00884.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00885.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00885.java index 235d5bfbeb..3ee4d228b5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00885.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00885.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00886.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00886.java index 5ed101294f..2617a23649 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00886.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00886.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00887.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00887.java index f9ad9f14ac..9ff2618da9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00887.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00887.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00888.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00888.java index 51240574f1..d74a4aad97 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00888.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00888.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00889.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00889.java index 616b2d3103..5ae5bbc7f5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00889.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00889.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00890.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00890.java index 79f7b4dcbb..5c52489e1c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00890.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00890.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00891.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00891.java index 416418b423..e06c082029 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00891.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00891.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00892.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00892.java index 8e8cccda5e..a9c4aa927c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00892.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00892.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00893.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00893.java index 67df416969..a9fc519bd9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00893.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00893.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00894.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00894.java index c16051be28..b113f2a5f8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00894.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00894.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00895.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00895.java index 02a68d66ea..5c3d1ac22b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00895.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00895.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00896.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00896.java index 8cdd4e83fa..c5d0cc3b47 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00896.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00896.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00897.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00897.java index 70c7be29b4..e10411eb79 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00897.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00897.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00904.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00904.java index c22ce59b82..f21e49ecca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00904.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00904.java @@ -67,9 +67,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00905.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00905.java index 0c6cea2f5d..68203f10b1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00905.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00905.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00906.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00906.java index a65d751f55..b098a08429 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00906.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00906.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00907.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00907.java index dead9762e2..ebde58889f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00907.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00907.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00908.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00908.java index ae7c01549b..354b45d6d3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00908.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00908.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00909.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00909.java index 758bab030b..998b9d2dee 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00909.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00909.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00910.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00910.java index d6f7e50107..1f54cf46bc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00910.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00910.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00922.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00922.java index ac7f21ba50..f0eb1ea76c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00922.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00922.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00923.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00923.java index 88c1daced8..0823f274ad 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00923.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00923.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00924.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00924.java index f6e5be55fc..72309c3e77 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00924.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00924.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00925.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00925.java index 1b52e7675a..ecd0ca9e90 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00925.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00925.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00926.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00926.java index 6dbec58c70..3b906e5df7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00926.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00926.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00927.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00927.java index 72906cca9d..1defe49980 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00927.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00927.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00928.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00928.java index 8f34b86435..17cb123036 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00928.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00928.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00929.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00929.java index 20e6bb0d26..187e6ce5b2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00929.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00929.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00930.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00930.java index bc3d103872..c7e273d674 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00930.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00930.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00931.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00931.java index 884cb202eb..44278c1d83 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00931.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00931.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00932.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00932.java index 546050af9d..896f0fe811 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00932.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00932.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00933.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00933.java index e7c3b34848..c19b4908d7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00933.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00933.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -50,7 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00935.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00935.java index 58abfd1a52..906e7020c9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00935.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00935.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); + java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); response.getWriter().println( "Your results are: " ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00936.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00936.java index 5fe4fc5b43..0d12de2915 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00936.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00936.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00937.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00937.java index 2a5b0793bb..a247156f3b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00937.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00937.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00938.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00938.java index bee084d668..ec55bd1c60 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00938.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00938.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00939.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00939.java index 21f40ba851..2fbd579076 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00939.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00939.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00940.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00940.java index c48609d710..c0d24787aa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00940.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00940.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00941.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00941.java index a8007dc1e0..291bdfe6ab 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00941.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00941.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00942.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00942.java index 40f2bcfb0a..b984d3d8f5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00942.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00942.java @@ -101,7 +101,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00943.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00943.java index 7ef80e7194..7c92a418a0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00943.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00943.java @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00944.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00944.java index c142b3b5ef..e5ae7a651e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00944.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00944.java @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00945.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00945.java index 96dcd1a2c7..ccd6f9138f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00945.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00945.java @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00946.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00946.java index 6f0f4a1dbc..edea34c3b9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00946.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00946.java @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00949.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00949.java index 54849bfd54..5555a2251e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00949.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00949.java @@ -62,7 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00951.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00951.java index 86b0ff9b1a..9dbcc5cd63 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00951.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00951.java @@ -72,7 +72,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file:" + startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', '/').replace(' ', '_') + bar); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', '/').replace(' ', '_') + bar); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00952.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00952.java index 8a6236f250..8d6766bfee 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00952.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00952.java @@ -72,7 +72,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file", null, startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00953.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00953.java index 91fd86bd3e..be2d097c76 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00953.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00953.java @@ -62,38 +62,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00954.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00954.java index 92261b2a58..ee928c55e9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00954.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00954.java @@ -62,38 +62,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00955.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00955.java index 3286ff1445..10e6267701 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00955.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00955.java @@ -62,38 +62,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00956.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00956.java index 22a2856ca6..d97f347a0c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00956.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00956.java @@ -62,38 +62,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00957.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00957.java index 39e0d248ba..0a30867587 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00957.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00957.java @@ -62,7 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00958.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00958.java index 4030dae0a5..bf47ce9271 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00958.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00958.java @@ -62,7 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00961.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00961.java index 232205ed9c..263d85cb9a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00961.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00961.java @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00962.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00962.java index 204b6af4c2..858f3e6988 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00962.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00962.java @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00963.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00963.java index 8bae60739a..ed8c4b6458 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00963.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00963.java @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00964.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00964.java index 4f89906d84..a9c862b4c2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00964.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00964.java @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00965.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00965.java index 8d594c4d57..bd9e20f5fe 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00965.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00965.java @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00966.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00966.java index 45f8c2f6ac..bfaa23a3ef 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00966.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00966.java @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00967.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00967.java index 833532c7b8..10da6804e9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00967.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00967.java @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01007.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01007.java index 30717ba4ec..d51bea66c5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01007.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01007.java @@ -64,7 +64,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); + java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); response.getWriter().println( "Your results are: " ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01015.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01015.java index 0da98b4e91..c575b3b793 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01015.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01015.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01016.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01016.java index 5488d7234d..401a7d84d3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01016.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01016.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01017.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01017.java index ea41ffdad3..6705ce8ae8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01017.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01017.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01018.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01018.java index 76844a66b4..6c4d959c5c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01018.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01018.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01019.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01019.java index aad4ca32c4..5e10b2ce0a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01019.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01019.java @@ -78,7 +78,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01020.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01020.java index 81d5f653f8..6988a77911 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01020.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01020.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -78,7 +78,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01021.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01021.java index 9aa7e1fd81..2c8cc1047e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01021.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01021.java @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01022.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01022.java index 8d001c7a53..6f3540e75b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01022.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01022.java @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01025.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01025.java index ecf34827dd..3080dd4f0b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01025.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01025.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -50,7 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01026.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01026.java index a5d4943a93..35b831b80d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01026.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01026.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01027.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01027.java index b19b49f406..52fab681bd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01027.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01027.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01028.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01028.java index 87521b3cfa..0fb1e30d7e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01028.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01028.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -60,7 +60,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file:" + startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', '/').replace(' ', '_') + bar); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', '/').replace(' ', '_') + bar); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01029.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01029.java index 6950998e11..743804112f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01029.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01029.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -60,7 +60,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file", null, startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01030.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01030.java index 778ae046b4..b7f9a21e2b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01030.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01030.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -60,7 +60,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file", null, startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01031.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01031.java index cf938523ca..04db908d06 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01031.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01031.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -54,7 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01032.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01032.java index cf6f582d97..f3ad95924f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01032.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01032.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -54,7 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName),false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01033.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01033.java index f77dd8e12d..e2c7cd9f65 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01033.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01033.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -54,7 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01034.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01034.java index 000107e9c4..85f08d2bb9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01034.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01034.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -54,7 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01035.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01035.java index 9824ed5158..424b312039 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01035.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01035.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -54,7 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01036.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01036.java index 6124767cd3..d286271bef 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01036.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01036.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -50,7 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01037.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01037.java index 931c6d4a71..5e1e5ec571 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01037.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01037.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01038.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01038.java index d288390fe2..2cfce567df 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01038.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01038.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01039.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01039.java index 30eee48a4c..595d08af98 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01039.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01039.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01040.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01040.java index 871c6209d4..4aeddaa9c2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01040.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01040.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01041.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01041.java index 8ab8abb16f..2adcd000d3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01041.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01041.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01042.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01042.java index 2b53b88ecf..6445de396e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01042.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01042.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01043.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01043.java index 9b47485ccf..cafbf0b80f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01043.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01043.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01044.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01044.java index 6e2fce998b..cd79b44cd6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01044.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01044.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01045.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01045.java index 22fa5f6a24..d47eb8b5a6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01045.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01045.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01046.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01046.java index 5fedcd5c86..fb0a602d27 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01046.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01046.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01047.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01047.java index ce3d7ff114..11267cc9f7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01047.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01047.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01048.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01048.java index 00de2975e7..1a334249cc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01048.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01048.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01049.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01049.java index 9d32c6de88..8fee79ead4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01049.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01049.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01050.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01050.java index e89097445b..87b5d4c18e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01050.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01050.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01051.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01051.java index 94f17b9fe1..6617eeb1c4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01051.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01051.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01052.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01052.java index 543570dadd..392f64b9a2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01052.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01052.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01053.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01053.java index c20b81cdf0..1774a0f208 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01053.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01053.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01054.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01054.java index b5c734d44b..ca95d4708c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01054.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01054.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01055.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01055.java index 71fdc6b096..17648e1ea6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01055.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01055.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01056.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01056.java index 38415b169c..023cd54f6a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01056.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01056.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01057.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01057.java index 8c6727f69f..a98b22a85e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01057.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01057.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01062.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01062.java index 6e88485f43..769b561844 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01062.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01062.java @@ -66,9 +66,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01063.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01063.java index 3ca2b046e5..15f0b26d30 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01063.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01063.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01064.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01064.java index 299d40434d..2393782570 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01064.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01064.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01065.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01065.java index ae55ddf4da..7b9b7c695b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01065.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01065.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01066.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01066.java index cdfb797440..9028bc8ea0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01066.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01066.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01067.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01067.java index ed87b590cc..05743ba418 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01067.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01067.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01068.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01068.java index 63c727de37..697b42c809 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01068.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01068.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01080.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01080.java index 88dd235889..89d29bd8b8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01080.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01080.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01081.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01081.java index e922806298..63fb7c350d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01081.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01081.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01082.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01082.java index 6c83d72b01..33a57ef336 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01082.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01082.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01083.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01083.java index 2aac1d20c3..ef319d79fb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01083.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01083.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01084.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01084.java index 532e7e1380..48c689a3b7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01084.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01084.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01085.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01085.java index e6f9e6d985..1982858f7e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01085.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01085.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01086.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01086.java index 8ee6e9705b..1e0b48e6ab 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01086.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01086.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01089.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01089.java index bf8076d599..9127dcc4c4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01089.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01089.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01090.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01090.java index 5c7a452b19..558b806df5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01090.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01090.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01091.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01091.java index a31166c0e7..a1061dec91 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01091.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01091.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01092.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01092.java index 675f00a20c..8f5e48a220 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01092.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01092.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01093.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01093.java index bb11e02eb1..43fc5798b9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01093.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01093.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01094.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01094.java index aa71b51cf5..7c147e320f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01094.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01094.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01095.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01095.java index 47bcd47144..734d68af3d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01095.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01095.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01096.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01096.java index 415ff755c1..2e8ff14c39 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01096.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01096.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01097.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01097.java index 0cc096cf6b..4c1619109a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01097.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01097.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01098.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01098.java index 2f3aee7824..44d1eed521 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01098.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01098.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01099.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01099.java index 76c6df4a5b..343eab17e7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01099.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01099.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -95,7 +95,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01100.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01100.java index 74be4dd499..569f9e9d5c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01100.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01100.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01101.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01101.java index f82b50703c..ccbf168c78 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01101.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01101.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01102.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01102.java index 4de8ffe544..20b99b9f22 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01102.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01102.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -95,7 +95,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01103.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01103.java index fcfc0e87d9..631f6278cc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01103.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01103.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -95,7 +95,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01104.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01104.java index fb3005f5f7..857426fb62 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01104.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01104.java @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01105.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01105.java index de954f0a9f..6b90251d61 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01105.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01105.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01106.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01106.java index caa7aa8bc7..d516407740 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01106.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01106.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01107.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01107.java index 3539945d16..2d65efc7ed 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01107.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01107.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01108.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01108.java index 69606202e1..c4cece9b8d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01108.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01108.java @@ -97,7 +97,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01109.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01109.java index 668daeb0d8..271ce75259 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01109.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01109.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01110.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01110.java index 53e709c62e..d5128899d5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01110.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01110.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -69,7 +69,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file:" + startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', '/').replace(' ', '_') + bar); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', '/').replace(' ', '_') + bar); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01111.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01111.java index 1c55b8ac30..d51c1ba128 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01111.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01111.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01112.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01112.java index 1d0f98ba20..96d11c1b71 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01112.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01112.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01113.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01113.java index 5cc358082c..c5dd95733a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01113.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01113.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName),false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01114.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01114.java index 11e7a3ce6c..0829627fa4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01114.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01114.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName),false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01115.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01115.java index 49a29b251b..2decb77f1c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01115.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01115.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01116.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01116.java index 165563f49b..d57e39a90a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01116.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01116.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -59,38 +59,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01117.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01117.java index ea2a6d90a7..9dafae3a02 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01117.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01117.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -59,38 +59,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01118.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01118.java index 82c0a0bc41..9a1e518b02 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01118.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01118.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -59,7 +59,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01120.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01120.java index 624fee8f6d..7d08e30185 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01120.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01120.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01121.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01121.java index 072f211f57..becd10f481 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01121.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01121.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01122.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01122.java index 75583cae74..cd92735dbd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01122.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01122.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01123.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01123.java index aa7f69b74c..29d3745eb1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01123.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01123.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01124.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01124.java index 20a342a811..2d364d0c37 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01124.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01124.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01125.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01125.java index afcba96546..c813df1469 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01125.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01125.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01126.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01126.java index 8ead8182e5..dbb3d373b6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01126.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01126.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01142.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01142.java index 20dde02076..2605421685 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01142.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01142.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01143.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01143.java index 3449f40f59..0305e9beca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01143.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01143.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01144.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01144.java index 196a056277..d7526571f8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01144.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01144.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01145.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01145.java index 8331a9be17..373549f16a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01145.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01145.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01146.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01146.java index ed7c83dcbf..cdf4b9bd1c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01146.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01146.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01147.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01147.java index 30a1855415..536afa0f55 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01147.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01147.java @@ -91,7 +91,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01148.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01148.java index ca5f94136d..87f9297772 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01148.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01148.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01149.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01149.java index 4cee91dc08..485880315d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01149.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01149.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01150.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01150.java index ec7d3af0bb..547562432e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01150.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01150.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01151.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01151.java index 32e8f9435f..1629da8e98 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01151.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01151.java @@ -80,7 +80,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01152.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01152.java index 807dbc612e..cf976d124f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01152.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01152.java @@ -80,7 +80,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01153.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01153.java index 6e99f56a01..3271bff238 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01153.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01153.java @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01155.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01155.java index 77f7679077..b1688988a1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01155.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01155.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01156.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01156.java index f3cfc70e1e..8ad4c7e13b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01156.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01156.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -62,7 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file:" + startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', '/').replace(' ', '_') + bar); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', '/').replace(' ', '_') + bar); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01157.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01157.java index 588a331757..8954750a70 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01157.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01157.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -62,7 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file:" + startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', '/').replace(' ', '_') + bar); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', '/').replace(' ', '_') + bar); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01158.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01158.java index cb4f327e9c..6eaba7e9ad 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01158.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01158.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -56,7 +56,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01159.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01159.java index ca75431d30..1ed89ebd0a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01159.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01159.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -56,7 +56,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01160.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01160.java index 30d148d02f..5c733c25ca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01160.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01160.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -56,7 +56,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName),false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01161.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01161.java index fa423be93b..99f8318416 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01161.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01161.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -56,7 +56,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01164.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01164.java index 68a7f4c874..555acec4f0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01164.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01164.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -80,7 +80,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01165.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01165.java index 7983bc11db..817ff93934 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01165.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01165.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -72,7 +72,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01166.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01166.java index 832d908a93..8312f7ba39 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01166.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01166.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -72,7 +72,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01167.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01167.java index e001a8b0d9..b40b0619c8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01167.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01167.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -72,7 +72,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01168.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01168.java index e76c7b37fa..1c964d8722 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01168.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01168.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -75,7 +75,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01169.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01169.java index 97f56f8505..7e0d39c838 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01169.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01169.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -75,7 +75,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01170.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01170.java index aed1d97798..cb095a52a6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01170.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01170.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -75,7 +75,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01171.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01171.java index eb8a5ab1cc..2ec67e115c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01171.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01171.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01172.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01172.java index 2a0b7e996c..4d507e9d67 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01172.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01172.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01173.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01173.java index 477da05ccf..301e5f96d4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01173.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01173.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01174.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01174.java index a39cb22a14..c92f6790c8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01174.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01174.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01175.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01175.java index 002de68b04..725ff06613 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01175.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01175.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01176.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01176.java index e44c4e5fac..7d7b30e945 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01176.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01176.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01177.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01177.java index 5766ec3815..8be50f5791 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01177.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01177.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01178.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01178.java index 7488f615c5..5d06ce4fbd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01178.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01178.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01179.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01179.java index bd321710f9..cbff94eeb8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01179.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01179.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01180.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01180.java index b9e89e1d1d..b2a5694fdc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01180.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01180.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01181.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01181.java index 408a74cf19..4c5104555f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01181.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01181.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01182.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01182.java index 381e2c9111..a1388545f0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01182.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01182.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01188.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01188.java index 33d2a040b2..8c85aa9627 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01188.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01188.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01189.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01189.java index 9e803f37a7..ac52099ded 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01189.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01189.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01190.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01190.java index 38d7679a11..05539cbaba 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01190.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01190.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01191.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01191.java index bbd91c80bd..a3f7b26f92 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01191.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01191.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01192.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01192.java index f5371310ae..88f4ddaca2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01192.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01192.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01193.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01193.java index 043674f3fd..8d240c9ec1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01193.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01193.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01194.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01194.java index d153cb2417..4dbe93c949 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01194.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01194.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01203.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01203.java index fc1783eed6..3d7cda5426 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01203.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01203.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01204.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01204.java index 7a196df4a2..c4723df09d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01204.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01204.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01205.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01205.java index 486ffce53b..2fc9b64899 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01205.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01205.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01206.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01206.java index d831b7c5a8..af68849514 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01206.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01206.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01207.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01207.java index f8771cea00..c8f0ade8b9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01207.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01207.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01208.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01208.java index f4a1df26ad..5162ac2d6c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01208.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01208.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01209.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01209.java index 23d06f5015..5ec1bad9e8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01209.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01209.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01210.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01210.java index 5df9353fae..ea0a0536ff 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01210.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01210.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01211.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01211.java index 776593a96e..e3da108b7c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01211.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01211.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01212.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01212.java index 5bea07e1d9..2108ffe995 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01212.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01212.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01213.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01213.java index e1d6add70c..cb8cf98b76 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01213.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01213.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01214.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01214.java index ab4a0956d5..d951da75de 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01214.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01214.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01216.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01216.java index 8dddc80041..696084f730 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01216.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01216.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01217.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01217.java index 280002df35..1cdec195b8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01217.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01217.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01218.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01218.java index 826105e22e..9d392d8788 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01218.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01218.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01219.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01219.java index f8d933db13..97421a192f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01219.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01219.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01220.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01220.java index 9caf006b74..27ec717b01 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01220.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01220.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01221.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01221.java index d203949213..665855b2a1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01221.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01221.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01222.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01222.java index df66fe050c..ce7acab8bb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01222.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01222.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01223.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01223.java index bd95cc24ad..25be6df20e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01223.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01223.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01224.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01224.java index c3bb28d41a..36a3a71367 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01224.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01224.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01225.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01225.java index 99f23a5520..73dac62d41 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01225.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01225.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01226.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01226.java index e42ece12e1..42ac66e76d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01226.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01226.java @@ -84,7 +84,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01227.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01227.java index 33f995ed81..4b8079e659 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01227.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01227.java @@ -84,7 +84,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01228.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01228.java index 7ffbcc730e..9dc0efe9b5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01228.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01228.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01229.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01229.java index 6d5dd27480..257ef4041e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01229.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01229.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01230.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01230.java index ddd710cb18..3194f24e88 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01230.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01230.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01231.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01231.java index 153f85cfa7..b978c1feb9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01231.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01231.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -45,7 +45,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01232.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01232.java index ba19322676..be476e50af 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01232.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01232.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -45,7 +45,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01233.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01233.java index d61310f44a..9ccab41b16 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01233.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01233.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -45,7 +45,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01234.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01234.java index 2be662e2c0..299acf9dd5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01234.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01234.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -45,7 +45,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01235.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01235.java index 60a58174c5..fef9185c57 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01235.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01235.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -55,7 +55,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file:" + startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', '/').replace(' ', '_') + bar); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', '/').replace(' ', '_') + bar); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01236.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01236.java index bb0bb8f7b8..0f7d296661 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01236.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01236.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -55,7 +55,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file:" + startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', '/').replace(' ', '_') + bar); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', '/').replace(' ', '_') + bar); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01237.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01237.java index 270fd41194..1f948358e0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01237.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01237.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -55,7 +55,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file:" + startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', '/').replace(' ', '_') + bar); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', '/').replace(' ', '_') + bar); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01238.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01238.java index c4c6bfa3ef..0f8af0a733 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01238.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01238.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -49,7 +49,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName),false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01239.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01239.java index 4a83052a0a..d10a135f32 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01239.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01239.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -45,38 +45,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01240.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01240.java index 601261c170..73f9b16f94 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01240.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01240.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -49,7 +49,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01244.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01244.java index f22371b53f..ded6b8533c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01244.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01244.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01245.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01245.java index 0f034b235c..e8cde1fd16 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01245.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01245.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01246.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01246.java index b804c4f46a..6ef7503694 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01246.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01246.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -65,7 +65,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01247.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01247.java index 2f24050be7..3592ee8c4f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01247.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01247.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -65,7 +65,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01248.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01248.java index b2941c92eb..9a5836fc95 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01248.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01248.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01249.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01249.java index 1faa07b2f3..9c1ae9013c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01249.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01249.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01250.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01250.java index 0c78178d89..21ed2fa2fb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01250.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01250.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01251.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01251.java index 3c46082435..bce18b2a3f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01251.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01251.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01252.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01252.java index fc057aef34..10b6c912c7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01252.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01252.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01253.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01253.java index 4e2bc5ed83..387d8bcaf4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01253.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01253.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01254.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01254.java index e26b56d5ca..643e602e51 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01254.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01254.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01255.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01255.java index a8247cd4e4..c803dd8afd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01255.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01255.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01256.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01256.java index 734b64f337..c19424c6b4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01256.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01256.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01257.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01257.java index ad39ff0883..20f79d4e77 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01257.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01257.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01258.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01258.java index fe60caaf1a..6e26464cf3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01258.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01258.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01259.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01259.java index 167905f166..30fdcc469c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01259.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01259.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01260.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01260.java index e8ee23dc34..3c5ab69f28 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01260.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01260.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01261.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01261.java index ef06924834..6b313964af 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01261.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01261.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01262.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01262.java index deb55467ee..6a859b16de 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01262.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01262.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01263.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01263.java index 45aa268cab..e30bcce8a6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01263.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01263.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01264.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01264.java index 93121de3e7..3ecffc765e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01264.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01264.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01265.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01265.java index ea8cd18e90..06d9754dec 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01265.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01265.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01266.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01266.java index d8fa60e979..f66e787409 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01266.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01266.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01267.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01267.java index 1031556c4d..5af91941b4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01267.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01267.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01268.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01268.java index ff436a7dce..7acef32db6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01268.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01268.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01269.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01269.java index 4592ee8cb8..1d6a632f96 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01269.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01269.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01270.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01270.java index 2b4c2b0003..5efa65288b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01270.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01270.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01284.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01284.java index e8455fbb2c..e156c6fa52 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01284.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01284.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01285.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01285.java index 803be54bb1..7f766d5f80 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01285.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01285.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01286.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01286.java index e318b6e794..c300767beb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01286.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01286.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01287.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01287.java index e708c82045..7d2c37c6b7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01287.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01287.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01288.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01288.java index 566cc8de75..366745aa00 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01288.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01288.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01289.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01289.java index 5640f2bd55..7f890c87de 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01289.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01289.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01290.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01290.java index 188b371133..27acb0909d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01290.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01290.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01299.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01299.java index b1527bdb01..f9ae58b53d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01299.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01299.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01300.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01300.java index 56be3da275..d6cfc752f3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01300.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01300.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01301.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01301.java index cbe1940ffc..70637f021c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01301.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01301.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01302.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01302.java index 94700a7fe3..f448b3f7cb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01302.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01302.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01303.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01303.java index fbe6b33048..929ee7f5fd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01303.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01303.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01304.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01304.java index dc23ec1664..4a8636fc12 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01304.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01304.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01305.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01305.java index f832c6644a..df2f39e2b8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01305.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01305.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01306.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01306.java index 2df06fc547..d21d7444cb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01306.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01306.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01307.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01307.java index c525ab247a..f4665a4d62 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01307.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01307.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01309.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01309.java index 377bd06410..9bb22be2b4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01309.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01309.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01310.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01310.java index e678d70b0f..d1676cccca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01310.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01310.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01311.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01311.java index cad07bb65b..d1539886bd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01311.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01311.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01312.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01312.java index ab24db6d6c..18a383c75d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01312.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01312.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01313.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01313.java index f2f34d236b..764b9e80ac 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01313.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01313.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01314.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01314.java index 6f6c145afe..6d9af7e559 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01314.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01314.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01315.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01315.java index 4056f93a0d..f926a2c62a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01315.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01315.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01316.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01316.java index 692b828127..e610dfe034 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01316.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01316.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01317.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01317.java index 025d411e7c..a895d5c66a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01317.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01317.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01318.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01318.java index 56e2deee86..664091ac1f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01318.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01318.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01319.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01319.java index af93ce3872..ec98c60538 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01319.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01319.java @@ -89,7 +89,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01320.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01320.java index 2edc23f51d..7ae49dfb8f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01320.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01320.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01321.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01321.java index 1fc6d466fa..e2233768ae 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01321.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01321.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01322.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01322.java index 44835de338..1f9db9a928 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01322.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01322.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01323.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01323.java index cd7592ffc8..ac9240c4d7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01323.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01323.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01324.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01324.java index 4c500b58fd..ac105efd4e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01324.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01324.java @@ -78,7 +78,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01325.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01325.java index d4ff392626..01ae9777a6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01325.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01325.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -78,7 +78,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01328.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01328.java index 4bd373646e..ecb5991036 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01328.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01328.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -60,7 +60,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file:" + startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', '/').replace(' ', '_') + bar); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', '/').replace(' ', '_') + bar); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01329.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01329.java index b61be65592..aca484ac01 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01329.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01329.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -60,7 +60,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file", null, startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01330.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01330.java index 44f2aa5efd..44a7051295 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01330.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01330.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -54,7 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01331.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01331.java index 8ad808fdca..34bfb43edd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01331.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01331.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -54,7 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01332.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01332.java index 3bd0671dd8..468347ae79 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01332.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01332.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01333.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01333.java index 4316d33288..4deb7376b3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01333.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01333.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01334.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01334.java index 1f64e7eca1..7d1a37acad 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01334.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01334.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01335.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01335.java index 0f299a3b0d..b919bd2f5b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01335.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01335.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01336.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01336.java index d5c8a4f77d..60e4603828 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01336.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01336.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01337.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01337.java index 9d60e80b8c..c501509bae 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01337.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01337.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01338.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01338.java index fbfbab05b3..7bd12d988a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01338.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01338.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01339.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01339.java index c2366a5cf3..489189b1e5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01339.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01339.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01340.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01340.java index af352fb888..c1f511db88 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01340.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01340.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01341.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01341.java index f63bc2fe46..f8537fef51 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01341.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01341.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01342.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01342.java index 3a5c65b5f2..a58e2ec9c9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01342.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01342.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01343.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01343.java index 093aa0d6d9..d633c805fe 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01343.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01343.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01344.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01344.java index db9123747c..ac40e2a7ec 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01344.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01344.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01345.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01345.java index 67250d873b..29dd1497ef 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01345.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01345.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01346.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01346.java index 7a60c8e7e2..86a9aa7f5a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01346.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01346.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01347.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01347.java index 9bbf8907ff..5e9385315d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01347.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01347.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01348.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01348.java index f3e7c9eec8..5fb788bbe2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01348.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01348.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01349.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01349.java index 4983dbb849..0a3d4334cc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01349.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01349.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01350.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01350.java index eb04e01d46..08b4cb4466 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01350.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01350.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01351.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01351.java index f5dfda8293..54c65d6f04 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01351.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01351.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01352.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01352.java index 07e789b738..e9a036f7dd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01352.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01352.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01353.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01353.java index 774bc5c526..bec7c057dd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01353.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01353.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01359.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01359.java index 8fc1fb7673..4f9bf3cf45 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01359.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01359.java @@ -66,9 +66,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01360.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01360.java index b07c74c883..8ef10863a8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01360.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01360.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01361.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01361.java index 2dcb8161fd..915569a500 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01361.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01361.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01362.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01362.java index 13852d2b1b..03d2bc7dd4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01362.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01362.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01363.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01363.java index 816b2a13d7..6da405a28f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01363.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01363.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01364.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01364.java index d6e01eb995..5eaf4a9908 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01364.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01364.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01365.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01365.java index 453c40c31d..6e3908a6c3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01365.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01365.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01374.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01374.java index 29a4956981..c402245840 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01374.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01374.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01375.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01375.java index 9eb0232d8f..1582ade7a5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01375.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01375.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01376.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01376.java index c3f508339c..18ab986870 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01376.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01376.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01377.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01377.java index 02de76501d..3c87982abe 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01377.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01377.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01378.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01378.java index e885b2ab22..7d15b0a688 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01378.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01378.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01379.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01379.java index 9fd7b5b39d..fd35f07a77 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01379.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01379.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01380.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01380.java index bafc6388d1..8867908abf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01380.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01380.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01381.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01381.java index 091ce461d1..428de3923c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01381.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01381.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01382.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01382.java index 5d8eb961ee..8e1963b130 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01382.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01382.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01383.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01383.java index 0971c6eb78..3c35736704 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01383.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01383.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01384.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01384.java index 01d6628572..e93a36427f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01384.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01384.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01385.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01385.java index d2c57ac159..ea08784981 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01385.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01385.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01389.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01389.java index 19fd7b8609..d61fa52019 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01389.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01389.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01391.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01391.java index 2e5d6a0039..78acc762f2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01391.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01391.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01392.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01392.java index e272ba6817..fbdb15ef09 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01392.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01392.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01393.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01393.java index 0bda9c7002..50624a6a5d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01393.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01393.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01394.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01394.java index fd87d960ee..c145faa08a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01394.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01394.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01395.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01395.java index cddd49ed54..1460ace9c7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01395.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01395.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01396.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01396.java index 65352bd4c5..142a0680b9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01396.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01396.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01397.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01397.java index 58faba09e1..c3a4ed9719 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01397.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01397.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01398.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01398.java index 33e666f340..1c8943d137 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01398.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01398.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01399.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01399.java index b36dacef07..a691ceae31 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01399.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01399.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01400.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01400.java index 33ae95cf9c..523480dbdb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01400.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01400.java @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01401.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01401.java index 0ec9d41ad1..b85e5f259f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01401.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01401.java @@ -97,7 +97,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01403.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01403.java index 5acfb2c90b..1ab590782b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01403.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01403.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -59,7 +59,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01404.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01404.java index f57cb811f8..41ea64cf77 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01404.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01404.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01405.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01405.java index 5e4d564c33..73a9212d47 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01405.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01405.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01406.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01406.java index 5b8d6c0195..2fda016fae 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01406.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01406.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01407.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01407.java index 36d95493fe..ef2f5d7e30 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01407.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01407.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -59,38 +59,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01408.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01408.java index 7a266dfc06..af77c4de2a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01408.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01408.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01409.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01409.java index f33b0164cc..dfd32a1e36 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01409.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01409.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -59,7 +59,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01410.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01410.java index 49a3e01d51..467669cc4f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01410.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01410.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01411.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01411.java index e1c1b6ef75..6ecfc2af9f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01411.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01411.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01412.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01412.java index 46892a57ca..23d1dc62a8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01412.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01412.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01413.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01413.java index 2cb0560753..c8844c97e7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01413.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01413.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01414.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01414.java index 45d8b66862..7ce1cad387 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01414.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01414.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01415.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01415.java index f02ff5a695..5f2756e9fd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01415.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01415.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01416.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01416.java index 5933a2af2a..8c53a00a62 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01416.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01416.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01417.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01417.java index 1f533f0ec4..7c6c87d226 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01417.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01417.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01418.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01418.java index 5e8d9881d2..13c737e107 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01418.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01418.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01419.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01419.java index 6002a5e829..3fbcd5842c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01419.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01419.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01420.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01420.java index a86f1de78c..d67983e7e4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01420.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01420.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01421.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01421.java index fdc6dd1223..035df5fe6f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01421.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01421.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01422.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01422.java index a10b0cf075..65da499c53 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01422.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01422.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01423.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01423.java index 0f7e7b7253..809ced3181 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01423.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01423.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01424.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01424.java index b2a141c752..1c5e572d8a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01424.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01424.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01425.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01425.java index 67087f5a03..5b576b18e6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01425.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01425.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01426.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01426.java index f68a741632..1f1934ed07 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01426.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01426.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01427.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01427.java index 1c53add51e..dd4bd62cae 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01427.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01427.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01428.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01428.java index 0a4da02270..b99e627600 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01428.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01428.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01429.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01429.java index 5e619cd97e..4b494da123 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01429.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01429.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01430.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01430.java index bd5e96bba6..ac41c0c6db 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01430.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01430.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01436.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01436.java index d95834f77c..94bc58985f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01436.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01436.java @@ -75,9 +75,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01437.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01437.java index ae839c6634..5317fcebc8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01437.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01437.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01438.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01438.java index 11ba976abc..472492c7fb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01438.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01438.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01439.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01439.java index 35eb2be6d8..712826c339 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01439.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01439.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01440.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01440.java index 5c9d8b2990..00b094636d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01440.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01440.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01441.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01441.java index 6fffd80519..c926fd9091 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01441.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01441.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01442.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01442.java index 1f473b09d4..59dfcd4574 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01442.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01442.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01443.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01443.java index e177edf114..8b3141fb68 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01443.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01443.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01444.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01444.java index 2d8d14e9a2..5b5b1ac808 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01444.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01444.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01445.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01445.java index 44a7630331..f7e785b481 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01445.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01445.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01446.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01446.java index 81dddefdca..ad2dbf5fe2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01446.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01446.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01454.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01454.java index 2c6986d024..bb056d583e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01454.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01454.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01455.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01455.java index 23aa231b35..14d2687ff6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01455.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01455.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01456.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01456.java index e1934773a5..aaeb618862 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01456.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01456.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01457.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01457.java index 7eba75b1f0..de345fad25 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01457.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01457.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01458.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01458.java index 49e7a430eb..5aaba7866d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01458.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01458.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01459.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01459.java index 46666914cb..da5ac9497d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01459.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01459.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01460.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01460.java index c6aaf862d7..4bf34141d8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01460.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01460.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01461.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01461.java index 34429d8992..6e4e142217 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01461.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01461.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01462.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01462.java index 4ae95e52ea..3c43eb6768 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01462.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01462.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01463.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01463.java index dd6d89fb0b..47c099ee7c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01463.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01463.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01464.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01464.java index e85f64aacc..801523b490 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01464.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01464.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01465.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01465.java index 8c7db60f38..1990cfd04b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01465.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01465.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01466.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01466.java index 5a873cb7dc..3d5c44cadd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01466.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01466.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01467.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01467.java index 90fb88b63d..5cfd77d5f4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01467.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01467.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -61,7 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01468.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01468.java index bd54b38546..eab36df3af 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01468.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01468.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -61,7 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01469.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01469.java index 9fa3873b82..f3fb66db7e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01469.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01469.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -61,7 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01470.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01470.java index e00c12f359..8123bcdeb9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01470.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01470.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -61,7 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); + java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); response.getWriter().println( "Your results are: " ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01471.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01471.java index 2752bcacaf..9cf350f6f7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01471.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01471.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01472.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01472.java index 3c5f0bd6f0..392141d794 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01472.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01472.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01473.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01473.java index b7fa44bc6d..1abcd9f213 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01473.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01473.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01474.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01474.java index d7a4c1495f..562ccade20 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01474.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01474.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01475.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01475.java index e9fe5a8843..ffb7d72b89 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01475.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01475.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01476.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01476.java index cc0607d6ff..dadd2c6186 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01476.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01476.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01477.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01477.java index 20a3b16a55..97a9eb4396 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01477.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01477.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01478.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01478.java index d67bed6bad..36b22a2130 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01478.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01478.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01479.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01479.java index 95ef1af359..a9d0b9c4fb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01479.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01479.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01480.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01480.java index 0beb90d847..33010b1865 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01480.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01480.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01481.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01481.java index 722a23cd80..900bc047f6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01481.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01481.java @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01482.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01482.java index 95dec979d8..881c8a5630 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01482.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01482.java @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01483.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01483.java index f1c161b5ab..10a37d93b7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01483.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01483.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01484.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01484.java index b88bb2dc44..6d4939010e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01484.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01484.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01485.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01485.java index 4af440319e..79a2e75788 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01485.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01485.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -69,7 +69,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01486.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01486.java index 485ab9917e..d657603f8b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01486.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01486.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01487.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01487.java index 9ca848f0c6..be197ea527 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01487.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01487.java @@ -74,7 +74,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01488.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01488.java index ce7603eb37..c627e8f722 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01488.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01488.java @@ -74,7 +74,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01489.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01489.java index aa0b2dbfc5..abae7c1f9a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01489.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01489.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -74,7 +74,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01493.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01493.java index e9edb0470a..f41940d2f4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01493.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01493.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -46,7 +46,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01494.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01494.java index 79ce60b05b..c43761e323 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01494.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01494.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -46,7 +46,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01495.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01495.java index a281f89d5b..16b5ca3dc6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01495.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01495.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -56,7 +56,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file", null, startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01496.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01496.java index 7788f88eaf..2ddaf6f916 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01496.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01496.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -50,7 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01497.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01497.java index 7b0b3f7891..3eb8bd0661 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01497.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01497.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -50,7 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01498.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01498.java index cfdb6cbf24..19d6c5471f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01498.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01498.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -46,38 +46,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01499.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01499.java index 505f0936ac..912d15ab52 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01499.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01499.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -50,7 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01500.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01500.java index 42be406a7b..ee715483f7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01500.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01500.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -46,7 +46,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01503.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01503.java index 7aecd987d2..8d0a35c308 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01503.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01503.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -74,7 +74,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01504.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01504.java index 4a9476f421..2206fefbd0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01504.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01504.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01505.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01505.java index 0cc110c9d4..7d1f9538fa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01505.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01505.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01506.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01506.java index 8dd49446ed..0de3456ae0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01506.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01506.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01507.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01507.java index a33702963f..e66a30b69d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01507.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01507.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01508.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01508.java index eaab2bccab..77191ff56c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01508.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01508.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01509.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01509.java index 18fe68b1de..83ce33ffe9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01509.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01509.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01510.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01510.java index 66e292494d..7d6084e31d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01510.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01510.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01511.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01511.java index 258e671940..6a6b8e3a3a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01511.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01511.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01512.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01512.java index 92b471f672..df1599ae2a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01512.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01512.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01513.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01513.java index 9c74ced13f..e0da1bb6ac 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01513.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01513.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01514.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01514.java index a6cdc3eefe..10fa066fd7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01514.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01514.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01515.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01515.java index 99b4e96e2f..4be98e6887 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01515.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01515.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01516.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01516.java index 3e7302ec4b..9cfc8989cc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01516.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01516.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01517.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01517.java index 9f9755559c..322fbc492b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01517.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01517.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01522.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01522.java index 0568282eb5..96a3a4ffa0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01522.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01522.java @@ -62,9 +62,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01523.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01523.java index f45377b6c8..b98bfd375b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01523.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01523.java @@ -62,9 +62,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01524.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01524.java index 9e6d30b6d0..8f4309a21d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01524.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01524.java @@ -62,9 +62,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01525.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01525.java index bfbb1dd550..f05c268f4b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01525.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01525.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01526.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01526.java index 3736778ee5..bd603a84a3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01526.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01526.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01527.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01527.java index dfa0d0df7f..3f94449697 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01527.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01527.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01528.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01528.java index dce0758c5c..c0f6103d7a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01528.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01528.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01529.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01529.java index 95bb5badc6..a202ce7d8e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01529.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01529.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01530.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01530.java index dbee1e6f65..7a696396b6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01530.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01530.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01531.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01531.java index 33e5e7f0a1..7e6dbc8c64 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01531.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01531.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01532.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01532.java index 38b7c3056c..6e8c2c6f9f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01532.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01532.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01533.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01533.java index 4b02c0a624..9ff4b67431 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01533.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01533.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01546.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01546.java index ca06ffcbdb..a0e8421315 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01546.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01546.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01547.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01547.java index fec27e1379..795bdeca50 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01547.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01547.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01548.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01548.java index eaac742268..7059d7e4e4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01548.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01548.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01549.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01549.java index 575580a88c..05b091e663 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01549.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01549.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01550.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01550.java index 4af5866b94..815baacb47 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01550.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01550.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01551.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01551.java index 1360db0e7d..246942a867 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01551.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01551.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01552.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01552.java index 2214a91708..e32f29482c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01552.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01552.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01553.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01553.java index 006213518f..4cf7ba25a8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01553.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01553.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01554.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01554.java index 5e65a4a354..3958444e0f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01554.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01554.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -48,7 +48,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01557.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01557.java index 5639bdc690..3161f3a325 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01557.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01557.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01558.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01558.java index 58bbe283ee..6f301ded65 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01558.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01558.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01559.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01559.java index 0689914326..956c90ad52 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01559.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01559.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01560.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01560.java index dd5062747e..8f7f0ea59f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01560.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01560.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01561.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01561.java index b1d448557f..a6637d208f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01561.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01561.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01562.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01562.java index ed1f722572..43e236ca62 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01562.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01562.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01563.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01563.java index b8acda3a32..4526653aee 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01563.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01563.java @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01564.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01564.java index 5af5abfde6..72538bff50 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01564.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01564.java @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01565.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01565.java index be6ad2559c..85f2a4ff8c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01565.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01565.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -84,7 +84,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01566.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01566.java index 369c3c67cd..e476248099 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01566.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01566.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -76,7 +76,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01567.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01567.java index c47c5f1658..48ce42e90e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01567.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01567.java @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01570.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01570.java index 081510a2b8..6091140f56 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01570.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01570.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -48,7 +48,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01571.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01571.java index 742ad4b9f2..e2e18870c8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01571.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01571.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01572.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01572.java index 002f8d67c4..c284c9a765 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01572.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01572.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01573.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01573.java index b0c6e6c1b7..4f65f238df 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01573.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01573.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01574.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01574.java index 39f1594afa..7d89c0b4a5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01574.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01574.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01576.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01576.java index 80c7c53206..5fd4d0de94 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01576.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01576.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01577.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01577.java index 3102ee4bf4..b5a56d8101 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01577.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01577.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01578.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01578.java index 7207ba338d..059e05b9b6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01578.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01578.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01579.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01579.java index a5f854d572..c056d161fa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01579.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01579.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -71,7 +71,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01580.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01580.java index 431d72afe1..0e5640b726 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01580.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01580.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -71,7 +71,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01581.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01581.java index d74feca722..aad9dda02a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01581.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01581.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -71,7 +71,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01582.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01582.java index b5df35f53d..2a4874afd9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01582.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01582.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -71,7 +71,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01583.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01583.java index 838876a655..5449e51e05 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01583.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01583.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01584.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01584.java index 4ddc907e9a..264bf1acb3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01584.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01584.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01585.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01585.java index a6a50d2e44..980fb14906 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01585.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01585.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01586.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01586.java index 6d125ab193..4dbb3d8741 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01586.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01586.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01587.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01587.java index d42ba965b4..23c7bf6357 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01587.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01587.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01588.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01588.java index 9fc59a1996..ecd9ca6f0e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01588.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01588.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01589.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01589.java index 460a1dd792..89b9c522f1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01589.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01589.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01590.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01590.java index ab1a9a8663..0ffb467f49 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01590.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01590.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01591.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01591.java index d36f325cf7..ed6c7a45a2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01591.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01591.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01592.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01592.java index c585e4eac0..927e7d395d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01592.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01592.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01593.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01593.java index 6663c239ba..9dee09977e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01593.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01593.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01594.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01594.java index 7e1033fd74..7981ecb176 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01594.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01594.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01595.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01595.java index 8074f62740..935dfef910 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01595.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01595.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01596.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01596.java index 44ae7754c6..41f317df85 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01596.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01596.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01597.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01597.java index ca614a54cc..856b880a66 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01597.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01597.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01598.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01598.java index d85d626909..32f70a1dca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01598.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01598.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01599.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01599.java index 6b2c5cb3b8..d689764a79 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01599.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01599.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01600.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01600.java index a4824cc3ea..b9fb0b7d18 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01600.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01600.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01601.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01601.java index 1f8ed6d48c..02c8fd2dcb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01601.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01601.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01604.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01604.java index 27bcb756ac..debb575456 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01604.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01604.java @@ -64,9 +64,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01605.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01605.java index 36d47d3c00..92a6128b10 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01605.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01605.java @@ -64,9 +64,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01606.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01606.java index 52e536e8dd..00be0ad150 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01606.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01606.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01607.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01607.java index 9d2eaece2d..8f8f5605e5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01607.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01607.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01608.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01608.java index 78ff6e354d..a4cf8fdb58 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01608.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01608.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01609.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01609.java index 729941f100..ee010c83d1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01609.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01609.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01610.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01610.java index ac197572b7..e5eb5d0cda 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01610.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01610.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01615.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01615.java index a1e1f829b8..9f88d98938 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01615.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01615.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01616.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01616.java index 64eb6f5d87..55e890dae1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01616.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01616.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01617.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01617.java index 3715e44e76..034efca636 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01617.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01617.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01618.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01618.java index 7f8f1c0ef3..2f6ad3b41a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01618.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01618.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01619.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01619.java index d71c0442bb..bb761a8cce 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01619.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01619.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01620.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01620.java index 0b1c82b96b..b2cee11938 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01620.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01620.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01621.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01621.java index 42c20effaa..926b2b20e3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01621.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01621.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01622.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01622.java index 2eb001261d..8fef57c2f2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01622.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01622.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01623.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01623.java index 11131bb4da..d19bfa15f8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01623.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01623.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01624.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01624.java index 3e8f4da516..7fe0c1ef3d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01624.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01624.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01626.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01626.java index 0d4467dac6..239e2dfd95 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01626.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01626.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01627.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01627.java index 011af128b4..f7d693c703 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01627.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01627.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01628.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01628.java index 21ab457ec5..9a2198b7b2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01628.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01628.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01629.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01629.java index 54139f30a4..f3dcf2a06c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01629.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01629.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01630.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01630.java index f5d7342679..6052a77d62 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01630.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01630.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01631.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01631.java index e962b182f9..a362da7ab2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01631.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01631.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01632.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01632.java index 8a65f13f1b..640129905f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01632.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01632.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01633.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01633.java index 4bd421ab45..8cd3ef67c1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01633.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01633.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01634.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01634.java index a6b410397f..795e23f51a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01634.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01634.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -95,7 +95,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01635.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01635.java index cc0f792637..15a5dd7e49 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01635.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01635.java @@ -98,7 +98,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01636.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01636.java index a127ee29e8..ebf585bb5f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01636.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01636.java @@ -98,7 +98,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01637.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01637.java index 7056e91505..5b6b541564 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01637.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01637.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01638.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01638.java index 2a7daddc87..9545008674 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01638.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01638.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -95,7 +95,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01639.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01639.java index 4b929f1608..74959e04d2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01639.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01639.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -95,7 +95,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01640.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01640.java index 334bda028f..6b1f629bb6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01640.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01640.java @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01641.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01641.java index dd58b4005d..729a46dc71 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01641.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01641.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01642.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01642.java index 2adf3e7fd4..8e9b83d040 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01642.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01642.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -59,7 +59,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01643.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01643.java index 7138816184..a164de8560 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01643.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01643.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -69,7 +69,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file:" + startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', '/').replace(' ', '_') + bar); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', '/').replace(' ', '_') + bar); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01644.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01644.java index 9b604aef56..c8bda0509e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01644.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01644.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01645.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01645.java index ad3a5fe697..2f34f197ec 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01645.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01645.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01646.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01646.java index 98716cd124..173ec96500 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01646.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01646.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01647.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01647.java index 2c0be3130a..e9d41c825a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01647.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01647.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01649.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01649.java index 45bf02ace1..2e02edf6bc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01649.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01649.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01650.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01650.java index 22f2159512..59868f9658 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01650.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01650.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01651.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01651.java index daff6299eb..214d240e39 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01651.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01651.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01652.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01652.java index dd34a043fd..76d2439f2b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01652.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01652.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01653.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01653.java index 376da4e1b7..439063ceea 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01653.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01653.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01654.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01654.java index 25c6b42c1a..c9361d1cb3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01654.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01654.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01655.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01655.java index 9003131e6b..7cd207ab3d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01655.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01655.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01656.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01656.java index 7cca202905..a3aaa2f6fb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01656.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01656.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01657.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01657.java index 65880046da..59650b6242 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01657.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01657.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01658.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01658.java index 5e24abe557..cc84944142 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01658.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01658.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01659.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01659.java index 74f955b930..523a10642c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01659.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01659.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01660.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01660.java index d6b40b8148..4c52909516 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01660.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01660.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01661.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01661.java index 37f415c0e1..dd181f217a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01661.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01661.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01662.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01662.java index a1866a7e48..fde7c4f2dd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01662.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01662.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01663.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01663.java index 21589710e5..486b37d370 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01663.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01663.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01664.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01664.java index e3b6c5e8f6..d07098f6e2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01664.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01664.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01665.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01665.java index eb5fb27a47..0deb1e37ca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01665.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01665.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01666.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01666.java index 5943946dcf..fe41bc9cbb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01666.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01666.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01667.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01667.java index 23109e383c..0b6fb27ac0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01667.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01667.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01668.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01668.java index ea83b767a5..676e979e42 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01668.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01668.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01669.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01669.java index 5ac36d3444..9af727aa9d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01669.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01669.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01670.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01670.java index 7533dfad41..a80b0b31bf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01670.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01670.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01671.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01671.java index 6345642a10..80d9f65d62 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01671.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01671.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01672.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01672.java index f83b2dda31..153bbd15de 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01672.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01672.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01673.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01673.java index 312e1c36cc..f7499381f5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01673.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01673.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01674.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01674.java index b8a210975c..42067f47d0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01674.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01674.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01684.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01684.java index 9183875ec1..dc80c5009c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01684.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01684.java @@ -75,9 +75,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01685.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01685.java index 582e21c2b5..5f00a6b5e6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01685.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01685.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01686.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01686.java index c0c27810d5..4a381030b5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01686.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01686.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01687.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01687.java index a00650446a..d2b7d872ac 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01687.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01687.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01688.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01688.java index 6252733a2a..aa816b915c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01688.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01688.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01689.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01689.java index 3db2fdd2fe..632546d86d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01689.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01689.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01690.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01690.java index ee9bde66f6..0dc3fce850 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01690.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01690.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01691.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01691.java index b99536664c..935f962794 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01691.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01691.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01692.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01692.java index 6e295610e2..824ead8606 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01692.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01692.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01693.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01693.java index b7c0fcf2c8..383009994a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01693.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01693.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01708.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01708.java index c9aa4ac194..5690495347 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01708.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01708.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01709.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01709.java index 872b7cb281..b7d9946d55 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01709.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01709.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01710.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01710.java index e37620bda8..1f444ed2bf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01710.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01710.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01711.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01711.java index 9fb18fe628..ea5a5a839f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01711.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01711.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01712.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01712.java index 586bb8e157..57b893e386 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01712.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01712.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01713.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01713.java index eb40a5cf5e..de8772b390 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01713.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01713.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01714.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01714.java index b64ba5641b..80cde4fd59 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01714.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01714.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01715.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01715.java index fa0fc5bf9e..a44a1df4c0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01715.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01715.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01716.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01716.java index 8aaa916024..ce1e9e523a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01716.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01716.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01717.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01717.java index c5f20c4add..c298981218 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01717.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01717.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01718.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01718.java index d13b8aa411..13d6a9357d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01718.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01718.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01719.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01719.java index 4b253e14e5..ec6da8ddab 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01719.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01719.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01720.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01720.java index ba0c8cbabf..fb27e4d30c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01720.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01720.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01721.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01721.java index e7a1c0d7e9..a9b834b4c5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01721.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01721.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01722.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01722.java index 9c08633cb3..cf9e4088c0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01722.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01722.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01724.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01724.java index cd895bc0d2..0e1bb940f6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01724.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01724.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -61,7 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01725.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01725.java index 7c92538e8a..108ad45a3d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01725.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01725.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01726.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01726.java index 7ef06a0a64..ae4ccf455e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01726.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01726.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01727.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01727.java index 7a85325130..507b686555 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01727.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01727.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01728.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01728.java index ccf099c86a..42b89ee875 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01728.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01728.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01729.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01729.java index adbde8e559..34f4eb455a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01729.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01729.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01730.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01730.java index 72a42f97c0..dd09642009 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01730.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01730.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01731.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01731.java index 2b1b0d4ec7..d1067c0418 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01731.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01731.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01732.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01732.java index 93f043cbb9..03a89eef55 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01732.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01732.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01733.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01733.java index a452765911..f17ccaa595 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01733.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01733.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01734.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01734.java index 805a3e4d57..204651bd6c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01734.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01734.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01735.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01735.java index 9a5c140f5a..acf448ea6d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01735.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01735.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01736.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01736.java index 487895e4ef..b860dd931f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01736.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01736.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01737.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01737.java index fb885142e5..470bf908e8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01737.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01737.java @@ -84,7 +84,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01738.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01738.java index ff906573fc..6713229353 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01738.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01738.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01739.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01739.java index 5fe0062308..bb0631a5ad 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01739.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01739.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01740.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01740.java index 769dd436dd..0d83438be9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01740.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01740.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01741.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01741.java index c20117545a..1cf04bbd37 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01741.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01741.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01742.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01742.java index b7e49089c5..1fda00586e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01742.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01742.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01744.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01744.java index 85a31eabc7..1ebc00e4d8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01744.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01744.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -45,7 +45,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01745.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01745.java index 5ce6630f42..a74596676a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01745.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01745.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01746.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01746.java index 8b84c56cbb..61ab30b442 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01746.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01746.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -55,7 +55,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file:" + startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', '/').replace(' ', '_') + bar); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', '/').replace(' ', '_') + bar); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01747.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01747.java index 542654a7c9..46096aa7e8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01747.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01747.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -55,7 +55,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file", null, startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01748.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01748.java index 0cce8b0e40..20a78e1822 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01748.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01748.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -49,7 +49,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01749.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01749.java index 57a2c803b9..4506193458 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01749.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01749.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -49,7 +49,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01750.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01750.java index 140aad2dae..438b1e0f58 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01750.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01750.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -49,7 +49,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01751.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01751.java index 8dc2c70495..5341299b87 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01751.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01751.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -49,7 +49,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName),false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01752.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01752.java index d9c47112fc..48034857c5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01752.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01752.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -45,38 +45,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = new Test().doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01757.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01757.java index 77dbc8b108..d2f56d3763 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01757.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01757.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01758.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01758.java index 96de5ff058..2ead6ae359 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01758.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01758.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01759.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01759.java index d57aada90a..6cab30b339 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01759.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01759.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01760.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01760.java index ef63fce71b..2a412dffef 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01760.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01760.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01761.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01761.java index fbc497d126..f0b176a603 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01761.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01761.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -65,7 +65,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01762.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01762.java index 8049f88164..a088ba2d38 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01762.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01762.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -65,7 +65,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01763.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01763.java index f440972773..8cf1fc6dee 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01763.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01763.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -65,7 +65,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01764.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01764.java index b73c5c6b25..c6b6ca9110 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01764.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01764.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -65,7 +65,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01765.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01765.java index b4c84d0814..4c0ba05e11 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01765.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01765.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01766.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01766.java index 05d92f6cf1..6a64937ae3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01766.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01766.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01767.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01767.java index 32fc67ea80..4208cec5e2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01767.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01767.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01768.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01768.java index ca6366859f..b838497eac 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01768.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01768.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01769.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01769.java index fe57e78939..8f83d5b877 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01769.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01769.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01770.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01770.java index 231734873a..c91584840d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01770.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01770.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01771.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01771.java index ceaa3f49a6..673773f671 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01771.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01771.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01772.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01772.java index e210e67667..0ef810c0cc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01772.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01772.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01773.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01773.java index 03a5f8e958..00f97a1a21 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01773.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01773.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01774.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01774.java index 1b04fec97c..f0f5f44950 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01774.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01774.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01775.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01775.java index fc36d2a6e9..c61a8b25fd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01775.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01775.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01776.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01776.java index c2a5b8ed63..5a1ea27472 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01776.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01776.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01777.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01777.java index 37fb6ef61a..15118502ef 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01777.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01777.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01778.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01778.java index 14af823c44..1b2c12e34d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01778.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01778.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01779.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01779.java index 7aa64c804d..2705ee6f72 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01779.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01779.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01780.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01780.java index 04b44de465..1b9c2d2d99 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01780.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01780.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01790.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01790.java index 0376450c12..ce5fa57ae2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01790.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01790.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01791.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01791.java index 898163be1a..f470595207 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01791.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01791.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01792.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01792.java index b54b2f66d5..0008989c0e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01792.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01792.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01793.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01793.java index 7b410ed25b..1dfe41b335 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01793.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01793.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01794.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01794.java index 8b67694ae0..9a6d0be861 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01794.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01794.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01795.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01795.java index 4aeaa590e2..6b6a5dbc73 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01795.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01795.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01796.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01796.java index 4e642fa87f..1b006f49aa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01796.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01796.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01802.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01802.java index 85573535d5..ace240b88c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01802.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01802.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01803.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01803.java index ee1dd4218b..e054e49296 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01803.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01803.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01804.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01804.java index 71350e4ad2..bb10b46a37 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01804.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01804.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01805.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01805.java index b233338c55..010a427024 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01805.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01805.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01806.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01806.java index 59a6d9a1ac..131e640313 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01806.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01806.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01807.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01807.java index d51f062505..70876293db 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01807.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01807.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01809.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01809.java index 69608639b9..3d3870c3d4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01809.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01809.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -47,7 +47,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01810.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01810.java index be42b5e739..05100feb46 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01810.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01810.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -47,7 +47,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); + java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); response.getWriter().println( "Your results are: " ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01811.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01811.java index f0074e20a0..30606955e1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01811.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01811.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ @@ -47,7 +47,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); + java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); response.getWriter().println( "Your results are: " ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01812.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01812.java index f06f5fd3ba..5104c0622d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01812.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01812.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01813.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01813.java index 4e563cef71..1a475f8cb0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01813.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01813.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01814.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01814.java index a2ef78c299..364602f966 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01814.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01814.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01815.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01815.java index 73960f77ba..2e62a5f430 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01815.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01815.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01816.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01816.java index 4b5f0d9ad8..53761f4051 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01816.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01816.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01817.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01817.java index fdb56af1f4..8c5c055d9c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01817.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01817.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01818.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01818.java index 8383468e17..1a409c0607 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01818.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01818.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01819.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01819.java index 4214f85afa..07e5a1c5b5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01819.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01819.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01820.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01820.java index 80cbf7cdd3..9e3507b2ee 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01820.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01820.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01821.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01821.java index a7cc034b41..f08bcc3032 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01821.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01821.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01822.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01822.java index da469b06f9..30952db9a4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01822.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01822.java @@ -98,7 +98,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01823.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01823.java index 7ff0fe0ad2..cc214d9dc8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01823.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01823.java @@ -98,7 +98,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01824.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01824.java index f7a1e95efc..deee232858 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01824.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01824.java @@ -101,7 +101,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01825.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01825.java index 6dfc5967c1..50e02686ac 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01825.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01825.java @@ -101,7 +101,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01826.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01826.java index e1be6a661e..2184c6c42f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01826.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01826.java @@ -101,7 +101,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01827.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01827.java index a8daea77ef..e0f2d52224 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01827.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01827.java @@ -101,7 +101,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01828.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01828.java index 27fa6ddcd8..c668381434 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01828.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01828.java @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01829.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01829.java index 28101dfeda..624deea7d1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01829.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01829.java @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01830.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01830.java index e4154a7a33..904a867ab0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01830.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01830.java @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01833.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01833.java index 53fb622718..3ce2ca008a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01833.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01833.java @@ -62,7 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01834.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01834.java index 943f747645..d2238d64ad 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01834.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01834.java @@ -62,7 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01835.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01835.java index 0c663c7d98..284808aa07 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01835.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01835.java @@ -62,7 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01836.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01836.java index 1e15456d38..f672b1f73d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01836.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01836.java @@ -72,7 +72,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file:" + startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', '/').replace(' ', '_') + bar); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', '/').replace(' ', '_') + bar); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01837.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01837.java index 01d60a03bb..2172f62eb3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01837.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01837.java @@ -72,7 +72,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file", null, startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01838.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01838.java index 9d326c943c..d28fe36830 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01838.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01838.java @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01839.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01839.java index 48f76439b8..df38a3acc2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01839.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01839.java @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName),false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01840.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01840.java index 98b0da3888..eb3bb19e13 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01840.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01840.java @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01841.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01841.java index 13f2f7b3cb..b76b9b2b3d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01841.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01841.java @@ -62,38 +62,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01844.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01844.java index a3bfc67676..94f84b1cd9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01844.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01844.java @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01845.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01845.java index 46bd768bf9..2da412392f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01845.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01845.java @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01846.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01846.java index d294a83bc1..2385edabd4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01846.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01846.java @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01847.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01847.java index f1c48c304b..c13229ba4a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01847.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01847.java @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01848.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01848.java index ffbd9a2b76..b7e3cff503 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01848.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01848.java @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01849.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01849.java index bd008254f3..7f123449e2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01849.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01849.java @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01895.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01895.java index 059b222769..5b90c3b5ed 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01895.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01895.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01896.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01896.java index 652012e182..574beb18b1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01896.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01896.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01897.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01897.java index 5ecafabc1d..e9f2b284ca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01897.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01897.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01898.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01898.java index 0b72e78521..40cda23a3e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01898.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01898.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01899.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01899.java index c99f1fc842..8e1a734255 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01899.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01899.java @@ -78,7 +78,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01900.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01900.java index d9b25e151e..b479b72e83 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01900.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01900.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -78,7 +78,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01901.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01901.java index 25848278d6..d840b66029 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01901.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01901.java @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01904.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01904.java index 54a8d3fbd5..4f9d03a9e0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01904.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01904.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01905.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01905.java index 80b719f116..18b7c88723 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01905.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01905.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -54,7 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01906.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01906.java index 104a7d0b6e..63b2358796 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01906.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01906.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -54,7 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01907.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01907.java index 74a2bc1544..21558e217b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01907.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01907.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -54,7 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01908.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01908.java index 0b26a5ee60..2e45de56f0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01908.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01908.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -50,7 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01911.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01911.java index b3fc7f239a..8e4cd134ae 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01911.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01911.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -78,7 +78,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01912.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01912.java index 99697bb3c8..a654684a94 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01912.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01912.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01913.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01913.java index 059cf3b67c..1367787bd1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01913.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01913.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01914.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01914.java index d0d0d04ed5..7b335c0f33 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01914.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01914.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01915.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01915.java index 7366b9c822..10ee22f4d8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01915.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01915.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01916.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01916.java index 6812c8c412..69a2c23a5c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01916.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01916.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01917.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01917.java index 786c4b8995..1023d5f9dd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01917.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01917.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01918.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01918.java index ae79d12f70..c556ba37dd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01918.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01918.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01919.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01919.java index 816c087ad0..7e2e802e4a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01919.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01919.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01920.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01920.java index 6511277301..7e26349f51 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01920.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01920.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01921.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01921.java index fb9267611e..7f52518643 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01921.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01921.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01922.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01922.java index 7a45d5b696..faebd2f19c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01922.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01922.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01923.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01923.java index 391d1c59c5..959b7ce0a6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01923.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01923.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01924.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01924.java index b0687f6e74..d87744fcb4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01924.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01924.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01925.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01925.java index 12e6217362..cb75ca947d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01925.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01925.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01926.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01926.java index 90e0d693fa..30bf206e33 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01926.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01926.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01927.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01927.java index ff9cb74abb..1c0977e41a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01927.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01927.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01928.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01928.java index 446bf5c95b..b1b11085e9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01928.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01928.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01929.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01929.java index 6dc9732a2d..6c3760b98e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01929.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01929.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01935.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01935.java index 5e96760a71..3634769388 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01935.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01935.java @@ -66,9 +66,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01936.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01936.java index f803f4e413..2a5ccea2ef 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01936.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01936.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01937.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01937.java index 0f1d70ba3e..aa4fccabc7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01937.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01937.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01938.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01938.java index be80e70000..388906a2b1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01938.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01938.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01939.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01939.java index 102fdb20ab..30da4a92b5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01939.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01939.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01940.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01940.java index a585974d56..dc1704b104 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01940.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01940.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01941.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01941.java index 8e6df3ac86..4eb5ca6db4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01941.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01941.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01942.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01942.java index b15885818e..7f51f1ef4a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01942.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01942.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01943.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01943.java index 91da747d6c..84ce36ea72 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01943.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01943.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01944.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01944.java index 1a9a266904..059e8feabd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01944.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01944.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01955.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01955.java index 89d9035680..0bbf56d96a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01955.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01955.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01956.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01956.java index c7a2d34cfe..b4728fca5e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01956.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01956.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01957.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01957.java index 849460dada..f8e724c7f3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01957.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01957.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01958.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01958.java index c8b3d7c653..5da78addc3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01958.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01958.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01959.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01959.java index 7aa0b434ec..e6a19657d4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01959.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01959.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01960.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01960.java index abf39196f2..accb802944 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01960.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01960.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01961.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01961.java index 4d92c47cad..d98ccc50b5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01961.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01961.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01962.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01962.java index 1b89aa6160..550f8d593b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01962.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01962.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01963.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01963.java index 626f79c477..10d5ccd155 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01963.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01963.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01964.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01964.java index 7942c4f8d0..be372c873b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01964.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01964.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01966.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01966.java index e591759edc..9109f2da98 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01966.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01966.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01967.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01967.java index aae423bb8b..e769ddf7bb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01967.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01967.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01968.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01968.java index 606ba7627f..5984c1e493 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01968.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01968.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01969.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01969.java index b7c25fc509..b0aad7a3cd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01969.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01969.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01970.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01970.java index a8f1cdb828..59eec3da33 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01970.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01970.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01971.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01971.java index 5185499316..f28cde46c9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01971.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01971.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01972.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01972.java index f6533903db..d4413426a2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01972.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01972.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01973.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01973.java index ff49a08380..413dbae51a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01973.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01973.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01974.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01974.java index 61ea804632..8849117f3c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01974.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01974.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01975.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01975.java index d6c3b9a870..7d83b5f700 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01975.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01975.java @@ -98,7 +98,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01976.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01976.java index c262f9a65c..409a6801af 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01976.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01976.java @@ -98,7 +98,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01977.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01977.java index fe2b20403d..1ee958c0e7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01977.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01977.java @@ -98,7 +98,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01978.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01978.java index 81aff471dd..78681d8c4a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01978.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01978.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -95,7 +95,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01979.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01979.java index e71d530190..b3d8161cba 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01979.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01979.java @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01980.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01980.java index 8b34c53946..efeaef07da 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01980.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01980.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01981.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01981.java index c52efb5e17..6d605c438c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01981.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01981.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01982.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01982.java index 6b9206c7ba..c592f1fa09 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01982.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01982.java @@ -97,7 +97,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01983.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01983.java index dc2a6d4983..4c46435b65 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01983.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01983.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -59,7 +59,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01984.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01984.java index bb1ae29014..dd18be4522 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01984.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01984.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -59,7 +59,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01985.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01985.java index d60b673200..7b011c9b34 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01985.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01985.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01986.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01986.java index aef4ef38ef..a990f577a4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01986.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01986.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -69,7 +69,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file", null, startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01987.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01987.java index 3cf22cb8cb..04e089e368 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01987.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01987.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -69,7 +69,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file", null, startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01988.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01988.java index cefb6ecb46..30ddb051b5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01988.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01988.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01989.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01989.java index a24a7dd3ce..99ebb273ef 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01989.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01989.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01990.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01990.java index d4eefae0e6..dc70f79500 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01990.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01990.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01991.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01991.java index fc2c0c8c2b..f1df58061e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01991.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01991.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -59,7 +59,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01993.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01993.java index 0490308320..0afea36ee7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01993.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01993.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01994.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01994.java index 250329f6aa..873213b98c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01994.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01994.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01995.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01995.java index b90ff52509..0823540991 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01995.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01995.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01996.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01996.java index 3c503af7d3..e2d6d09dab 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01996.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01996.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01997.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01997.java index 44f1c0c200..eb0c4d9b46 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01997.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01997.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01998.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01998.java index c3459c60ac..29a96eb18f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01998.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01998.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02006.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02006.java index 1d9af66959..96024ce12f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02006.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02006.java @@ -75,9 +75,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02015.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02015.java index 2e1b00528a..d179e8c3ea 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02015.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02015.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02016.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02016.java index 44c7cfdd4a..a6d95037fb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02016.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02016.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02017.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02017.java index cb9edef529..30b10172f2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02017.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02017.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02018.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02018.java index c577c9a5e0..d2e0266876 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02018.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02018.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02019.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02019.java index 0fe272e696..642f09aafd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02019.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02019.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -88,7 +88,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02020.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02020.java index 6b0b7a2945..c30eba0ca9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02020.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02020.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02021.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02021.java index 919a834e61..12356f4c57 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02021.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02021.java @@ -80,7 +80,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02022.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02022.java index c5c58ae2e8..45f3bef948 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02022.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02022.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -80,7 +80,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02023.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02023.java index 286bdaa55d..0726e50403 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02023.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02023.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -80,7 +80,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02024.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02024.java index 862a4cac2c..149f92b501 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02024.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02024.java @@ -90,7 +90,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02026.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02026.java index 83ec815ddb..1310059cf1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02026.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02026.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02027.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02027.java index 96d6bf19f3..baaf872d26 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02027.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02027.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02028.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02028.java index de52ad722e..7a94d0f634 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02028.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02028.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02029.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02029.java index 53493b5927..be5c58bf4c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02029.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02029.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02030.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02030.java index 8cfab4f0ce..64286d3cc5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02030.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02030.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -62,7 +62,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file", null, startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02031.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02031.java index 74daecf42e..ac26536986 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02031.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02031.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -56,7 +56,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02032.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02032.java index e6c4ee37ac..84ab64b404 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02032.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02032.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -56,7 +56,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02033.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02033.java index ddf5cb5d2a..bec2730903 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02033.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02033.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -56,7 +56,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName),false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02034.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02034.java index 7c6cd2a5b2..cf0b1f2f71 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02034.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02034.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,38 +52,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02035.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02035.java index 9a2cf52143..68ff6026ad 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02035.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02035.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02041.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02041.java index 3c5f846a36..a1bc21c2fa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02041.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02041.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -80,7 +80,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02042.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02042.java index f2f213e785..1f912daa5a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02042.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02042.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -72,7 +72,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02043.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02043.java index acd87cd940..e5d8cc4e98 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02043.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02043.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -75,7 +75,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02044.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02044.java index 192a6e2078..8464b58d85 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02044.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02044.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -75,7 +75,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02045.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02045.java index 5ff70d21e3..8ecb67411a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02045.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02045.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02046.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02046.java index 1c0034250e..f1a508bd52 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02046.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02046.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02047.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02047.java index 9a211decaa..9a234d6e14 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02047.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02047.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02048.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02048.java index c51d14b0fa..27e1e331d8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02048.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02048.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02049.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02049.java index 649c38d2da..94cba9b2cc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02049.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02049.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02050.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02050.java index 02cf2ab347..59699620e9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02050.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02050.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02051.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02051.java index 91a6e5ccbc..b3d817ec32 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02051.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02051.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02052.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02052.java index 513e631384..a1afbce26a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02052.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02052.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02053.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02053.java index 535667af89..923db99712 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02053.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02053.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02054.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02054.java index 69bc917e2d..f89fc0b5e6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02054.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02054.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02055.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02055.java index f9e46add8f..72d5b2500c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02055.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02055.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02056.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02056.java index 0e856b04f1..caa8c3c441 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02056.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02056.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02057.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02057.java index 4349aa8e67..ad7db26b95 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02057.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02057.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02058.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02058.java index be65772ae8..81590faef1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02058.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02058.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02059.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02059.java index e3cdea499a..1c2eca08a7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02059.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02059.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02064.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02064.java index b57e8f493f..4b31970f5d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02064.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02064.java @@ -68,9 +68,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02065.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02065.java index ea0334e044..6fb4c0fc30 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02065.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02065.java @@ -68,9 +68,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02066.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02066.java index 0c989dcfe5..57295ecc68 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02066.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02066.java @@ -68,9 +68,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02067.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02067.java index e1fee41b07..044778db1a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02067.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02067.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02068.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02068.java index 9fb8af65f0..f100fe620e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02068.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02068.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02069.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02069.java index e0ccd09f6a..01424aa5ff 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02069.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02069.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02070.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02070.java index 4fa412594b..4a5fe7c25e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02070.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02070.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02084.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02084.java index 7f79f7e986..3549e4a6dd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02084.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02084.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02085.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02085.java index 78bfd2b8cc..bc778c9250 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02085.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02085.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02086.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02086.java index 27196f3c66..8085a5fc05 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02086.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02086.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02087.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02087.java index a9617e49b0..4e233148ff 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02087.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02087.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02088.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02088.java index 2d4d2241f5..b7ba47f4a5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02088.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02088.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02089.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02089.java index 724cb3d63e..8536e5a1e0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02089.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02089.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02090.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02090.java index 30936c8fe2..b270ba5a5e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02090.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02090.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02091.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02091.java index 6bb24c8dec..b987cc1a73 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02091.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02091.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02092.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02092.java index eb8ea1e4d3..d2c4710d12 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02092.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02092.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02093.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02093.java index 4d9eff5eef..71172d3cc4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02093.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02093.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02094.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02094.java index 6830c955c8..3a8f284d7c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02094.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02094.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02095.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02095.java index 24ee19641f..a4d0bd12c8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02095.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02095.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02096.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02096.java index 04a68e2aef..028927c991 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02096.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02096.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02097.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02097.java index 0c04e5844c..f86fa88e20 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02097.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02097.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02098.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02098.java index 4595e30d5d..da69805e3a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02098.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02098.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02099.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02099.java index cb58364aae..40fbd34960 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02099.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02099.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02100.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02100.java index 5833efd4f0..7c68415a6a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02100.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02100.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02101.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02101.java index e8ea21acc5..e5a46193e5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02101.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02101.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -80,7 +80,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02102.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02102.java index 1ad2ffee22..43ea098362 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02102.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02102.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02103.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02103.java index 4da41f79ed..a9c2c9698a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02103.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02103.java @@ -83,7 +83,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02105.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02105.java index 245abd6cd5..e82ff52103 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02105.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02105.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -45,7 +45,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02106.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02106.java index fb81c995bd..cecd204a96 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02106.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02106.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02107.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02107.java index 634eb9c2a7..3f0f20d909 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02107.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02107.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02108.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02108.java index 53ecddcb66..160fbcea69 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02108.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02108.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -49,7 +49,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName),false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02109.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02109.java index 33119f2af9..71c58e85e2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02109.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02109.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -49,7 +49,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02110.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02110.java index 3f155f79db..6d884e4e0e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02110.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02110.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -49,7 +49,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02111.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02111.java index 4f6a0b5f59..8ce89a334e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02111.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02111.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -45,38 +45,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02112.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02112.java index 87f95ac9c4..b9c7f03103 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02112.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02112.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -49,7 +49,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02113.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02113.java index 7f1ebff916..aaa95d0e35 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02113.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02113.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -45,7 +45,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02118.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02118.java index 02731781e3..490576b564 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02118.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02118.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02119.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02119.java index 1db35f9285..9d37fd1065 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02119.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02119.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -65,7 +65,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02120.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02120.java index 037500d736..4659bda39f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02120.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02120.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -65,7 +65,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02121.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02121.java index 39c4fcd363..c280a73226 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02121.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02121.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02122.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02122.java index 782ad2f8b8..de96c07926 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02122.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02122.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02123.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02123.java index 54d4a67fef..129d77c897 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02123.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02123.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02124.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02124.java index 3f3dd7a6c4..c771f61511 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02124.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02124.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02125.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02125.java index ff017ef8af..46e279a814 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02125.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02125.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02126.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02126.java index 2653ec9b08..71cd725818 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02126.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02126.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02127.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02127.java index dbf939670d..0baec0ee29 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02127.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02127.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02128.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02128.java index 056b00a6c1..1da3000bd3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02128.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02128.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02129.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02129.java index 1cf4c604d9..617fda152c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02129.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02129.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02130.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02130.java index 356d5420f6..8338d4024d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02130.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02130.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02131.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02131.java index 06613fcc16..cd6d24b1f9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02131.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02131.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02132.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02132.java index 5cec76448e..384c02e448 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02132.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02132.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02133.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02133.java index d69863fbea..9c024a6ee7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02133.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02133.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02134.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02134.java index 885dc6c459..3c66f51b42 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02134.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02134.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02135.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02135.java index c38e435722..be5cfbde04 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02135.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02135.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02136.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02136.java index 415d1ad929..c1b1732f72 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02136.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02136.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02137.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02137.java index 7b16776c0f..fc14aca469 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02137.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02137.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02143.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02143.java index 1c0bf43629..864cffb5b5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02143.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02143.java @@ -61,9 +61,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02144.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02144.java index 62eed09b05..8bb98c3252 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02144.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02144.java @@ -61,9 +61,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02145.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02145.java index 6960c79ec3..e51b68c7ca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02145.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02145.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02146.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02146.java index 612adb98e7..a85973ed8a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02146.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02146.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02147.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02147.java index 8e786bb3ff..91d3ea2b57 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02147.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02147.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02148.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02148.java index 0ac8f5c742..988e983964 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02148.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02148.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02149.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02149.java index 6b7ccb83ad..37b06186c9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02149.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02149.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02150.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02150.java index e4df18da3e..1b1b9849b0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02150.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02150.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02151.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02151.java index 22c1e09a10..a50a1ff47c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02151.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02151.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02152.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02152.java index 86e45afd47..3601ee8033 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02152.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02152.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02153.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02153.java index 3a0a9c8aef..556ac08b24 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02153.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02153.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02154.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02154.java index 28e8a760ad..69a6a1133f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02154.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02154.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02155.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02155.java index 69f73cde4c..0ce659a0c9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02155.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02155.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02156.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02156.java index 3c138bed8c..4810954e83 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02156.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02156.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02165.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02165.java index cdda0c7212..71fae81cc6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02165.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02165.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02166.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02166.java index 318f0ee580..e582035ac6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02166.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02166.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02167.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02167.java index d3c8b5f079..404f825595 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02167.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02167.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02168.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02168.java index 269f027c56..a3d504322d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02168.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02168.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02169.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02169.java index 834c4d6bdb..9823ec425d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02169.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02169.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02170.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02170.java index 22f37bf31a..43120e4393 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02170.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02170.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02171.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02171.java index 51ad7b4fb6..998806fc1f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02171.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02171.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02172.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02172.java index eb6b15a815..0c6a664f1e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02172.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02172.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02173.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02173.java index 2f09fe5b3e..613cc48838 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02173.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02173.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02174.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02174.java index 26ff77f15a..150fb0a625 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02174.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02174.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02175.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02175.java index 305db1ead3..2e78801147 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02175.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02175.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02176.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02176.java index f4209d0ac8..02c4f632b1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02176.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02176.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02177.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02177.java index 3d91f91a73..d04cf49b75 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02177.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02177.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02178.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02178.java index 6486ee30a2..9696d82b49 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02178.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02178.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -47,7 +47,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02181.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02181.java index 25d8d52d69..a46bf126e8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02181.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02181.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -47,7 +47,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); + java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); response.getWriter().println( "Your results are: " ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02182.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02182.java index fa3f9ce3c0..733db3ce87 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02182.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02182.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -47,7 +47,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); + java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); response.getWriter().println( "Your results are: " ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02183.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02183.java index c18f2d3177..b53f43f825 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02183.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02183.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02184.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02184.java index 9abb339bca..f0ff484f33 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02184.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02184.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02185.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02185.java index e04ffc67b0..95d4eb0435 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02185.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02185.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02186.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02186.java index 2d1c554e6b..30eed7df2a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02186.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02186.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02187.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02187.java index 5f3bbb842e..578d346689 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02187.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02187.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02188.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02188.java index d70da58c99..b425211f6e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02188.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02188.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02189.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02189.java index 1abd7ec5aa..ef65678e64 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02189.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02189.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02190.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02190.java index 5e613ac67f..a5269df49f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02190.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02190.java @@ -89,7 +89,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02191.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02191.java index 14731f10b4..1639cd7353 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02191.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02191.java @@ -89,7 +89,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02192.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02192.java index a183203813..a28a60b70a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02192.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02192.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02193.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02193.java index ac22c89727..5137fd2d55 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02193.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02193.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02194.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02194.java index b968f3ae26..b198eb6389 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02194.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02194.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02195.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02195.java index 90f890d88b..b1e940cef7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02195.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02195.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -86,7 +86,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02197.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02197.java index 97d1ee54ad..23c12955f1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02197.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02197.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -50,7 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02198.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02198.java index 5ac5f71d60..ae48520ce8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02198.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02198.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -50,7 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02199.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02199.java index 17ac289299..5e6762a460 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02199.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02199.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02200.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02200.java index eb1306767b..014833cf17 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02200.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02200.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02201.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02201.java index d4c7ebeb7a..c757d672e0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02201.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02201.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -54,7 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02202.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02202.java index 0b1f83cecf..90184ec26a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02202.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02202.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -54,7 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName),false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02203.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02203.java index b4e28101b1..170d39fa6c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02203.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02203.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -54,7 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02204.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02204.java index 59422c0b06..d52de16d22 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02204.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02204.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -50,38 +50,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02205.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02205.java index 07321dda16..de5ff29655 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02205.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02205.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -54,7 +54,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02206.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02206.java index 45b1c1904e..30f1ecec88 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02206.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02206.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -50,7 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02207.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02207.java index 37bbc595f1..67de2ef5b0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02207.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02207.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -50,7 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02210.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02210.java index 8b28843a9e..c96d047c31 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02210.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02210.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -78,7 +78,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02211.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02211.java index 14044f22c1..2e24e66b5f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02211.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02211.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02212.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02212.java index bd6849e29a..b14f8a58bd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02212.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02212.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02213.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02213.java index acc24bf85e..b33b074c09 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02213.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02213.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02214.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02214.java index 62035858d8..0055dc1375 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02214.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02214.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02215.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02215.java index ad22548100..b4b01d74d5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02215.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02215.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02216.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02216.java index 9b1722d20d..7de001da3b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02216.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02216.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02217.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02217.java index 20e47b3bb4..5ba82d264d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02217.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02217.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02218.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02218.java index 1e657b4c98..442e741a80 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02218.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02218.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -70,7 +70,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02219.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02219.java index a589ba75c0..1d91bf8da4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02219.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02219.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02220.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02220.java index 318116f64c..f710eb334e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02220.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02220.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02221.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02221.java index 9a13928510..6b517f2777 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02221.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02221.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02222.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02222.java index 67bcd89939..7ed0f1ce05 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02222.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02222.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02223.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02223.java index f3961bfe36..2bf4e37b98 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02223.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02223.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02224.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02224.java index b2eecaad4c..851fd3b9f0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02224.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02224.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02225.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02225.java index 3c4eedd30e..2d773eaa8b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02225.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02225.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02226.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02226.java index 2b44c69db2..e87e965812 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02226.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02226.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02227.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02227.java index bce8e09ee5..c28e9ade7c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02227.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02227.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02228.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02228.java index 25d5168809..7aaf62d27b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02228.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02228.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02229.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02229.java index 2985e04e09..9ae71ac7f4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02229.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02229.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02230.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02230.java index 6039d99064..c5e829207c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02230.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02230.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02231.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02231.java index 674bea888b..8fb876897e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02231.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02231.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02232.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02232.java index 9ade21175d..3a8615a7c9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02232.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02232.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02233.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02233.java index 98b8bb4e58..c98bf5025b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02233.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02233.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02234.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02234.java index 8a561d75bc..2839498502 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02234.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02234.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02235.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02235.java index 2107c6048b..e8c9719a50 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02235.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02235.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02236.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02236.java index 9d0c83bc4b..7af42556ef 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02236.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02236.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02237.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02237.java index e9399fd89f..4812de1b42 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02237.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02237.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02238.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02238.java index b04f46f6ce..9d1bf45892 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02238.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02238.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02239.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02239.java index d15b825885..c3cddef229 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02239.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02239.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02240.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02240.java index 4e9c0c28a6..c223a422ac 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02240.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02240.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02241.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02241.java index 316ef89896..77e4bc6683 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02241.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02241.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02242.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02242.java index 44bee8d79f..4c69ec4005 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02242.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02242.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02243.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02243.java index 1735b3252a..7a5d92002d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02243.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02243.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02244.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02244.java index cb833f661e..94cc2625b3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02244.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02244.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02247.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02247.java index ae7f1566f2..58584fa58a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02247.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02247.java @@ -66,9 +66,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02248.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02248.java index b24f8b0b33..6d5006ad51 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02248.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02248.java @@ -66,9 +66,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02249.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02249.java index 5b087ff30f..4a26e3e59e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02249.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02249.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02250.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02250.java index e1c9630592..5ae5082094 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02250.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02250.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02251.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02251.java index e4ba34ab0f..8c1ef7530c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02251.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02251.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02252.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02252.java index 9f8e410242..4d886c236a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02252.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02252.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02253.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02253.java index d8edf2eec3..16292662f0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02253.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02253.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02261.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02261.java index b2294f77e4..dfef55351e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02261.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02261.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02262.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02262.java index 3d3bc0ccf8..0e24f09998 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02262.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02262.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02263.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02263.java index 180e1e5138..dbe142e3aa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02263.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02263.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02264.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02264.java index 77dfae5041..b8292b7cef 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02264.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02264.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02265.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02265.java index 7eda61d4b8..280a1b8b9b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02265.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02265.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02266.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02266.java index 505b5b575d..9ac10c4518 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02266.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02266.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02267.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02267.java index 31976cfa0d..2de513cfb2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02267.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02267.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02268.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02268.java index ebb6559789..e61fee15ec 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02268.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02268.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02269.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02269.java index 56fe8b2617..3340e65d21 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02269.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02269.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02270.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02270.java index 2c5b8f3709..48839a5058 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02270.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02270.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02271.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02271.java index a31486cc1f..0d8772874e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02271.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02271.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02272.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02272.java index 3f68e0542d..5ad1913010 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02272.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02272.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02273.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02273.java index b125826149..8557d6c634 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02273.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02273.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02274.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02274.java index a4589594c9..4e6bfa9058 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02274.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02274.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02277.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02277.java index f92947f90b..3b4f2204e8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02277.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02277.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02281.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02281.java index 63877bad4b..2a4fa06bf8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02281.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02281.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); + java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); response.getWriter().println( "Your results are: " ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02282.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02282.java index 681e3e9673..9e17db6861 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02282.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02282.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02283.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02283.java index db48bdfa78..314edb872d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02283.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02283.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02284.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02284.java index 3d3f25216b..43a47e0ae8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02284.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02284.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02285.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02285.java index f7a9622d0e..b32c8b054a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02285.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02285.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02286.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02286.java index 7ae3f9ef4d..510c4f31f2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02286.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02286.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02287.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02287.java index 0b8bb694f7..872327c5e3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02287.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02287.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02288.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02288.java index 3395cd2979..3cdc865ee6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02288.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02288.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02289.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02289.java index 7b00e9b1e2..041d63fd07 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02289.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02289.java @@ -98,7 +98,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02290.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02290.java index b6a9a28f2f..d6b059c127 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02290.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02290.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02291.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02291.java index ecc35a166b..77b03fbfb3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02291.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02291.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02292.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02292.java index b275618c43..7dde284bc3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02292.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02292.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02293.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02293.java index e4bc601402..a1b7bd96c0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02293.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02293.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -95,7 +95,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02294.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02294.java index 4514ae7ebb..387fc589ca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02294.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02294.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -95,7 +95,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02295.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02295.java index 0c30dde98c..f864cc0f1d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02295.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02295.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -95,7 +95,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02296.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02296.java index 98e3e465ea..d31f2b030f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02296.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02296.java @@ -97,7 +97,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02297.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02297.java index 62181731df..bdd677da85 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02297.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02297.java @@ -97,7 +97,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02298.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02298.java index ca108437a0..dbf69eb4f3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02298.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02298.java @@ -97,7 +97,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02300.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02300.java index c050f6d5c0..6796eb050e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02300.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02300.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -59,7 +59,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02301.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02301.java index 4f3000dffb..f8c015d7b3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02301.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02301.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02302.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02302.java index da2908eb0b..50d8108e26 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02302.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02302.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02303.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02303.java index bb6ada1d13..e437986dff 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02303.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02303.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02304.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02304.java index 0f59c7eab3..8d84d252d5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02304.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02304.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02307.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02307.java index 1f75ac9a1d..f149be9b8d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02307.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02307.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02308.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02308.java index 6750b6a0f2..c1ec0a55c9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02308.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02308.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02309.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02309.java index e0faeabaa0..40ffab96c3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02309.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02309.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02310.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02310.java index 2186171323..339559aa74 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02310.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02310.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02311.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02311.java index bdde68d7dd..8817cf00ea 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02311.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02311.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02312.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02312.java index 8350a38363..b9b63738f4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02312.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02312.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02313.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02313.java index 5879ea3664..b3ada7504d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02313.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02313.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02314.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02314.java index 58d0b6a4b4..3177334b4a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02314.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02314.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02315.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02315.java index ffc04d6eba..fa07b1d707 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02315.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02315.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02316.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02316.java index c252a200ea..cc23bf172f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02316.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02316.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02317.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02317.java index e803f64618..36e0e91bb7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02317.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02317.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02318.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02318.java index 0a638daab1..b9bdb74270 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02318.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02318.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02319.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02319.java index 8ac1566245..58005575d7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02319.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02319.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02320.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02320.java index ff38d260ec..35915a07fe 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02320.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02320.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02321.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02321.java index d64a0e80b8..74596d00d7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02321.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02321.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02322.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02322.java index aa6eccea57..249282c6d3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02322.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02322.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02323.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02323.java index dfd28566ca..088a196a85 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02323.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02323.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02324.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02324.java index d723ed8385..d878005fb7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02324.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02324.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02325.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02325.java index e86d0339ec..f2286d2cfa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02325.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02325.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02326.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02326.java index 37b90d9429..f17baf7fad 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02326.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02326.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02327.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02327.java index 08e5c20e98..39c71358c1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02327.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02327.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02328.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02328.java index 27473d4267..8d9d03c452 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02328.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02328.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02329.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02329.java index 098361d7f7..63d5fdf9ce 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02329.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02329.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02330.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02330.java index 9511da377c..4b07d4a157 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02330.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02330.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02331.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02331.java index 462b43c9fb..e543bb7049 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02331.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02331.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02332.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02332.java index f9b801f9e4..f3faf86660 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02332.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02332.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02333.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02333.java index e34768ff2a..05218d6b54 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02333.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02333.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02334.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02334.java index 74ab7982f5..4fc9412499 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02334.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02334.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02335.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02335.java index c0f4eb2b0d..a605f61d1b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02335.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02335.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02336.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02336.java index d072618899..d2d6eec631 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02336.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02336.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02340.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02340.java index 8e45ad6e1a..9fefd8bcbe 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02340.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02340.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02341.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02341.java index 6c8d07ce4a..ac62c03847 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02341.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02341.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02342.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02342.java index 3ddeecf279..b59a4aba02 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02342.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02342.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02343.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02343.java index f130475ec6..1ec0162e0b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02343.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02343.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02344.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02344.java index 8a9d160e84..89df1d3a63 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02344.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02344.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02352.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02352.java index 4ac11462dd..b93ee80833 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02352.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02352.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02353.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02353.java index d76b3cc71a..5383490d8e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02353.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02353.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02354.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02354.java index b14bc8b0ca..5b461d09cc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02354.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02354.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02355.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02355.java index aeb207b2e4..bc9081e4a2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02355.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02355.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02356.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02356.java index 3c7bc9cd1c..dc6fa62903 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02356.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02356.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02357.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02357.java index 3cf6974f5d..964978bfed 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02357.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02357.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02358.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02358.java index fafc5143a9..239103088d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02358.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02358.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,7 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02361.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02361.java index 82fbc9ed56..3e12968c09 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02361.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02361.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02362.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02362.java index 08987744d9..599462b81b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02362.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02362.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02363.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02363.java index 3b1ba9f5e8..05f87ecb4d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02363.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02363.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02364.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02364.java index ee338a89ba..b5cfd033cb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02364.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02364.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02365.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02365.java index b072dde36b..1403cae053 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02365.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02365.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02366.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02366.java index 7a489e96c4..53288dc5cd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02366.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02366.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02367.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02367.java index 884326b548..626dad23fd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02367.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02367.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02368.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02368.java index c8b810d6a7..e20dd1346f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02368.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02368.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02369.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02369.java index 3f3ada5f54..f31e5eae93 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02369.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02369.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02370.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02370.java index 1516e458d4..fc6b28b2a0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02370.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02370.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02371.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02371.java index e362b8b2d7..8cd49ca3c4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02371.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02371.java @@ -85,7 +85,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02372.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02372.java index f8fa20b3d5..3602f6d919 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02372.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02372.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -69,7 +69,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02373.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02373.java index 8f02221cdf..8b4a8a58fc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02373.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02373.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02374.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02374.java index cc43f91ebb..486c27d7c0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02374.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02374.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02375.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02375.java index b0deb212e0..77498f30a8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02375.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02375.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -74,7 +74,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02377.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02377.java index ee4b440892..ba0e52d62c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02377.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02377.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02378.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02378.java index f21cdfd832..4267fc9989 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02378.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02378.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -56,7 +56,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file:" + startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', '/').replace(' ', '_') + bar); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', '/').replace(' ', '_') + bar); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02379.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02379.java index 8cb5b8cade..82e094abfa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02379.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02379.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -56,7 +56,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file", null, startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', java.io.File.separatorChar).replace(' ', '_') + bar, null, null); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02380.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02380.java index 01202234f7..eee523bc81 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02380.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02380.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -50,7 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName)); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02381.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02381.java index d1da207ec4..4a1a41ae46 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02381.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02381.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -46,38 +46,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02382.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02382.java index bacfa994f6..c9035a3479 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02382.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02382.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -50,7 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02383.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02383.java index 331b08bfa8..4e6dd561ef 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02383.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02383.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -50,7 +50,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02385.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02385.java index 7e494bf45d..c650246d30 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02385.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02385.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -74,7 +74,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02386.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02386.java index 7af733c082..447c26492a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02386.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02386.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02387.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02387.java index 62357fcc89..8f8927eb49 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02387.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02387.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02388.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02388.java index 984598b499..f203fb5036 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02388.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02388.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02389.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02389.java index d680adc590..0dffedb6d2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02389.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02389.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02390.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02390.java index 72d2264de1..32c8c515a0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02390.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02390.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -66,7 +66,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02391.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02391.java index 01c349b14a..2d835eefa4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02391.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02391.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -69,7 +69,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02392.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02392.java index 6d1b4d2be6..c48e70939f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02392.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02392.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -69,7 +69,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02393.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02393.java index e93b6d1a10..e8fb824d93 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02393.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02393.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -69,7 +69,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02394.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02394.java index 00106f9514..6719baa0bf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02394.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02394.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02395.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02395.java index 0889895636..e5fad79d9c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02395.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02395.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02396.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02396.java index a7687e809a..6ca9b8ac56 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02396.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02396.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02397.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02397.java index 0769a230e1..5a077e58ff 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02397.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02397.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02398.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02398.java index d025800d70..00127dbee7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02398.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02398.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02399.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02399.java index 89fafddcac..b98fa43f25 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02399.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02399.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02400.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02400.java index 45b6f57453..9c7b2de0fd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02400.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02400.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02401.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02401.java index 8c32e16512..fae6353686 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02401.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02401.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02402.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02402.java index edcb9519c5..0719412180 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02402.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02402.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02403.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02403.java index 8786786f7d..7d7931be8a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02403.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02403.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02404.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02404.java index adf76ba048..c1c0d8bc81 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02404.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02404.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02405.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02405.java index fc30262de9..018529ce09 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02405.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02405.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02406.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02406.java index 5fc3c2dbfd..6879b6d62b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02406.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02406.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02407.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02407.java index 8f7b263108..76dbfc0cae 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02407.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02407.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02408.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02408.java index a0cf204661..27ffd623f5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02408.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02408.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02409.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02409.java index dca2a99e98..9a60a77196 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02409.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02409.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02410.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02410.java index 3b6f9e4e13..136afba2ff 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02410.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02410.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02411.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02411.java index d06249e6f4..56edbe0450 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02411.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02411.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02412.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02412.java index df3dfd6a2e..8f769c54f3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02412.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02412.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02413.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02413.java index 269d2d52aa..8cb8097d63 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02413.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02413.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02414.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02414.java index 6652fb8f0e..b9a84e5989 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02414.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02414.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02428.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02428.java index 924767b8a3..3ca8344eaa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02428.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02428.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02429.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02429.java index 54b406a372..1386448bea 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02429.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02429.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02430.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02430.java index a298a9956b..02cc416582 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02430.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02430.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02431.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02431.java index ab0f5b5785..c32ea6c5e6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02431.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02431.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02432.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02432.java index b7ee97361c..da803596f6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02432.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02432.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02433.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02433.java index 23ca95feaf..0fcdfffc61 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02433.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02433.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02446.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02446.java index ccd9f2740d..f968952816 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02446.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02446.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02447.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02447.java index e5bad98f48..0e1c2ecf7f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02447.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02447.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02448.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02448.java index 4b08b39e20..c762e98873 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02448.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02448.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02449.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02449.java index 5ee4e0f5f1..320b4b1e09 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02449.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02449.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02450.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02450.java index e343c43033..fb49f8890b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02450.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02450.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02451.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02451.java index 49278b4238..2ee7aaca80 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02451.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02451.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02452.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02452.java index 0de90300d0..d93244e265 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02452.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02452.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -48,7 +48,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02453.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02453.java index d20bd5b92b..c207de226a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02453.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02453.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -48,7 +48,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); + java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); response.getWriter().println( "Your results are: " ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02454.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02454.java index ee208d91b3..aedf29dd4a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02454.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02454.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02455.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02455.java index 7a88b82137..07e2378152 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02455.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02455.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02456.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02456.java index f9a69d203c..b6913487ba 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02456.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02456.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02457.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02457.java index 4be867362d..5fe0b334bc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02457.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02457.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02458.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02458.java index 41b2cdeea4..fb7f150e83 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02458.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02458.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -84,7 +84,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02459.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02459.java index 7999a31222..60e5cdcd29 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02459.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02459.java @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02460.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02460.java index 0416872de4..8544492a82 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02460.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02460.java @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02461.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02461.java index 80a61dc71d..d7094bef74 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02461.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02461.java @@ -76,7 +76,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02462.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02462.java index 86c384ea26..31d9c7f854 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02462.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02462.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -48,7 +48,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02463.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02463.java index bc0525068d..5d76682fdc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02463.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02463.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -48,7 +48,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir, bar); + java.io.File fileTarget = new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR, bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02464.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02464.java index 47f750e208..bcecd4f369 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02464.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02464.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02465.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02465.java index 14d9b91a3c..7ef51f0b51 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02465.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02465.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02466.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02466.java index c7b52b3149..c2c13c1679 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02466.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02466.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02467.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02467.java index 8c63580452..09a8417fac 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02467.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02467.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02468.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02468.java index 50fb0c4c49..f1f78883e1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02468.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02468.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -48,38 +48,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02469.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02469.java index 95c39935e0..f053691a2a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02469.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02469.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02470.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02470.java index c20190f73a..9a68badddc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02470.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02470.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -52,7 +52,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02471.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02471.java index f747052006..e511bc940b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02471.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02471.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -48,7 +48,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02474.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02474.java index f70b919e34..b2eb3f59ae 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02474.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02474.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02475.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02475.java index bba0fce856..aae1151cb0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02475.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02475.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02476.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02476.java index d368f05517..3d63655ab5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02476.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02476.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02477.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02477.java index acb4c75bc0..e357eb6f40 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02477.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02477.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02478.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02478.java index e6aade39cb..d7f2394d82 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02478.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02478.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -71,7 +71,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02479.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02479.java index 32a45ab944..42077e3800 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02479.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02479.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -71,7 +71,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02480.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02480.java index 245ea1816b..d4d75a36f6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02480.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02480.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02481.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02481.java index ac93d8c4c7..edf8baf51c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02481.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02481.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02482.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02482.java index 64d7da54b7..f95057ba28 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02482.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02482.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02483.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02483.java index f12c3388b4..b34dd53b20 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02483.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02483.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02484.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02484.java index ac1b86da9e..2a8472467b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02484.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02484.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02485.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02485.java index 5793af2794..88bda37e31 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02485.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02485.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02486.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02486.java index e9995145bb..5ac9fbd146 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02486.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02486.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02487.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02487.java index d548dfcd20..e3944b3d40 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02487.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02487.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02488.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02488.java index 5fb9d7493a..62da1a7aeb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02488.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02488.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02489.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02489.java index a729f1515c..04a6e7c392 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02489.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02489.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02490.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02490.java index ec4b3d8625..2978e54e4e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02490.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02490.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02491.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02491.java index 04b5ae9be4..23b41f4217 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02491.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02491.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02492.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02492.java index db637abd31..847aa3734c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02492.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02492.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02493.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02493.java index da6a378183..a0c74cd53d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02493.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02493.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02494.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02494.java index 47e18d2d70..e14883969e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02494.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02494.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02495.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02495.java index 00357b1535..8725b5710c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02495.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02495.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02496.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02496.java index 196c978746..ecdd533710 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02496.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02496.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02508.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02508.java index 070909af5f..51e86220f0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02508.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02508.java @@ -64,9 +64,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02509.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02509.java index e7c4ba4b08..eb9537c8cb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02509.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02509.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02510.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02510.java index 20a3ce325a..6d5b6c490b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02510.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02510.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02511.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02511.java index 240d54bcf3..e512f7775b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02511.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02511.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02512.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02512.java index 356425c70f..71eefa98fc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02512.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02512.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02513.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02513.java index 10fda3143b..ec3945911c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02513.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02513.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02514.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02514.java index 9a82da17d2..ace53793f9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02514.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02514.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02515.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02515.java index a327d7a82b..64d1102ef2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02515.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02515.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02516.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02516.java index 3d167d30a7..16c70bfd3e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02516.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02516.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02517.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02517.java index 5d23af2f44..0b2421f857 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02517.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02517.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02518.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02518.java index 33a7b683a4..0ba5674a02 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02518.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02518.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02523.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02523.java index 4a03477621..4e1485f4a6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02523.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02523.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02524.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02524.java index 493a009cfc..9b6f2b03ab 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02524.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02524.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02525.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02525.java index 1e203f6875..2e8edf72a1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02525.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02525.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02526.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02526.java index f7eece17f3..6735782d55 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02526.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02526.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02527.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02527.java index 96697ab22f..9ff9e3298d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02527.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02527.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02528.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02528.java index 52db2f1097..e51471da7b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02528.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02528.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02529.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02529.java index cc8362f64e..6e6c8fa555 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02529.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02529.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02530.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02530.java index 96012c87db..0053fbc789 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02530.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02530.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02531.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02531.java index e8104f95c5..147a2b442e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02531.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02531.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02532.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02532.java index eebb3845de..af71b696dc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02532.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02532.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02533.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02533.java index a49cb2e041..d7d1962fd9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02533.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02533.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02534.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02534.java index e7cd255eaf..6b3213c11b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02534.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02534.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02535.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02535.java index 84f7f39be7..860eda7014 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02535.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02535.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02536.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02536.java index 3586f08968..c931c5edb6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02536.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02536.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02537.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02537.java index 975d704f42..aee35374fd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02537.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02537.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02538.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02538.java index 5405a8be4b..1ab6193929 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02538.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02538.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02539.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02539.java index f17d006ef5..c576c4d6d2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02539.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02539.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02540.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02540.java index 1f707915b5..374460a659 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02540.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02540.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02541.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02541.java index 8663d35636..1f5409facc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02541.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02541.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02542.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02542.java index 8412325590..915992e572 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02542.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02542.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02543.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02543.java index d39275b3f4..c497054737 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02543.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02543.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02544.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02544.java index ae69931029..35dbc034d0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02544.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02544.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02545.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02545.java index 2e5b588df7..0cc880c783 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02545.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02545.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02546.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02546.java index 1704a83226..a2509f8c63 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02546.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02546.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02547.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02547.java index 62e258291c..c1dfa5fa03 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02547.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02547.java @@ -98,7 +98,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02548.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02548.java index 69820d9ce3..c06ceea708 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02548.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02548.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02549.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02549.java index 2523c99c83..90ad0af7a7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02549.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02549.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -94,7 +94,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02550.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02550.java index f803718e61..b414d0444a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02550.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02550.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -95,7 +95,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02551.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02551.java index f09b9aee4f..689085df46 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02551.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02551.java @@ -87,7 +87,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02552.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02552.java index a6de8994b8..a7b9fb2ab3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02552.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02552.java @@ -97,7 +97,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02554.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02554.java index f617f0f7de..abaa6ad9bf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02554.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02554.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -59,7 +59,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),bar); + java.io.File fileTarget = new java.io.File(new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),bar); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02555.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02555.java index 2aee7993b6..25666e5943 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02555.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02555.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02556.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02556.java index 8f3ce36667..66fe4e5aba 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02556.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02556.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02557.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02557.java index 314d677a37..03b2b44804 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02557.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02557.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02558.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02558.java index c56fe90887..5396872068 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02558.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02558.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02559.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02559.java index 6a437488c9..1ce647d82c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02559.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02559.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -69,7 +69,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr try { java.net.URI fileURI = new java.net.URI("file:" + startURIslashes - + org.owasp.benchmark.helpers.Utils.testfileDir.replace('\\', '/').replace(' ', '_') + bar); + + org.owasp.benchmark.helpers.Utils.TESTFILES_DIR.replace('\\', '/').replace(' ', '_') + bar); java.io.File fileTarget = new java.io.File(fileURI); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02560.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02560.java index 296761e88f..da31ff10af 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02560.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02560.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02561.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02561.java index 453a3a0d4e..e54123cfc2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02561.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02561.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02562.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02562.java index 02811ad530..beebd12cdc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02562.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02562.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02563.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02563.java index cdfe4df29d..6a03552035 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02563.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02563.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName),false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02564.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02564.java index 408ecafe56..4d6e3a3def 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02564.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02564.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(new java.io.File(fileName),false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02565.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02565.java index e4d7425609..4634d8e483 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02565.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02565.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -59,38 +59,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02566.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02566.java index 79f01bba8b..6ddb7adb29 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02566.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02566.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -59,38 +59,25 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = null; - java.io.FileOutputStream fos = null; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; - try { + try ( // Create the file first so the test won't throw an exception if it doesn't exist. // Note: Don't actually do this because this method signature could cause a tool to find THIS file constructor // as a vuln, rather than the File signature we are trying to actually test. // If necessary, just run the benchmark twice. The 1st run should create all the necessary files. - //new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir + bar).createNewFile(); + //new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar).createNewFile(); - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; - - java.io.FileInputStream fileInputStream = new java.io.FileInputStream(fileName); - java.io.FileDescriptor fd = fileInputStream.getFD(); - fos = new java.io.FileOutputStream(fd); + java.io.FileOutputStream fos = new java.io.FileOutputStream( + new java.io.FileInputStream(fileName).getFD()); + ) { response.getWriter().println( "Now ready to write to file: " + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileName) ); } catch (Exception e) { System.out.println("Couldn't open FileOutputStream on file: '" + fileName + "'"); -// System.out.println("File exception caught and swallowed: " + e.getMessage()); - } finally { - if (fos != null) { - try { - fos.close(); - fos = null; - } catch (Exception e) { - // we tried... - } - } } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02567.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02567.java index c3ccb481bb..b773e9d23a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02567.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02567.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02568.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02568.java index 639285aff4..70ff07038e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02568.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02568.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02569.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02569.java index 27b8696fa4..536b524f98 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02569.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02569.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -63,7 +63,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02570.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02570.java index 3dc878bf31..3af2ed2cf0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02570.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02570.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -59,7 +59,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String bar = doSomething(request, param); - String fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + String fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; java.io.InputStream is = null; try { diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02573.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02573.java index 8881128fcc..39fe99cc90 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02573.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02573.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02574.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02574.java index 665baac24f..10fbd1bbc8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02574.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02574.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02575.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02575.java index 97ee093295..7320a8b1cc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02575.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02575.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02576.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02576.java index d8146dc5a6..23069ba985 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02576.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02576.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -79,7 +79,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02577.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02577.java index a684eed747..a458becc3f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02577.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02577.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -82,7 +82,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02578.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02578.java index ff71575a38..3590f37390 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02578.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02578.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02579.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02579.java index 15ef525194..5112a2cc5f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02579.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02579.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02580.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02580.java index d791659bb5..28c3644d35 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02580.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02580.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02581.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02581.java index 0f3aa8033e..dcc7390fe9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02581.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02581.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02582.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02582.java index 31ab0deb7c..264d268571 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02582.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02582.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02583.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02583.java index f11ef55ed7..f086af4211 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02583.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02583.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02584.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02584.java index 5d41a3b08a..ff1d5d6e74 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02584.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02584.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02585.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02585.java index 7b16dea2ac..0a78e07682 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02585.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02585.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02586.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02586.java index 5b1ed98f93..49f1d633c2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02586.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02586.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02587.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02587.java index ffb8198acb..263f9a570e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02587.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02587.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02588.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02588.java index 87276a17cb..5e0281c86e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02588.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02588.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02589.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02589.java index dcb00e905e..7afd614ec3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02589.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02589.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02590.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02590.java index 72f1ead213..75079cda2a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02590.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02590.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02591.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02591.java index d82b110edb..0ee6f7fc5e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02591.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02591.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02592.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02592.java index 01dd2dbaa5..f17385fc42 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02592.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02592.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02593.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02593.java index 549a4c4e3d..19ac4ad951 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02593.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02593.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02594.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02594.java index 0a695d5498..427902d5e0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02594.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02594.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02595.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02595.java index 4378fb79b1..71d5a3bd09 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02595.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02595.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02596.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02596.java index 01237e03d9..d60a0ed2db 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02596.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02596.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02597.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02597.java index d30539f500..2b7d8c1739 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02597.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02597.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02598.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02598.java index 23e622cdb9..0e0933f2bf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02598.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02598.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02599.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02599.java index 1ff3008c11..33079d823c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02599.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02599.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02600.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02600.java index 0401447f0b..4a6344d4e1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02600.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02600.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02601.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02601.java index 820ba706cb..bb83432113 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02601.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02601.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02607.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02607.java index 59faafe3eb..b3f36362f9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02607.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02607.java @@ -75,9 +75,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02608.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02608.java index 883d200fe2..ab3534e6ce 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02608.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02608.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02609.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02609.java index 8818581ac6..687e4a11de 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02609.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02609.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02610.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02610.java index 21a62172d9..6871a48d58 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02610.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02610.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02611.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02611.java index 4836318e39..383546ed5d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02611.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02611.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02612.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02612.java index a453ab6d87..2e288eda11 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02612.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02612.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02613.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02613.java index efb843c885..c069e65bdb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02613.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02613.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02622.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02622.java index 274b44e671..f5c8f04a3c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02622.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02622.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02623.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02623.java index fa4ac326ac..f825e8f07e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02623.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02623.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02624.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02624.java index bb50b19d0e..de489e713d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02624.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02624.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02625.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02625.java index bb0efd63a8..1e8a5288ad 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02625.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02625.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02626.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02626.java index d15bf5cb98..0ffd0555e4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02626.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02626.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02627.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02627.java index bedf1d9281..59ab9f3145 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02627.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02627.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02628.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02628.java index c2b29ba3a0..452d0a8286 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02628.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02628.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02629.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02629.java index bb3046803d..aa3c294942 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02629.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02629.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02630.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02630.java index 6a066cfd27..81421f1c7e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02630.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02630.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02631.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02631.java index d6fafe94cf..27e39c01a5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02631.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02631.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02632.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02632.java index d6e3594766..26f0d7648b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02632.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02632.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02633.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02633.java index a40bc01f87..67eadc00ae 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02633.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02633.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02634.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02634.java index 7528a3e8d2..b251773dfb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02634.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02634.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02635.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02635.java index 52ac045f8d..5b3a8e5c84 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02635.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02635.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02636.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02636.java index 4337239196..81b18097dc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02636.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02636.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02637.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02637.java index d13eebdcf4..e8fca5754c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02637.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02637.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02638.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02638.java index ec7741b87a..65aa75c35b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02638.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02638.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02639.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02639.java index 89be95cfbc..3294320e6e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02639.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02639.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02640.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02640.java index 2d0061f8df..fa236dbcdb 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02640.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02640.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02641.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02641.java index 555bfc46c7..eddaeb4d5c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02641.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02641.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02642.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02642.java index beba239de8..6b2e28c403 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02642.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02642.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,7 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02643.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02643.java index 6c8bd4e85b..e13c8c88e9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02643.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02643.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -61,7 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02644.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02644.java index 618cba974e..9e960a0e54 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02644.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02644.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02645.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02645.java index 8e8dccbf21..fcc11ffa87 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02645.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02645.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02646.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02646.java index 86b531bc83..d3f13d47bf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02646.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02646.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02647.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02647.java index fbdbb98c5e..1222e68eb5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02647.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02647.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02648.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02648.java index ce1f4a6c44..8ce9c64a6a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02648.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02648.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02649.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02649.java index dff893f897..9769f5a717 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02649.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02649.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02650.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02650.java index 9be46353e7..6b38f8d1b2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02650.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02650.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02651.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02651.java index 0ba41b2f35..7fec5fcfc1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02651.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02651.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02652.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02652.java index 542d0de443..3a4e7fa59f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02652.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02652.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02653.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02653.java index 1f4d998bac..e543cd445c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02653.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02653.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02654.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02654.java index f63dc27b86..18cb9082d8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02654.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02654.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02655.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02655.java index dd8b4e9e4f..b2f95f6f5d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02655.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02655.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02656.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02656.java index c65cce63f3..8bc3ccdcc1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02656.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02656.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02657.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02657.java index 40c4e26298..10ceedb0f3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02657.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02657.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02658.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02658.java index 778ff117a3..5a921b57b7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02658.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02658.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal( input ); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02659.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02659.java index 9f6c830c64..992541f146 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02659.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02659.java @@ -84,7 +84,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02660.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02660.java index dd81278e4f..15323966c4 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02660.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02660.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02661.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02661.java index a1a969ccd5..420ca31fb8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02661.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02661.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -81,7 +81,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02662.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02662.java index 4315f3c766..8bdfd47842 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02662.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02662.java @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02663.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02663.java index 88bdab919c..fb2364763a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02663.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02663.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = c.doFinal(input); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("secret_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02664.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02664.java index 792d4f8516..de89061db0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02664.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02664.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02665.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02665.java index 5f8cc451b8..b1cdffc410 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02665.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02665.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -49,7 +49,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(new java.io.File(fileName)); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02666.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02666.java index 6441343707..17a0118f21 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02666.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02666.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -49,7 +49,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02667.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02667.java index 3f7850a796..14a71dd3af 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02667.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02667.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -49,7 +49,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileInputStream fis = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fis = new java.io.FileInputStream(fileName); byte[] b = new byte[1000]; int size = fis.read(b); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02668.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02668.java index b253104aa8..d46530e67d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02668.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02668.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -49,7 +49,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName, false); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02669.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02669.java index 2291368c8d..f861b157f1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02669.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02669.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -49,7 +49,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr java.io.FileOutputStream fos = null; try { - fileName = org.owasp.benchmark.helpers.Utils.testfileDir + bar; + fileName = org.owasp.benchmark.helpers.Utils.TESTFILES_DIR + bar; fos = new java.io.FileOutputStream(fileName); response.getWriter().println( diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02670.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02670.java index 5b43f5e802..f6a18003cf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02670.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02670.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02671.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02671.java index 4b959304ae..1c575c3f2b 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02671.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02671.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02672.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02672.java index 8242378f45..feab434e5d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02672.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02672.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02673.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02673.java index bdb2dcec54..bf0dc80c5a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02673.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02673.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -73,7 +73,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02674.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02674.java index 9db9a01075..9fa4404521 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02674.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02674.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -65,7 +65,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02675.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02675.java index c87ab226f6..8a2fbc616f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02675.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02675.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -65,7 +65,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02676.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02676.java index bb9de93ed1..63bd84425f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02676.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02676.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -65,7 +65,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02677.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02677.java index e1b7ce62a3..3c33289b3c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02677.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02677.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02678.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02678.java index d940200725..4c58a12649 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02678.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02678.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -68,7 +68,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr byte[] result = md.digest(); java.io.File fileTarget = new java.io.File( - new java.io.File(org.owasp.benchmark.helpers.Utils.testfileDir),"passwordFile.txt"); + new java.io.File(org.owasp.benchmark.helpers.Utils.TESTFILES_DIR),"passwordFile.txt"); java.io.FileWriter fw = new java.io.FileWriter(fileTarget,true); //the true will append the new data fw.write("hash_value=" + org.owasp.esapi.ESAPI.encoder().encodeForBase64(result, true) + "\n"); fw.close(); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02679.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02679.java index 96494c8fb9..fddbcd486c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02679.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02679.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02680.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02680.java index fb178533f3..8d6503ce35 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02680.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02680.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02681.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02681.java index 911629c2c0..3ff0eb0a87 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02681.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02681.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02682.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02682.java index b2a4f82415..de4d8ea701 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02682.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02682.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02683.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02683.java index a2f66a743f..6ad3265051 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02683.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02683.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02684.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02684.java index 901b95e7d3..ff25dc5556 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02684.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02684.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02685.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02685.java index 65de86e92e..2dbc42e4bd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02685.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02685.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02686.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02686.java index 20799e3ce8..5d7166b5b2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02686.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02686.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02687.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02687.java index 82b5679d59..a8159204c7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02687.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02687.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02688.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02688.java index 708c91ad03..89b9541d09 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02688.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02688.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02689.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02689.java index 46aad12b4d..1252b2e939 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02689.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02689.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02690.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02690.java index 7159c4a76b..142ff18560 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02690.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02690.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02691.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02691.java index 64d18d64e3..c572c27583 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02691.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02691.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02692.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02692.java index 2726dc9726..053fa38484 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02692.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02692.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02693.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02693.java index 0d89d2167a..2d0c7a1189 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02693.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02693.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02694.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02694.java index a9c55c5232..e995ed8d44 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02694.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02694.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02695.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02695.java index f69ce42e2e..e3b907bc19 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02695.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02695.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02696.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02696.java index 8ae23701d1..edcac9ec87 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02696.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02696.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02697.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02697.java index af6592951c..5648d9fccc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02697.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02697.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02698.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02698.java index 20edc1b8da..b7c52d27a7 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02698.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02698.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02699.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02699.java index 8689e00830..3b0a3702dc 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02699.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02699.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02711.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02711.java index 8b2211d524..6d59451e13 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02711.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02711.java @@ -61,9 +61,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr } if ("".equals(str)) str="No cookie value supplied"; javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str); - // Note: Can't jam in SameSite attribute into cookie like this because the ; char - // in the cookie value gets rejected by the new Cookie() method. -// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict"); cookie.setSecure(true); cookie.setHttpOnly(true); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02712.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02712.java index 0f67e9ec4b..8c896906a5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02712.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02712.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02713.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02713.java index e1b7a88325..37ae2e68f2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02713.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02713.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02714.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02714.java index 506a95e467..d40f564ae2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02714.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02714.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02722.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02722.java index 955d16d7bd..f692699ac5 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02722.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02722.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02723.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02723.java index f256492d88..a7420ee1ce 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02723.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02723.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02724.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02724.java index d1c19fc142..0123ce21df 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02724.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02724.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02725.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02725.java index 247a866519..afbd1f3633 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02725.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02725.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02726.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02726.java index 0141d428fb..e5ca2e616d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02726.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02726.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02727.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02727.java index 837d37423c..86d02d549d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02727.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02727.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02728.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02728.java index 1d66a1555c..3d2d030209 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02728.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02728.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02729.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02729.java index 3a9824079f..5a7c953206 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02729.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02729.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02730.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02730.java index ce7489c764..dbc6037a4a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02730.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02730.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02731.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02731.java index 453692bcf9..65f5b925ca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02731.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02731.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02732.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02732.java index 2e755db028..cc7721d356 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02732.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02732.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02733.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02733.java index 8ff5a03f21..a420b71ae9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02733.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02733.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -47,7 +47,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT * from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.List list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); + java.util.List> list = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForList(sql); response.getWriter().println( "Your results are:
" ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02736.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02736.java index 812ee77c2b..c2cb3b2b12 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02736.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02736.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ @@ -47,7 +47,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr String sql = "SELECT TOP 1 userid from USERS where USERNAME='foo' and PASSWORD='" + bar + "'"; try { - java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); + java.util.Map results = org.owasp.benchmark.helpers.DatabaseHelper.JDBCtemplate.queryForMap(sql); response.getWriter().println( "Your results are: " ); diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02737.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02737.java index 27071a20ea..487e391bd0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02737.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02737.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02738.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02738.java index 097b466ff0..eb511df757 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02738.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02738.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02739.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02739.java index 4ddd0920cf..f29f62c9d2 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02739.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02739.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02740.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02740.java index d149ad079a..99f2827f81 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02740.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02740.java @@ -3,7 +3,7 @@ * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see -* https://www.owasp.org/index.php/Benchmark. +* https://owasp.org/www-project-benchmark/. * * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, version 2. @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* @author Nick Sanidas Aspect Security +* @author Nick Sanidas * @created 2015 */ From 4a7cb9acc2c700d414f9900eb2c1479e35d0a12f Mon Sep 17 00:00:00 2001 From: davewichers Date: Tue, 8 Dec 2020 21:36:06 -0500 Subject: [PATCH 78/92] Remove some legacy code and update constants to use ALLCAPS and make them properly configuraable where appropriate. --- .../benchmark/helpers/PropertiesManager.java | 95 ++++------- .../org/owasp/benchmark/helpers/Utils.java | 11 +- .../filters/StatusCodeResponseFilter.java | 7 +- .../owasp/benchmark/score/BenchmarkScore.java | 20 ++- .../org/owasp/benchmark/score/WriteTime.java | 157 ++++-------------- .../score/parsers/SonarQubeReader.java | 2 +- .../score/parsers/TestCaseResult.java | 2 +- .../owasp/benchmark/score/report/Report.java | 2 +- .../benchmark/score/report/ScatterHome.java | 3 +- .../benchmark/score/report/ScatterTools.java | 3 +- .../benchmark/score/report/ScatterVulns.java | 3 +- 11 files changed, 89 insertions(+), 216 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/helpers/PropertiesManager.java b/src/main/java/org/owasp/benchmark/helpers/PropertiesManager.java index f93cf930d4..d5a737d27b 100644 --- a/src/main/java/org/owasp/benchmark/helpers/PropertiesManager.java +++ b/src/main/java/org/owasp/benchmark/helpers/PropertiesManager.java @@ -26,116 +26,77 @@ import java.util.Properties; public class PropertiesManager { - private String propertiesFileName = null; private File file = null; - private boolean isExternalFile = false; + // This loads the default benchmark.properties file public PropertiesManager() { - propertiesFileName = "benchmark.properties"; - file = Utils.getFileFromClasspath(propertiesFileName, this.getClass().getClassLoader()); + file = Utils.getFileFromClasspath("benchmark.properties", this.getClass().getClassLoader()); } + // This can be used to load an alternate properties file specified by the fileName public PropertiesManager(String fileName) { - propertiesFileName = fileName; - file = Utils.getFileFromClasspath(propertiesFileName, this.getClass().getClassLoader()); + file = Utils.getFileFromClasspath(fileName, this.getClass().getClassLoader()); } + // This can be used to load an alternate properties file specified by the path and fileName public PropertiesManager(String path, String fileName) { - isExternalFile = true; - propertiesFileName = fileName; file = new File(path + File.separator + fileName); if (!file.exists()) { try { file.createNewFile(); } catch (IOException e) { - System.out.println("Problem creating new properties file."); + System.out.println("Problem creating new empty properties file: " + file.getAbsolutePath()); } } } public void displayProperties() { - Properties props = new Properties(); - InputStream is = null; - try { - is = this.getClass().getClassLoader().getResourceAsStream(propertiesFileName); - props.load(is); - } catch (Exception e) { - } + Properties props = loadProperties(); System.out.println(props.keySet()); System.out.println(props.values()); } public String getProperty(String key, String defaultValue) { - Properties props = new Properties(); - InputStream is = null; - try { - if (isExternalFile) { - is = new FileInputStream(file); - } else { - is = this.getClass().getClassLoader().getResourceAsStream(propertiesFileName); - } - props.load(is); - } catch (Exception e) { - } - + Properties props = loadProperties(); return props.getProperty(key, defaultValue); } public int getProperty(String key, int defaultValue) { - Properties props = new Properties(); - InputStream is = null; - try { - if (isExternalFile) { - is = new FileInputStream(file); - } else { - is = this.getClass().getClassLoader().getResourceAsStream(propertiesFileName); - } - props.load(is); - } catch (Exception e) { - } - + Properties props = loadProperties(); return Integer.parseInt(props.getProperty(key, Integer.toString(defaultValue))); } public void saveProperty(String key, String value) { - InputStream in = null; - try { - if (isExternalFile) { - in = new FileInputStream(file); - } else { - in = this.getClass().getClassLoader().getResourceAsStream(propertiesFileName); - } - Properties props = new Properties(); - props.load(in); - in.close(); - - FileOutputStream out = new FileOutputStream(file); + Properties props = loadProperties(); + try ( FileOutputStream out = new FileOutputStream(file) ) { props.setProperty(key, value); props.store(out, null); - out.close(); - } catch (Exception e) { + } catch (IOException e) { System.out.println("There was a problem saving a property in the properties file"); + e.printStackTrace(); } } public void removeProperty(String key) { - InputStream in = null; - try { - in = this.getClass().getClassLoader().getResourceAsStream(propertiesFileName); - - Properties props = new Properties(); - props.load(in); - in.close(); - - FileOutputStream out = new FileOutputStream(file); + Properties props = loadProperties(); + try ( FileOutputStream out = new FileOutputStream(file) ) { props.remove(key); props.store(out, null); - out.close(); - } catch (Exception e) { + } catch (IOException e) { System.out.println("There was a problem removing a property from the properties file"); + e.printStackTrace(); } - } -} \ No newline at end of file + private Properties loadProperties() { + Properties props = new Properties(); + try ( InputStream is = new FileInputStream(file) ) { + props.load(is); + } catch (IOException e) { + System.out.println("Error loading properties file"); + e.printStackTrace(); + } + return props; + } +} diff --git a/src/main/java/org/owasp/benchmark/helpers/Utils.java b/src/main/java/org/owasp/benchmark/helpers/Utils.java index bea5637c9b..bfab05a048 100644 --- a/src/main/java/org/owasp/benchmark/helpers/Utils.java +++ b/src/main/java/org/owasp/benchmark/helpers/Utils.java @@ -85,12 +85,16 @@ public class Utils { // Properties used by the generated test suite - public static final String USERDIR = System.getProperty("user.dir"); + public static final String USERDIR = System.getProperty("user.dir") + File.separator; // A 'test' directory that target test files are created in so test cases can use them - public static final String TESTFILES_DIR = USERDIR + File.separator + "testfiles" + File.separator; + public static final String TESTFILES_DIR = USERDIR + "testfiles" + File.separator; + + public static final String DATA_DIR = USERDIR + "data" + File.separator; + + public static final String RESOURCES_DIR = USERDIR + "src" + File.separator + "main" + File.separator + + "resources" + File.separator; - public static final String DATA_DIR = USERDIR + File.separator + "data" + File.separator; // This constant is used by some of the generated Java test cases public static final Set commonHeaders = new HashSet<>(Arrays.asList("host", "user-agent", "accept", @@ -143,7 +147,6 @@ public class Utils { System.out.println("Problem while changing executable permissions: " + e.getMessage()); } } - } public static String getCookie( HttpServletRequest request, String paramName ) { diff --git a/src/main/java/org/owasp/benchmark/helpers/filters/StatusCodeResponseFilter.java b/src/main/java/org/owasp/benchmark/helpers/filters/StatusCodeResponseFilter.java index 9dd2a85fe3..5cc4db5112 100644 --- a/src/main/java/org/owasp/benchmark/helpers/filters/StatusCodeResponseFilter.java +++ b/src/main/java/org/owasp/benchmark/helpers/filters/StatusCodeResponseFilter.java @@ -30,12 +30,15 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.owasp.benchmark.helpers.PropertiesManager; import org.owasp.benchmark.helpers.Utils; import org.owasp.benchmark.score.BenchmarkScore; public class StatusCodeResponseFilter implements Filter { protected FilterConfig config; private static final String STATUSCODE_PATH_FILE = Utils.DATA_DIR + "crawlerStatusCodes.txt"; + private static final String TESTCASENAME = new PropertiesManager().getProperty("testsuite", "Benchmark") + + BenchmarkScore.TEST; @Override public void init(FilterConfig config) throws ServletException { @@ -59,9 +62,9 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha response.getWriter().write(text); } else { HttpServletRequest req = (HttpServletRequest) request; - if (req.getRequestURL().toString().contains(BenchmarkScore.TESTCASENAME)) { + if (req.getRequestURL().toString().contains(TESTCASENAME)) { String line = req.getRequestURL() + "," + hsr.getStatus(); - // System.out.println("Linea a escribir: " + line); + // System.out.println("Line to write: " + line); Utils.writeLineToFile(Paths.get(Utils.DATA_DIR), STATUSCODE_PATH_FILE, line); } // System.out.println("empty response"); diff --git a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java index bf16e2548f..b0be7cfa57 100644 --- a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java +++ b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java @@ -50,6 +50,7 @@ import org.apache.commons.io.FileUtils; import org.json.JSONObject; +import org.owasp.benchmark.helpers.Utils; import org.owasp.benchmark.score.parsers.AcunetixReader; import org.owasp.benchmark.score.parsers.AppScanDynamicReader; import org.owasp.benchmark.score.parsers.AppScanDynamicReader2; @@ -107,12 +108,14 @@ public class BenchmarkScore { - public static String TESTSUITEVERSION = null; + // This value is pulled from the expected results file being processed + public static String TESTSUITEVERSION; - // TODO: Make next 3 configurable values (via command line) - // Prefixes for generated test suites and file names. Used by lots of other classes too. + // TODO: Make next 3 configurable values (via command line or expected results file when invoking scorecard generation) + // Prefixes for generated test suites and file names. Used by lots of other classes for scorecard generation. public static final String TESTSUITE = "Benchmark"; - public static final String TESTCASENAME = TESTSUITE + "Test"; + public static final String TEST = "Test"; + public static final String TESTCASENAME = TESTSUITE + TEST; // The # of numbers in a test case name. Must match what is actually generated. public static final int TESTIDLENGTH = 5; @@ -120,7 +123,8 @@ public class BenchmarkScore { // TODO: Move to static initializer so these filenames can be changed during startup private static final String GUIDEFILENAME = "OWASP_Benchmark_Guide.html"; private static final String HOMEFILENAME = "OWASP_Benchmark_Home.html"; - public static final String PATHTOSCORECARDRESOURCES = "src/main/resources/scorecard/"; + public static final String PATHTOSCORECARDRESOURCES = Utils.RESOURCES_DIR + "scorecard" + File.separator; + // scorecard dir normally created under current user directory public static final String scoreCardDirName = "scorecard"; private static final String TESTSUITE_VERSION_PREFIX = BenchmarkScore.TESTSUITE + " version: "; @@ -1465,6 +1469,12 @@ private static void updateMenus(Set toolResults, Set catSet ) { updateMenuTemplates( toolmenu, vulnmenu ); } + // A utility method for providing a more descriptive test suite name than the base, single word, + // test suite name. + public static String fullTestSuiteName(String suite) { + return ("Benchmark".equals(suite) ? "OWASP Benchmark" : suite); + } + private static void updateMenuTemplates( String toolmenu, String vulnmenu ) { File root = new File( scoreCardDirName ); for ( File f : root.listFiles() ) { diff --git a/src/main/java/org/owasp/benchmark/score/WriteTime.java b/src/main/java/org/owasp/benchmark/score/WriteTime.java index eeba0b5b9f..584a17fd8b 100644 --- a/src/main/java/org/owasp/benchmark/score/WriteTime.java +++ b/src/main/java/org/owasp/benchmark/score/WriteTime.java @@ -22,20 +22,11 @@ import java.io.File; import java.io.FileInputStream; import java.io.FileReader; -import java.io.IOException; -import java.io.InputStreamReader; -import java.net.HttpURLConnection; -import java.net.URISyntaxException; -import java.net.URL; import java.util.List; -import java.util.Properties; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; -import org.json.JSONArray; -import org.json.JSONObject; -import org.json.XML; import org.owasp.benchmark.helpers.PropertiesManager; import org.owasp.benchmark.helpers.Utils; import org.owasp.benchmark.score.parsers.Reader; @@ -54,8 +45,6 @@ public static void main(String[] args) throws Exception { // findbugs // mvn clean compile -Pfindsecbugs -Dbuildtime.output.csv=true // -Dbuildtime.output.csv.file=classes\out.csv - // sonar - // mvn sonar:sonar -Dbuildtime.output.csv=true // spotbugs // mvn spotbugs:spotbugs -Dbuildtime.output.csv=true // -Dbuildtime.output.csv.file=classes\out.csv @@ -64,18 +53,13 @@ public static void main(String[] args) throws Exception { String csvToolName = ""; if (args.length < 1) { System.out.println("Please provide the name of the tool.\n" - + "Currently supported: PMD (pmd), FindBugs (findbugs), FindSecBugs (findbugs), SonarQube (sonar), and SpotBugs (spotbugs)."); + + "Currently supported: PMD (pmd), FindBugs (findbugs), FindSecBugs (findbugs), and SpotBugs (spotbugs)."); } else { toolName = args[0]; } //System.out.println("Tool: " + toolName); - PropertiesManager propM = new PropertiesManager(); WriteFiles wf = new WriteFiles(); - if (toolName.contains("sonar")) { // We need to generate the results - // file from the webService - wf.writeSonarResults(); - } switch (toolName) { case "crawler": @@ -91,37 +75,30 @@ public static void main(String[] args) throws Exception { case "pmd": csvToolName = "pmd"; break; - case "sonar": - csvToolName = "sonar"; - break; default: System.out.println(toolName + " is not one of the supported tools for mvn validate -Ptime, provided by score/WriteTime.java"); return; } + // We use the benchmark.properties file as a temporary place to write out the tool name and + // execution times for these plugins tested via this main method + PropertiesManager propM = new PropertiesManager(); propM.saveProperty(toolName, wf.getToolTime(csvToolName)); - propM.saveProperty("benchmark-version", wf.getbenchmarkVersion()); // - // propM.displayProperties(); - wf.deletePreviousResults(toolName, wf.getVersionNumber(toolName), - propM.getProperty("benchmark-version", "")); + wf.deletePreviousResults(toolName, wf.getVersionNumber(toolName), propM.getProperty("testsuite-version", "")); - wf.resultsFileName(toolName, - propM.getProperty("benchmark-version", ""), - propM.getProperty(toolName, ""), wf.getVersionNumber(toolName)); + wf.resultsFileName(toolName, propM.getProperty("testsuite-version", ""), propM.getProperty(toolName, ""), + wf.getVersionNumber(toolName)); } } class WriteFiles { - private static final String USER_AGENT = "Mozilla/5.0"; +// private static final String USER_AGENT = "Mozilla/5.0"; private static final String CSV_TIMES_FILE = "out.csv"; - private static final String VERSION_FILE = "benchmark.properties"; private static final String CONTRAST_FILE = "Benchmark_"; private static final String FINDBUGS_FILE = "target/findbugsXml.xml"; private static final String PMD_FILE = "target/pmd.xml"; - private static final String SONAR_FILE = "target/sonarqube.xml"; - private static final String SONAR_URL = "http://localhost:9000"; private static final String SPOTBUGS_FILE = "target/spotbugsXml.xml"; public String getVersionNumber(String toolName) { @@ -155,8 +132,6 @@ public String getVersionNumber(String toolName) { doc = docBuilder.parse(is); root = doc.getDocumentElement(); return Reader.getAttributeValue("version", root); - case "sonar": - return getSonarVersion(SONAR_URL + "/api/server/version"); } } catch (Exception e) { System.out.println("An error occurred during results file parsing: " + e.getMessage()); @@ -165,34 +140,19 @@ public String getVersionNumber(String toolName) { } public static String getLine(File file, String toFind, boolean nextLine) { - BufferedReader br = null; - try { - br = new BufferedReader(new FileReader(file)); + + try ( BufferedReader br = new BufferedReader(new FileReader(file)) ) { String line = ""; while (line.equals("")) { line = br.readLine(); if (line.contains(toFind)) { - if (nextLine) { - return br.readLine(); - } else { - return line; - } - } else { - line = ""; - } + if (nextLine) return br.readLine(); + else return line; + } else line = ""; } // System.out.println(line.trim().replace(" ", "")); } catch (Exception e) { System.out.println("Error"); - } finally { - try { - if (br != null) - br.close(); - } catch (IOException e) { - System.out.println("Can't close filereader for file: " - + file.getAbsolutePath() + " for some reason."); - e.toString(); - } } return ""; } @@ -211,8 +171,7 @@ public static void listPathFiles(String path) { } } - public void deletePreviousResults(String toolName, String toolVersion, - String benchmarkVersion) { + public void deletePreviousResults(String toolName, String toolVersion, String benchmarkVersion) { if (!toolName.equals("")) { File targetDir = new File("results/"); if (targetDir.exists()) { @@ -231,8 +190,7 @@ public void deletePreviousResults(String toolName, String toolVersion, } } - public void resultsFileName(String tool, String benchmarkVersion, - String times, String toolVersion) { + public void resultsFileName(String tool, String benchmarkVersion, String times, String toolVersion) { String name = "results/Benchmark_" + benchmarkVersion + "-" + tool + "-v" + toolVersion + "-" + times + ".xml"; File file = null; @@ -256,12 +214,6 @@ public void resultsFileName(String tool, String benchmarkVersion, file.renameTo(new File(name)); } break; - case "sonar": - file = new File(SONAR_FILE); - if (file.exists()) { - file.renameTo(new File(name)); - } - break; case "findsecbugs": // findsecbugs now runs with spotbugs, not findbugs case "spotbugs": file = new File(SPOTBUGS_FILE); @@ -270,52 +222,14 @@ public void resultsFileName(String tool, String benchmarkVersion, } break; case "crawler": - file = new File("results/" + getFindFile("results", CONTRAST_FILE + benchmarkVersion + "-Contrast")); + file = new File("results/" + findFile("results", CONTRAST_FILE + benchmarkVersion + "-Contrast")); if (file.exists()) { file.renameTo(new File("results/" + file.getName().replace(".zip", "-" + times + ".zip"))); } break; } } - - public void writeSonarResults() { - - int page = 1; - int total = 1; - JSONArray issues = new JSONArray(); - JSONObject json = null; - - try { - while (issues.length() < total && page <= 20) { - json = new JSONObject(getSonarResults(SONAR_URL + "/api/issues/search?resolved=false&ps=500&p=" + page)); - total = (int) json.get("total"); - - JSONArray issueSubset = json.getJSONArray("issues"); - for (int i = 0; i < issueSubset.length(); i++) { - issues.put(issueSubset.get(i)); - } - page++; - } - - json.put("issues", issues); - - String xml = XML.toString(json); - java.io.FileWriter fw = new java.io.FileWriter(SONAR_FILE); - fw.write(xml); - fw.close(); - } catch (Exception e) { - System.out.println("There was an error while writing SonarQube results."); - } - } - - public static String getSonarVersion(String sonarURL) { - return getHttpResponse(sonarURL, "There was an error trying to retrieve SonarQube version."); - } - - public static String getSonarResults(String sonarURL){ - return getHttpResponse(sonarURL, "There was an error trying to retrieve SonarQube results."); - } - +/* public static String getHttpResponse(String url, String errorMessege) { StringBuffer response = new StringBuffer(); try { @@ -337,16 +251,15 @@ public static String getHttpResponse(String url, String errorMessege) { } return response.toString(); } - +*/ public String getToolTime(String toolName) { - String[] results = new String[3]; - String time = null; + List lines = Utils.getLinesFromFile(Utils.getFileFromClasspath( CSV_TIMES_FILE, this.getClass().getClassLoader())); for (String i : lines) { if (i.contains(toolName)) { - results = i.split(";"); - time = results[2].replaceAll("\"", ""); + String[] results = i.split(";"); // This is always expected to be a 3 element array + String time = results[2].replaceAll("\"", ""); // System.out.println(time.split("\\.")[0]); return time.split("\\.")[0]; } @@ -355,28 +268,14 @@ public String getToolTime(String toolName) { } /** - * Gets the current version of the Benchmark from the benchmark.properties file. - * @return The version # (as a String). An empty string if its not defined in that file. - * @throws Exception + * Find the file that starts with 'name' in the folder 'path'. + * @param path - The folder to look in. + * @param name - The name to look for + * @return - The first file found starting with that name, if it exists. */ - public String getbenchmarkVersion() { // throws Exception { - Properties benchMprops = new Properties(); - try { - File propsFile = new File(this.getClass().getClassLoader().getResource(VERSION_FILE).toURI().getPath()); - benchMprops.load(new FileInputStream(propsFile)); - String v = benchMprops.getProperty("benchmark-version"); - if (v == null) return ""; - return v; - } catch (IOException | URISyntaxException e) { - System.out.println("Can't load version # from properties file."); - e.printStackTrace(); - return ""; - } - } - - private String getFindFile(String path, String name) { - File folder = new File(path); - File[] listOfFiles = folder.listFiles(); + private String findFile(String path, String name) { + File[] listOfFiles = new File(path).listFiles(); + if (listOfFiles == null) System.out.println("Specified path is not an existing directory: " + path); for (int i = 0; i < listOfFiles.length; i++) { if (listOfFiles[i].isFile() && listOfFiles[i].getName().startsWith(name)) { diff --git a/src/main/java/org/owasp/benchmark/score/parsers/SonarQubeReader.java b/src/main/java/org/owasp/benchmark/score/parsers/SonarQubeReader.java index a33bcde5b8..c797459f35 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/SonarQubeReader.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/SonarQubeReader.java @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * - * @author Dave Wichers Aspect Security + * @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/score/parsers/TestCaseResult.java b/src/main/java/org/owasp/benchmark/score/parsers/TestCaseResult.java index 505bf3cf79..953c919a08 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/TestCaseResult.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/TestCaseResult.java @@ -12,7 +12,7 @@ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * -* @author Dave Wichers Aspect Security +* @author Dave Wichers * @created 2015 */ diff --git a/src/main/java/org/owasp/benchmark/score/report/Report.java b/src/main/java/org/owasp/benchmark/score/report/Report.java index c0edf909b0..c806d242ea 100644 --- a/src/main/java/org/owasp/benchmark/score/report/Report.java +++ b/src/main/java/org/owasp/benchmark/score/report/Report.java @@ -56,7 +56,7 @@ public Report(TestResults actualResults, Map scores, OverallRes this.toolType = actualResults.toolType; this.testSuiteVersion = actualResults.getTestSuiteVersion(); - String fullTitle = (BenchmarkScore.TESTSUITE.equals("Benchmark") ? "OWASP Benchmark" : BenchmarkScore.TESTSUITE) + String fullTitle = BenchmarkScore.fullTestSuiteName(BenchmarkScore.TESTSUITE) + " Scorecard for " + actualResults.getToolNameAndVersion();// + getToolName() + version; // If not in anonymous mode OR the tool is not commercial, add the type at the end of the name // It's not added to anonymous commercial tools, because it would be redundant. diff --git a/src/main/java/org/owasp/benchmark/score/report/ScatterHome.java b/src/main/java/org/owasp/benchmark/score/report/ScatterHome.java index d6d1f38b27..1e5bbc2e8b 100644 --- a/src/main/java/org/owasp/benchmark/score/report/ScatterHome.java +++ b/src/main/java/org/owasp/benchmark/score/report/ScatterHome.java @@ -346,8 +346,7 @@ private void makeLegend( Set toolResults, double x, double y, XYSeriesCo public static void generateComparisonChart(Set toolResults, String focus ) { try { - String scatterTitle = (BenchmarkScore.TESTSUITE.equals("Benchmark") ? - "OWASP Benchmark " : BenchmarkScore.TESTSUITE) + String scatterTitle = BenchmarkScore.fullTestSuiteName(BenchmarkScore.TESTSUITE) + (BenchmarkScore.mixedMode ? "" : " v" + BenchmarkScore.TESTSUITEVERSION) + " Results Comparison"; ScatterHome scatter = new ScatterHome(scatterTitle, 800, toolResults, focus ); diff --git a/src/main/java/org/owasp/benchmark/score/report/ScatterTools.java b/src/main/java/org/owasp/benchmark/score/report/ScatterTools.java index 9b18b9ec3b..b2c1972f87 100644 --- a/src/main/java/org/owasp/benchmark/score/report/ScatterTools.java +++ b/src/main/java/org/owasp/benchmark/score/report/ScatterTools.java @@ -241,8 +241,7 @@ public static void main(String[] args) throws IOException { or.add("Reflection Injection", 0, 0, 300, 5); or.add("LDAP Injection", .5, 1, 6, 5); or.add("Weak Encryption", .2, .9, 600, 5); - ScatterTools scatter = new ScatterTools((BenchmarkScore.TESTSUITE.equals("Benchmark") ? - "OWASP Benchmark" : BenchmarkScore.TESTSUITE) + ScatterTools scatter = new ScatterTools(BenchmarkScore.fullTestSuiteName(BenchmarkScore.TESTSUITE) + " Results for SomeTool", 800, or); scatter.writeChartToFile(new File("test.png"), 800); System.exit(0); diff --git a/src/main/java/org/owasp/benchmark/score/report/ScatterVulns.java b/src/main/java/org/owasp/benchmark/score/report/ScatterVulns.java index 5c2715c18e..71eb2cea1f 100644 --- a/src/main/java/org/owasp/benchmark/score/report/ScatterVulns.java +++ b/src/main/java/org/owasp/benchmark/score/report/ScatterVulns.java @@ -382,8 +382,7 @@ private void makeLegend(String category, Set toolResults, double x, doub public static ScatterVulns generateComparisonChart(String category, Set toolResults, String focus) { try { - String scatterTitle = (BenchmarkScore.TESTSUITE.equals("Benchmark") ? - "OWASP Benchmark" : BenchmarkScore.TESTSUITE) + String scatterTitle = BenchmarkScore.fullTestSuiteName(BenchmarkScore.TESTSUITE) + (BenchmarkScore.mixedMode ? " -" : " v" + BenchmarkScore.TESTSUITEVERSION) + " " + category + " Comparison"; ScatterVulns scatter = new ScatterVulns(scatterTitle, 800, category, toolResults, focus); From 526355b975a6aa8e3c9d46541c704bffdf1c0479 Mon Sep 17 00:00:00 2001 From: davewichers Date: Wed, 9 Dec 2020 14:15:58 -0500 Subject: [PATCH 79/92] Add parser for SonarQube JSON results pulled via SonarQube WebAPI. --- .../owasp/benchmark/score/BenchmarkScore.java | 17 ++- .../score/parsers/SonarQubeJsonReader.java | 120 ++++++++++++++++++ .../score/parsers/SonarQubeReader.java | 28 ++-- 3 files changed, 150 insertions(+), 15 deletions(-) create mode 100644 src/main/java/org/owasp/benchmark/score/parsers/SonarQubeJsonReader.java diff --git a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java index b0be7cfa57..2737e8a144 100644 --- a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java +++ b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java @@ -48,6 +48,7 @@ import javax.xml.parsers.DocumentBuilderFactory; import org.apache.commons.io.FileUtils; +import org.json.JSONException; import org.json.JSONObject; import org.owasp.benchmark.helpers.Utils; @@ -88,6 +89,7 @@ import org.owasp.benchmark.score.parsers.ShiftLeftReader; import org.owasp.benchmark.score.parsers.SnappyTickReader; import org.owasp.benchmark.score.parsers.SonarQubeReader; +import org.owasp.benchmark.score.parsers.SonarQubeJsonReader; import org.owasp.benchmark.score.parsers.SourceMeterReader; import org.owasp.benchmark.score.parsers.TestCaseResult; import org.owasp.benchmark.score.parsers.TestResults; @@ -697,12 +699,19 @@ else if ( line2 != null && line2.contains("Vendor") && line2.contains("Checkmarx String content = new String(Files.readAllBytes(Paths.get(fileToParse.getPath()))); JSONObject jsonobj = new JSONObject(content); - if (jsonobj.getJSONArray("results") != null) { + try { + jsonobj.getJSONArray("results"); // Throws JSONException if this Node not found. tr = new SemgrepReader().parse( jsonobj ); - } else { - System.out.println("Error: No matching parser found for JSON file: " + filename); + } catch (JSONException e) { + + try { + jsonobj.getJSONArray("issues"); + tr = new SonarQubeJsonReader().parse( fileToParse ); + } catch (JSONException e2) { + System.out.println("Error: No matching parser found for JSON file: " + filename); + } } - } + } } else if ( filename.endsWith( ".sarif" ) ) { diff --git a/src/main/java/org/owasp/benchmark/score/parsers/SonarQubeJsonReader.java b/src/main/java/org/owasp/benchmark/score/parsers/SonarQubeJsonReader.java new file mode 100644 index 0000000000..e447bcb474 --- /dev/null +++ b/src/main/java/org/owasp/benchmark/score/parsers/SonarQubeJsonReader.java @@ -0,0 +1,120 @@ +/** +* OWASP Benchmark Project +* +* This file is part of the Open Web Application Security Project (OWASP) +* Benchmark Project For details, please see +* https://owasp.org/www-project-benchmark/. +* +* The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms +* of the GNU General Public License as published by the Free Software Foundation, version 2. +* +* The OWASP Benchmark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without +* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details +* +* @author Dave Wichers +* @created 2020 +*/ + +package org.owasp.benchmark.score.parsers; + +import java.io.File; +import java.nio.file.Files; +import java.nio.file.Paths; + +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; +import org.owasp.benchmark.score.BenchmarkScore; + +public class SonarQubeJsonReader extends Reader { + + public TestResults parse( File f ) throws Exception { + String content = new String(Files.readAllBytes(Paths.get(f.getPath()))); + + JSONObject obj = new JSONObject(content); + // int version = obj.getInt( "formatVersion" ); + JSONArray arr; + try { + arr = obj.getJSONArray("issues"); + } catch (JSONException e) { + System.out.println("ERROR: Couldn't find 'issues' element in SonarQube JSON results." + + " Maybe not SonarQube results file?" ); + return null; + } + + TestResults tr = new TestResults( "SonarJava", false, TestResults.ToolType.SAST); + + // If the filename includes an elapsed time in seconds (e.g., TOOLNAME-seconds.xml), + // set the compute time on the score card. + tr.setTime(f); + + int numIssues = arr.length(); + for (int i = 0; i < numIssues; i++) + { + TestCaseResult tcr = parseSonarQubeFinding( arr.getJSONObject(i) ); + if ( tcr != null ) { + tr.put( tcr ); + } + } + + return tr; + } + + /** + VULNERABILITY", + "tags":["cwe","owasp-a2","owasp-a6"], + "component":"org.owasp:benchmark:src\/main\/java\/org\/owasp\/benchmark\/testcode\/BenchmarkTest02710.java", + "flows":[], + "textRange":{"endLine":63,"endOffset":34,"startOffset":28,"startLine":63}, + "debt":"5min","key":"AVvEV4Ovf4saFi7UxJTq","status":"OPEN"}, + + {"severity":"CRITICAL", + "updateDate":"2017-05-01T10:07:01-0400", + "componentId":2777, + "line":55,"author":"", + "rule":"squid:S2076", + "project":"org.owasp:benchmark", + "effort":"30min", + "message":"Make sure \"cmd\" is properly sanitized before use in this OS command.", + "creationDate":"2017-05-01T10:07:01-0400", + "type":"VULNERABILITY", + "tags":["cwe","owasp-a1","sans-top25-insecure"], + "component":"org.owasp:benchmark:src\/main\/java\/org\/owasp\/benchmark\/testcode\/BenchmarkTest02713.java", + "flows":[],"textRange":{"endLine":55,"endOffset":26,"startOffset":22,"startLine":55}, + "debt":"30min","key":"AVvEV4Oyf4saFi7UxJTr","status":"OPEN"}, + + **/ + + private TestCaseResult parseSonarQubeFinding(JSONObject finding ) { + try { + TestCaseResult tcr = new TestCaseResult(); + String filename = null; + + filename = finding.getString("component"); + filename = filename.replaceAll( "\\\\", "/"); + filename = filename.substring( filename.lastIndexOf( '/' ) ); + if ( filename.contains( BenchmarkScore.TESTCASENAME ) ) { + String testNumber = filename.substring( BenchmarkScore.TESTCASENAME.length() + 1, + filename.length() - 5 ); + tcr.setNumber( Integer.parseInt( testNumber ) ); + String rule = finding.getString("rule"); + String squid = rule.substring( rule.indexOf(":") + 1 ); + if ( squid == null || squid.equals("none") ) { + return null; + } + int cwe = SonarQubeReader.cweLookup(squid); + tcr.setCWE( cwe ); + tcr.setCategory( finding.getJSONArray("tags").toString() ); + tcr.setEvidence( finding.getString("message") ); + } + + return tcr; + } catch (Exception e ) { + e.printStackTrace(); + } + return null; + } + + // This parser relies on the SQUID # mapping method in SonarQubeReader.cweLookup() +} diff --git a/src/main/java/org/owasp/benchmark/score/parsers/SonarQubeReader.java b/src/main/java/org/owasp/benchmark/score/parsers/SonarQubeReader.java index c797459f35..2f95458389 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/SonarQubeReader.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/SonarQubeReader.java @@ -236,12 +236,14 @@ public static int cweLookup(String squidNumber) { case "S1948" : return 594; //Fields in a"Serializable" class should either be transient or serializable case "S1989" : return 600; //Exceptions should not be thrown from servlet methods case "S2068" : return 259; //Credentials should not be hard-coded - case "S2070" : return 328; //SHA-1 and Message-Digest hash algorithms should not be used - case "S2076" : return 78; //Values passed to OS commands should be sanitized - case "S2077" : return 89; //Values passed to SQL commands should be sanitized - case "S2078" : return 90; //Values passed to LDAP queries should be sanitized + case "S2070" : return 328; //Benchmark Vuln: SHA-1 and Message-Digest hash algorithms should not be used + case "S2076" : return 78; //Benchmark Vuln: Values passed to OS commands should be sanitized + case "S2077" : return 89; //Benchmark Vuln: Values passed to SQL commands should be sanitized + case "S2078" : return 90; //Benchmark Vuln: Values passed to LDAP queries should be sanitized + case "S2083" : return 22; //Benchmark Vuln: I/O function calls should not be vulnerable to path injection attacks case "S2089" : return 293; //HTTP referers should not be relied on - case "S2092" : return 614; //Cookies should be"secure" + case "S2091" : return 643; //Benchmark Vuln: XPath expressions should not be vulnerable to injection attacks + case "S2092" : return 614; //Benchmark Vuln: Cookies should be "secure" case "S2093" : return 0000; //Try-with-resources should be used case "S2095" : return 459; //Resources should be closed case "S2130" : return 0000; //Parsing should be used to convert "Strings" to primitives @@ -253,13 +255,13 @@ public static int cweLookup(String squidNumber) { case "S2184" : return 190; //Math operands should be cast before assignment case "S2222" : return 459; //Locks should be released case "S2225" : return 476; //"toString()" and"clone()" methods should not return null - case "S2245" : return 330; //Pseudorandom number generators (PRNGs) should not be used in secure contexts + case "S2245" : return 330; //Benchmark Vuln: Pseudorandom number generators (PRNGs) should not be used in secure contexts case "S2254" : return 0000; //"HttpServletRequest.getRequestedSessionId()" should not be used - case "S2257" : return 327; //Only standard cryptographic algorithms should be used + case "S2257" : return 327; //Benchmark Vuln: Only standard cryptographic algorithms should be used case "S2259" : return 476; //Null pointers should not be dereferenced case "S2275" : return 0000; //Printf-style format strings should not lead to unexpected behavior at runtime case "S2277" : return 780; //Cryptographic RSA algorithms should always incorporate OAEP (Optimal Asymmetric Encryption Padding) - case "S2278" : return 327; //DES (Data Encryption Standard) and DESede (3DES) should not be used + case "S2278" : return 327; //Benchmark Vuln: DES (Data Encryption Standard) and DESede (3DES) should not be used case "S2293" : return 0000; //The diamond operator ("<>") should be used case "S2384" : return 374; //Mutable members should not be stored or returned directly case "S2386" : return 607; //Mutable fields should not be "public static" @@ -271,6 +273,7 @@ public static int cweLookup(String squidNumber) { case "S2677" : return 0000; //"read" and "readLine" return values should be used case "S2681" : return 483; //Multiline blocks should be enclosed in curly braces case "S2696" : return 0000; //Instance methods should not write to "static" fields + case "S2755" : return 611; //XML parsers should not be vulnerable to XXE attacks case "S2786" : return 0000; //Nested "enum"s should not be declared static case "S2864" : return 0000; //"entrySet()" should be iterated when both the key and value are needed case "S3008" : return 0000; //Static non-final field names should comply with a naming convention @@ -279,21 +282,25 @@ public static int cweLookup(String squidNumber) { case "S3518" : return 369; //Zero should not be a possible denominator case "S3599" : return 0000; //Double Brace Initialization should not be used case "S3626" : return 0000; //Jump statements should not be redundant + case "S3649" : return 89; //Database queries should not be vulnerable to injection attacks case "S3740" : return 0000; //Raw types should not be used case "S3776" : return 0000; //Cognitive Complexity of methods should not be too high case "S3824" : return 0000; //"Map.get" and value test should be replaced with single method call case "S3973" : return 0000; //A conditionally executed single line should be denoted by indentation case "S4042" : return 0000; //"java.nio.Files#delete" should be preferred + case "S4435" : return 611; //XML transformers should be secured case "S4488" : return 0000; //Composed "@RequestMapping" variants should be preferred case "S4719" : return 0000; //"StandardCharsets" constants should be preferred case "S4838" : return 0000; //An iteration on a Collection should be performed on the type handled by the Collection + case "S5131" : return 79; //Endpoints should not be vulnerable to reflected cross-site scripting (XSS) attacks case "S5261" : return 0000; //"else" statements should be clearly matched with an "if" case "S5361" : return 0000; //"String#replace" should be preferred to "String#replaceAll" - case "S5542" : return 327; //Encryption algorithms should be used with secure mode and padding scheme - case "S5547" : return 327; //Cipher algorithms should be robust + case "S5542" : return 327; //Benchmark Vuln: Encryption algorithms should be used with secure mode and padding scheme + case "S5547" : return 327; //Benchmark Vuln: Cipher algorithms should be robust case "CallToDeprecatedMethod": case "ClassVariableVisibilityCheck": + case "DuplicatedBlocks": case "SwitchLastCaseIsDefaultCheck": return 0000; // Don't care. Not sure why these are being returned instead of an S#### value } @@ -301,5 +308,4 @@ public static int cweLookup(String squidNumber) { System.out.println( "Failed to translate " + squidNumber ); return -1; } - } From 3c53b91691c96ea553673740b7d9f3e26583fd5c Mon Sep 17 00:00:00 2001 From: davewichers Date: Mon, 14 Dec 2020 18:01:52 -0500 Subject: [PATCH 80/92] Tweak CSP policy again to allow XSS attacks to work via Referer. --- .../benchmark/helpers/filters/HTTPResponseHeaderFilter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/owasp/benchmark/helpers/filters/HTTPResponseHeaderFilter.java b/src/main/java/org/owasp/benchmark/helpers/filters/HTTPResponseHeaderFilter.java index 1e13f7f114..ada4247917 100644 --- a/src/main/java/org/owasp/benchmark/helpers/filters/HTTPResponseHeaderFilter.java +++ b/src/main/java/org/owasp/benchmark/helpers/filters/HTTPResponseHeaderFilter.java @@ -45,8 +45,11 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha if (response instanceof HttpServletResponse) { HttpServletResponse httpResponse = (HttpServletResponse) response; // Note that setHeader overwrites any existing header already set with the same name. + // The 'unsafe-eval' value was added because Chrome would block XSS attacks via Referers with the error: + // Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed + // source of script in the following Content Security Policy directive: "default-src 'unsafe-inline' 'self'". httpResponse.setHeader("Content-Security-Policy", "frame-ancestors 'self'; form-action 'self'; " + - "default-src 'unsafe-inline' 'self'; style-src 'unsafe-inline' 'self'; style-src-elem 'self' fonts.googleapis.com; " + + "default-src 'unsafe-inline' 'unsafe-eval' 'self'; style-src 'unsafe-inline' 'self'; style-src-elem 'self' fonts.googleapis.com; " + "font-src 'self' fonts.gstatic.com"); // The proper setting for this header is 'private' but DAST tools still complain about it, so // setting it this way even though the app will be slightly slower. From 34d05ce1a2c941bda58595b2971faec9e9fb46ac Mon Sep 17 00:00:00 2001 From: davewichers Date: Tue, 15 Dec 2020 14:01:23 -0500 Subject: [PATCH 81/92] Update recent Contrast tool configuration change to turn on rules off by default that Benchmark needs. --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 04857f712b..6e81c22a3b 100755 --- a/pom.xml +++ b/pom.xml @@ -300,6 +300,7 @@ -Dcontrast.level=debug -Dcontrast.assess.threshold.entries=100000 -Dcontrast.agent.java.standalone_app_name=OWASPBenchmark + -Dcontrast.assess.rules.disabled_rules="autocomplete-missing,cache-controls-missing,clickjacking-control-missing,csrf" 8443 https From 7daeaf2753ab302f7e20aac6d3fc9513c1711bb7 Mon Sep 17 00:00:00 2001 From: davewichers Date: Tue, 15 Dec 2020 15:55:27 -0500 Subject: [PATCH 82/92] Add support for Burp Suite Enterprise JSON results file. --- .../owasp/benchmark/score/BenchmarkScore.java | 27 +++-- .../score/parsers/BurpJsonReader.java | 112 ++++++++++++++++++ 2 files changed, 129 insertions(+), 10 deletions(-) create mode 100644 src/main/java/org/owasp/benchmark/score/parsers/BurpJsonReader.java diff --git a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java index 2737e8a144..4563cd7095 100644 --- a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java +++ b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java @@ -58,6 +58,7 @@ import org.owasp.benchmark.score.parsers.AppScanSourceReader; import org.owasp.benchmark.score.parsers.AppScanSourceReader2; import org.owasp.benchmark.score.parsers.ArachniReader; +import org.owasp.benchmark.score.parsers.BurpJsonReader; import org.owasp.benchmark.score.parsers.BurpReader; import org.owasp.benchmark.score.parsers.CASTAIPReader; import org.owasp.benchmark.score.parsers.CheckmarxESReader; @@ -88,8 +89,8 @@ import org.owasp.benchmark.score.parsers.SemgrepReader; import org.owasp.benchmark.score.parsers.ShiftLeftReader; import org.owasp.benchmark.score.parsers.SnappyTickReader; -import org.owasp.benchmark.score.parsers.SonarQubeReader; import org.owasp.benchmark.score.parsers.SonarQubeJsonReader; +import org.owasp.benchmark.score.parsers.SonarQubeReader; import org.owasp.benchmark.score.parsers.SourceMeterReader; import org.owasp.benchmark.score.parsers.TestCaseResult; import org.owasp.benchmark.score.parsers.TestResults; @@ -708,7 +709,13 @@ else if ( line2 != null && line2.contains("Vendor") && line2.contains("Checkmarx jsonobj.getJSONArray("issues"); tr = new SonarQubeJsonReader().parse( fileToParse ); } catch (JSONException e2) { - System.out.println("Error: No matching parser found for JSON file: " + filename); + + try { + jsonobj.getJSONArray("issue_events"); + tr = new BurpJsonReader().parse( fileToParse ); + } catch (JSONException e3) { + System.out.println("Error: No matching parser found for JSON file: " + filename); + } } } } @@ -1503,16 +1510,16 @@ private static void updateMenuTemplates( String toolmenu, String vulnmenu ) { } private static Document getXMLDocument( File f ) throws Exception { - DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); + DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); // Prevent XXE = Note, disabling this entirely breaks the parsing of some XML files, like a Burp results - // file, so have to use the alternate defense. + // file, so have to use the alternate defense. //dbFactory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true); - docBuilderFactory.setFeature("http://xml.org/sax/features/external-general-entities", false); + docBuilderFactory.setFeature("http://xml.org/sax/features/external-general-entities", false); docBuilderFactory.setFeature("http://xml.org/sax/features/external-parameter-entities", false); - DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder(); - InputSource is = new InputSource(new FileInputStream(f)); - Document doc = docBuilder.parse(is); - return doc; + DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder(); + InputSource is = new InputSource(new FileInputStream(f)); + Document doc = docBuilder.parse(is); + return doc; } - } + diff --git a/src/main/java/org/owasp/benchmark/score/parsers/BurpJsonReader.java b/src/main/java/org/owasp/benchmark/score/parsers/BurpJsonReader.java new file mode 100644 index 0000000000..f69ed71bc0 --- /dev/null +++ b/src/main/java/org/owasp/benchmark/score/parsers/BurpJsonReader.java @@ -0,0 +1,112 @@ +/** +* OWASP Benchmark Project +* +* This file is part of the Open Web Application Security Project (OWASP) +* Benchmark Project For details, please see +* https://owasp.org/www-project-benchmark/. +* +* The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms +* of the GNU General Public License as published by the Free Software Foundation, version 2. +* +* The OWASP Benchmark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without +* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details +* +* @author Dave Wichers +* @created 2020 +*/ + +package org.owasp.benchmark.score.parsers; + +import java.io.File; +import java.nio.file.Files; +import java.nio.file.Paths; + +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; + +import org.owasp.benchmark.score.BenchmarkScore; + +public class BurpJsonReader extends Reader { + + public TestResults parse( File f ) throws Exception { + String content = new String(Files.readAllBytes(Paths.get(f.getPath()))); + + JSONObject obj = new JSONObject(content); + JSONArray arr; + try { + arr = obj.getJSONArray("issue_events"); + } catch (JSONException e) { + System.out.println("ERROR: Couldn't find 'issue_events' element in Burp JSON results." + + " Maybe not a Burp JSON results file?" ); + return null; + } + + TestResults tr = new TestResults( "Burp Suite Enterprise", true, TestResults.ToolType.DAST); + + // If the filename includes an elapsed time in seconds (e.g., TOOLNAME-seconds.xml), + // set the compute time on the score card. + tr.setTime(f); + + int numIssues = arr.length(); + for (int i = 0; i < numIssues; i++) + { + TestCaseResult tcr = parseBurpJSONFinding( arr.getJSONObject(i) ); + if ( tcr != null ) { + tr.put( tcr ); + } + } + + return tr; + } + + /** + "issue_events": [ <-- the array that contains all the findings. 1 example below + { + "id": "94", + "type": "issue_found", + "issue": { + "name": "TLS certificate", + "type_index": 16777472, + "serial_number": "3879069528566581248", + "origin": "https://localhost:8443", + "path": "/", + "severity": "medium", + "confidence": "certain", + "description": "The following problems were identified with the server's TLS certificate:
  • The server's certificate is not valid for the server's hostname.
  • The server's certificate is not trusted.
  • The server's certificate has expired.
Note: Burp relies on the Java trust store to determine whether certificates are trusted. The Java trust store does not include every root CA certificate that is included within browser trust stores. Burp might incorrectly repo rt that a certificate is not trusted, if a valid root CA certificate is being used that is not included in the Java trust store.

The server presented the following certificate:

Issued to:  OWASP Benchmark
Issued by:  OWASP Benchmark
Valid from:  Mon Sep 28 19:39:43 CEST 2015
Valid to:  Sun Dec 27 18:39:43 CET 2015
", + "caption": "/", + "evidence": [], + "internal_data": "eyJmbGFncyI6MTQsInZhcmlhbnQiOjAsImlzc3VlX2RldGFpbHNfbWFwIjp7IjM0Ijoip09XQVNQIEJlbmNobWFya6dPV0FTUCBCZW5jaG1hcmunTW9uIFNlcCAyOCAxOTozOTo0MyBDRVNUIDIwMTWnU3VuIERlYyAyNyAxODozOTo0MyBDRVQgMjAxNacxNKcifX0=" + } + }, ... + **/ + + private TestCaseResult parseBurpJSONFinding(JSONObject finding ) { + try { + TestCaseResult tcr = new TestCaseResult(); + String filename = null; + + JSONObject issue = finding.getJSONObject("issue"); + filename = issue.getString("path"); + + filename = filename.substring(filename.lastIndexOf('/') + 1); + filename = filename.split("\\.")[0]; // If there is any extension on the filename, remove it + if (filename.startsWith(BenchmarkScore.TESTCASENAME)) { + String testNumber = filename.substring(BenchmarkScore.TESTCASENAME.length() ); + tcr.setNumber( Integer.parseInt( testNumber ) ); + int rule = issue.getInt("type_index"); + int cwe = BurpReader.cweLookup(new Integer(rule).toString()); + tcr.setCWE( cwe ); + //tcr.setEvidence( issue.getString("description") ); // Sometimes descriptions aren't provided, so comment out. + } + + return tcr; + } catch (JSONException e ) { + e.printStackTrace(); + } + return null; + } + + // This parser relies on the Burp rule # mapping method in BurpReader.cweLookup() +} From 8c8edfe4dea4c7323df8aca236bfad3f4c9d450b Mon Sep 17 00:00:00 2001 From: davewichers Date: Tue, 15 Dec 2020 16:35:16 -0500 Subject: [PATCH 83/92] Check in changes to BurpReader I forgot to check in to support the new BurpJSONReader. --- .../benchmark/score/parsers/BurpReader.java | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/src/main/java/org/owasp/benchmark/score/parsers/BurpReader.java b/src/main/java/org/owasp/benchmark/score/parsers/BurpReader.java index 35ae5cf189..cf99ce378b 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/BurpReader.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/BurpReader.java @@ -22,6 +22,7 @@ import java.util.List; import org.owasp.benchmark.score.BenchmarkScore; + import org.w3c.dom.Node; public class BurpReader extends Reader { @@ -38,13 +39,8 @@ public TestResults parse(File f, Node root) throws Exception { String version = getAttributeValue("burpVersion", root); tr.setToolVersion(version); - // If the fliename includes an elapsed time in seconds (e.g., TOOLNAME-seconds.xml) set the compute time on the scorecard. - tr.setTime(f); - - // String time = getAttributeValue("ScanTime", root); - // tr.setTime( time ); - // TODO - fix it so you can get the time out of the Burp Results filename by default. - // TODO - Ideally, we'd get the time out of the Burp results file, if they can provide it + // If the filename includes an elapsed time in seconds (e.g., TOOLNAME-seconds.xml) set the compute time on the scorecard. + tr.setTime(f); List issueList = getNamedChildren("issue", root); @@ -75,7 +71,7 @@ public TestResults parse(File f, Node root) throws Exception { private TestCaseResult parseBurpVulnerability(Node issue) { TestCaseResult tcr = new TestCaseResult(); String cwe = getNamedChild("type", issue).getTextContent(); - tcr.setCWE(translate(cwe)); + tcr.setCWE(cweLookup(cwe)); String name = getNamedChild("name", issue).getTextContent(); tcr.setCategory(name); @@ -102,7 +98,7 @@ private TestCaseResult parseBurpVulnerability(Node issue) { // https://portswigger.net/kb/issues - This page lists all the issue types Burp looks for, and their // customer ID #'s. There are more on this page. The following primarily lists those // that are currently relevant in the Benchmark. - private int translate(String id) { + static int cweLookup(String id) { switch (id) { case "1048832": return 78; // Command Injection case "1049088": return 89; // SQL Injection @@ -133,13 +129,9 @@ private int translate(String id) { case "8389120": return 9999; // HTML doesn't specify character set - Don't care. Map to nothing. case "8389632": return 9999; // Incorrect Content Type - Don't care. Map to nothing right now. case "8389888": return 16; // Content type is not specified - - // case "Trust Boundary Violation" : return 501; - // case "Weak Cryptographic Hash" : return 328; - // case "Weak Encryption" : return 327; + } // end switch(id) - System.out.println("Unknown id: " + id); + System.out.println("Unknown Burp rule id: " + id); return -1; } - } From ab53cf8594f015239b449cdd18367fb22450f3a8 Mon Sep 17 00:00:00 2001 From: davewichers Date: Thu, 17 Dec 2020 12:40:08 -0500 Subject: [PATCH 84/92] Tweak pom.xml so Contrast config also works with Contrast CE and eliminate a few misc TODOs. --- pom.xml | 8 ++++---- .../java/org/owasp/benchmark/helpers/LDAPManager.java | 4 ++-- .../java/org/owasp/benchmark/tools/NoisyCricket.java | 9 +++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 6e81c22a3b..2c9325e585 100755 --- a/pom.xml +++ b/pom.xml @@ -296,11 +296,11 @@ -Xmx4G -javaagent:${basedir}/tools/Contrast/contrast.jar -Dcontrast.dir=${basedir}/tools/Contrast/working - -Dcontrast.log.daily=true - -Dcontrast.level=debug - -Dcontrast.assess.threshold.entries=100000 - -Dcontrast.agent.java.standalone_app_name=OWASPBenchmark + -Dcontrast.application.name=OWASPBenchmark -Dcontrast.assess.rules.disabled_rules="autocomplete-missing,cache-controls-missing,clickjacking-control-missing,csrf" + -Dcontrast.assess.threshold.entries=100000 + -Dcontrast.level=debug + -Dcontrast.log.daily=true 8443 https diff --git a/src/main/java/org/owasp/benchmark/helpers/LDAPManager.java b/src/main/java/org/owasp/benchmark/helpers/LDAPManager.java index ce27c89d78..c58b0002bc 100644 --- a/src/main/java/org/owasp/benchmark/helpers/LDAPManager.java +++ b/src/main/java/org/owasp/benchmark/helpers/LDAPManager.java @@ -66,7 +66,7 @@ public LDAPManager() { try { initDirectoryService(workDir); } catch (Exception e1) { - // TODO Auto-generated catch block + // Auto-generated catch block e1.printStackTrace(); } */ @@ -226,7 +226,7 @@ public static void main(String[] args){ ads.closeDirContext(); ads.stopServer(); } catch (Exception e) { - // TODO Auto-generated catch block + // Auto-generated catch block e.printStackTrace(); } }*/ diff --git a/src/main/java/org/owasp/benchmark/tools/NoisyCricket.java b/src/main/java/org/owasp/benchmark/tools/NoisyCricket.java index ab25837630..42f5b09aad 100644 --- a/src/main/java/org/owasp/benchmark/tools/NoisyCricket.java +++ b/src/main/java/org/owasp/benchmark/tools/NoisyCricket.java @@ -42,6 +42,7 @@ import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; +import org.owasp.benchmark.helpers.Utils; import org.w3c.dom.Document; import org.w3c.dom.Element; @@ -65,7 +66,7 @@ public static void main(String[] args) { Element version = report.createElement("meta"); version.setAttribute("tool", "NoisyCricket"); version.setAttribute("version", "8.1"); - version.setAttribute("url", "http://owasp.org/benchmark"); + version.setAttribute("url", "https://owasp.org/benchmark"); docroot.appendChild( version ); vulns = report.createElement("vulnerabilities"); @@ -82,10 +83,10 @@ public FileVisitResult visitFile(Path path, BasicFileAttributes attrs) throws IO return FileVisitResult.CONTINUE; } }; - // TODO - Change user.home to be the home directory of the Benchmark project. - Path p = FileSystems.getDefault().getPath( System.getProperty("user.home") ); + + Path p = FileSystems.getDefault().getPath( Utils.USERDIR ); Files.walkFileTree(p, visitor); - + TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer transformer = transformerFactory.newTransformer(); transformer.setOutputProperty(OutputKeys.INDENT, "yes"); From 6fc80731b6635710e2173d11a7114b6a6bb62d3a Mon Sep 17 00:00:00 2001 From: davewichers Date: Thu, 17 Dec 2020 14:53:09 -0500 Subject: [PATCH 85/92] Another tweak to Contrast scanning config. --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 2c9325e585..9e02452fb6 100755 --- a/pom.xml +++ b/pom.xml @@ -299,6 +299,7 @@ -Dcontrast.application.name=OWASPBenchmark -Dcontrast.assess.rules.disabled_rules="autocomplete-missing,cache-controls-missing,clickjacking-control-missing,csrf" -Dcontrast.assess.threshold.entries=100000 + -Dcontrast.defend.enabled=false -Dcontrast.level=debug -Dcontrast.log.daily=true From e1717d1a8610636fba11af4a96f96dc2696782bf Mon Sep 17 00:00:00 2001 From: davewichers Date: Thu, 17 Dec 2020 15:06:03 -0500 Subject: [PATCH 86/92] More pom tweaks. --- pom.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pom.xml b/pom.xml index 9e02452fb6..5de5cda05f 100755 --- a/pom.xml +++ b/pom.xml @@ -296,7 +296,9 @@ -Xmx4G -javaagent:${basedir}/tools/Contrast/contrast.jar -Dcontrast.dir=${basedir}/tools/Contrast/working + -Dcontrast.agent.java.standalone_app_name=OWASPBenchmark -Dcontrast.application.name=OWASPBenchmark + -Dcontrast.application.path=/ -Dcontrast.assess.rules.disabled_rules="autocomplete-missing,cache-controls-missing,clickjacking-control-missing,csrf" -Dcontrast.assess.threshold.entries=100000 -Dcontrast.defend.enabled=false From a10332f8d3a86342115cc199ec0076a18ff7fcdc Mon Sep 17 00:00:00 2001 From: davewichers Date: Fri, 18 Dec 2020 15:40:32 -0500 Subject: [PATCH 87/92] Add support for SonarQube HotSpot API JSON results. HotSpots are security specific areas of concern identified by SonarQube. --- pom.xml | 2 +- .../owasp/benchmark/score/BenchmarkScore.java | 36 +++-- .../score/parsers/ContrastReader.java | 6 +- .../score/parsers/SonarQubeJsonReader.java | 141 ++++++++++++++++-- 4 files changed, 156 insertions(+), 29 deletions(-) diff --git a/pom.xml b/pom.xml index 5de5cda05f..250f28f330 100755 --- a/pom.xml +++ b/pom.xml @@ -301,7 +301,7 @@ -Dcontrast.application.path=/ -Dcontrast.assess.rules.disabled_rules="autocomplete-missing,cache-controls-missing,clickjacking-control-missing,csrf" -Dcontrast.assess.threshold.entries=100000 - -Dcontrast.defend.enabled=false + -Dcontrast.protect.enable=false -Dcontrast.level=debug -Dcontrast.log.daily=true diff --git a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java index 4563cd7095..d09b3c65f5 100644 --- a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java +++ b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java @@ -705,19 +705,33 @@ else if ( line2 != null && line2.contains("Vendor") && line2.contains("Checkmarx tr = new SemgrepReader().parse( jsonobj ); } catch (JSONException e) { - try { - jsonobj.getJSONArray("issues"); - tr = new SonarQubeJsonReader().parse( fileToParse ); - } catch (JSONException e2) { - - try { - jsonobj.getJSONArray("issue_events"); - tr = new BurpJsonReader().parse( fileToParse ); - } catch (JSONException e3) { + // Note: Each of the remaining try blocks is nested under the one above, but we shown them + // inline as they would get too deep otherwise + try { + // SonarQube has two different JSON formats, one for standard issues and + // another for 'hotspots' which are securit issues. Both are handled by the same + // parser for SonarQube. + jsonobj.getJSONArray("issues"); + tr = new SonarQubeJsonReader().parse( fileToParse ); + } catch (JSONException e2) { + + try { + jsonobj.getJSONArray("hotspots"); + tr = new SonarQubeJsonReader().parse( fileToParse ); + } catch (JSONException e3) { + + try { + jsonobj.getJSONArray("issue_events"); + tr = new BurpJsonReader().parse( fileToParse ); + + // This is the final catch that says we couldn't find a matching parser + } catch (JSONException e4) { System.out.println("Error: No matching parser found for JSON file: " + filename); } - } - } + + } // end catch SonarQubeJsonReader - hotspots + } // end catch SonarQubeJsonReader - issues + } // end catch SemgrepReader } } diff --git a/src/main/java/org/owasp/benchmark/score/parsers/ContrastReader.java b/src/main/java/org/owasp/benchmark/score/parsers/ContrastReader.java index 1e0715364f..883b7d0d75 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/ContrastReader.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/ContrastReader.java @@ -25,6 +25,7 @@ import java.util.Date; import org.json.JSONObject; + import org.owasp.benchmark.score.BenchmarkScore; public class ContrastReader extends Reader { @@ -49,11 +50,11 @@ public TestResults parse(File f) throws Exception { if (line.startsWith("{\"hash\":")) { parseContrastFinding(tr, line); } else if (line.contains("Agent Version:")) { - String version = line.substring(line.indexOf("Version:") + 8); + String version = line.substring(line.indexOf("Version:") + "Version:".length()); tr.setToolVersion(version.trim()); // TODO: expand length of "00001" to match length of TESTCASE_NAME rather than exactly 5 } else if (line.contains("DEBUG - >>> [URL") && - line.contains(BenchmarkScore.TESTCASENAME+"00001")) { + line.contains(BenchmarkScore.TESTCASENAME+"00001")) { firstLine = line; } else if (line.contains("DEBUG - >>> [URL")) { lastLine = line; @@ -148,5 +149,4 @@ private String calculateTime(String firstLine, String lastLine) { } return null; } - } diff --git a/src/main/java/org/owasp/benchmark/score/parsers/SonarQubeJsonReader.java b/src/main/java/org/owasp/benchmark/score/parsers/SonarQubeJsonReader.java index e447bcb474..94765dd8ae 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/SonarQubeJsonReader.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/SonarQubeJsonReader.java @@ -30,29 +30,41 @@ public class SonarQubeJsonReader extends Reader { public TestResults parse( File f ) throws Exception { + + TestResults tr = new TestResults( "SonarQube", false, TestResults.ToolType.SAST); + + // If the filename includes an elapsed time in seconds (e.g., TOOLNAME-seconds.xml), + // set the compute time on the score card. + tr.setTime(f); + String content = new String(Files.readAllBytes(Paths.get(f.getPath()))); JSONObject obj = new JSONObject(content); // int version = obj.getInt( "formatVersion" ); JSONArray arr; + + boolean hotSpotIssue = true; + + // Figure out if there are quality issues or security hotspots in the JSON file + // Each has a different JSON format. try { arr = obj.getJSONArray("issues"); + hotSpotIssue = false; } catch (JSONException e) { - System.out.println("ERROR: Couldn't find 'issues' element in SonarQube JSON results." - + " Maybe not SonarQube results file?" ); - return null; + try { + arr = obj.getJSONArray("hotspots"); + } catch (JSONException e2) { + System.out.println("ERROR: Couldn't find 'issues' or 'hotspots' element in SonarQube JSON results." + + " Maybe not SonarQube results file?" ); + return null; + } } - TestResults tr = new TestResults( "SonarJava", false, TestResults.ToolType.SAST); - - // If the filename includes an elapsed time in seconds (e.g., TOOLNAME-seconds.xml), - // set the compute time on the score card. - tr.setTime(f); - int numIssues = arr.length(); - for (int i = 0; i < numIssues; i++) - { - TestCaseResult tcr = parseSonarQubeFinding( arr.getJSONObject(i) ); + for (int i = 0; i < numIssues; i++) { + + TestCaseResult tcr = (hotSpotIssue? parseSonarQubeHotSpotIssue( arr.getJSONObject(i) ) : + parseSonarQubeQualityIssue( arr.getJSONObject(i) )); if ( tcr != null ) { tr.put( tcr ); } @@ -61,7 +73,7 @@ public TestResults parse( File f ) throws Exception { return tr; } - /** + /** -- Example of Quality Issue JSON object VULNERABILITY", "tags":["cwe","owasp-a2","owasp-a6"], "component":"org.owasp:benchmark:src\/main\/java\/org\/owasp\/benchmark\/testcode\/BenchmarkTest02710.java", @@ -86,7 +98,10 @@ public TestResults parse( File f ) throws Exception { **/ - private TestCaseResult parseSonarQubeFinding(JSONObject finding ) { + // Quality Issues are normal SonarQube findings that are mostly not relevant to security + // However, there are a small number of security issues that do show up this way so we have + // to support both + private TestCaseResult parseSonarQubeQualityIssue(JSONObject finding ) { try { TestCaseResult tcr = new TestCaseResult(); String filename = null; @@ -116,5 +131,103 @@ private TestCaseResult parseSonarQubeFinding(JSONObject finding ) { return null; } +// The parseSonarQubeQualityIssue() method above relies on the SQUID # mapping method in SonarQubeReader.cweLookup() + + /** -- Example of HotSpot Issue JSON object + "hotspots": [ + { + "key": "AXYEidyZsoEy1bftafT5", + "component": "owasp-benchmark-sonarce:src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00008.java", + "project": "owasp-benchmark-sonarce", + "securityCategory": "sql-injection", + "vulnerabilityProbability": "HIGH", + "status": "TO_REVIEW", + "line": 58, + "message": "Ensure that string concatenation is required and safe for this SQL query.", + "author": "dwichers@gmail.com", + "creationDate": "2015-08-26T05:13:42+0200", + "updateDate": "2020-11-26T12:53:38+0100" + }, + **/ + + // Hotspot Issues are SonarQube security findings. + private TestCaseResult parseSonarQubeHotSpotIssue(JSONObject finding ) { + try { + TestCaseResult tcr = new TestCaseResult(); + String filename = null; + + filename = finding.getString("component"); + filename = filename.replaceAll( "\\\\", "/"); // In case there are \ instead of / in the path + filename = filename.substring( filename.lastIndexOf( '/' ) ); + if ( filename.contains( BenchmarkScore.TESTCASENAME ) ) { + String testNumber = filename.substring( BenchmarkScore.TESTCASENAME.length() + 1, + filename.length() - 5 ); + tcr.setNumber( Integer.parseInt( testNumber ) ); + String secCat = finding.getString("securityCategory"); + if ( secCat == null || secCat.equals("none") ) { + return null; + } + int cwe = securityCategoryCWELookup(secCat, finding.getString("message")); + tcr.setCWE( cwe ); + tcr.setCategory( secCat ); + tcr.setEvidence( "vulnerabilityProbability: " + finding.getString("vulnerabilityProbability") ); + } + + return tcr; + } catch (Exception e ) { + e.printStackTrace(); + } + return null; + } + + /* + * Some of these findings are badly mapped. For example: + * "securityCategory": "xss", + * "message": "Make sure creating this cookie without the \"HttpOnly\" flag is safe.", + * While HttpOnly is a feature to help defend against XSS, it should really be mapped to + * CWE-1004: Sensitive Cookie Without 'HttpOnly' Flag. So we use the 'message' description + * in some findings to move such issues to the 'right' CWE. + * As such, we specifically look at the message in some cases to fix the mapping. + */ + public static int securityCategoryCWELookup(String secCat, String message) { + // Not sure where to look up all the possible security categories in SonarQube, but the mappings + // seem obvious enough. + + // Given their horrible mapping scheme, we check each message to detect whether their might be a new + // 'message' mapped to an existing CWE (that might be wrong). + if ( !("Make sure that using this pseudorandom number generator is safe here.".equals(message) || + "Ensure that string concatenation is required and safe for this SQL query.".equals(message) || + "Make sure creating this cookie without the \"secure\" flag is safe here.".equals(message) || + "Make sure that hashing data is safe here.".equals(message) || + "Make sure creating this cookie without the \"HttpOnly\" flag is safe.".equals(message)) ) + { + System.out.println("WARN: Found new SonarQube HotSpot rule not seen before. Category: " + + secCat + " with message: '" + message + "'"); + } + + switch( secCat ) { + + case "sql-injection" : return 89; // "Ensure that string concatenation is required and safe for this SQL query." + case "insecure-conf" : return 614; // "Make sure creating this cookie without the \"secure\" flag is safe here." + case "xss" : // "Make sure creating this cookie without the \"HttpOnly\" flag is safe." + { + if (message != null && message.contains("HttpOnly")) return 1004; + else return 79; // Actual XSS CWE + } + case "weak-cryptography" : // "Make sure that using this pseudorandom number generator is safe here." + { // or "Make sure that hashing data is safe here." + if (message != null) { + if (message.contains("pseudorandom")) return 330; + if (message.contains("hashing")) return 328; + else return 0000; + } + else return 327; // Actual Weak Crypto CWE + } + default: System.out.println( "WARN: Failed to translate SonarQube security category: " + secCat ); + } + + return -1; + } + // This parser relies on the SQUID # mapping method in SonarQubeReader.cweLookup() } From 9a0c25a5f8443245c676965d20d22d5f93da3f99 Mon Sep 17 00:00:00 2001 From: Dave Wichers Date: Mon, 21 Dec 2020 14:36:02 -0500 Subject: [PATCH 88/92] Update various IAST scripts to clarify how to use them properly on Windows. --- tools/Contrast/runBenchmark_wContrast.bat | 14 ++++++++------ tools/CxIAST/runBenchmark_wCxIAST.bat | 6 ++---- tools/HCL/runBenchmark_wHCL.bat | 21 ++++++++++++--------- tools/HCL/runBenchmark_wHCL.sh | 2 +- 4 files changed, 23 insertions(+), 20 deletions(-) diff --git a/tools/Contrast/runBenchmark_wContrast.bat b/tools/Contrast/runBenchmark_wContrast.bat index f4ebda2a35..d23949fe7f 100644 --- a/tools/Contrast/runBenchmark_wContrast.bat +++ b/tools/Contrast/runBenchmark_wContrast.bat @@ -1,19 +1,21 @@ @ECHO OFF IF EXIST .\contrast.jar ( IF EXIST .\working ( - DEL \F \Q .\working\contrast.log + DEL /F /Q .\working\contrast.log - RMDIR \S .\working\cache - - ECHO "" + RMDIR /S /Q .\working\cache + ECHO. ECHO Previous Contrast results have been removed - - ECHO "" + ECHO. ) CD ..\.. + ECHO After Crawl is Complete, hit Ctrl-C to stop Benchmark Tomcat instance. + ECHO When it asks "Terminate batch job (Y/N)?" Enter N, so script will complete and copy results to /results directory. + ECHO. + CALL mvn clean package cargo:run -Pdeploywcontrast ECHO Copying Contrast reports to results directory diff --git a/tools/CxIAST/runBenchmark_wCxIAST.bat b/tools/CxIAST/runBenchmark_wCxIAST.bat index cfedddb160..7e553de052 100644 --- a/tools/CxIAST/runBenchmark_wCxIAST.bat +++ b/tools/CxIAST/runBenchmark_wCxIAST.bat @@ -7,11 +7,9 @@ IF EXIST .\cx-launcher.jar ( rmdir /q /s .\logs ) - ECHO "" - + ECHO. ECHO Previous Checkmarx IAST results have been removed - - ECHO "" + ECHO. ) CD ..\.. diff --git a/tools/HCL/runBenchmark_wHCL.bat b/tools/HCL/runBenchmark_wHCL.bat index 965de477b5..bb5c95f3bb 100644 --- a/tools/HCL/runBenchmark_wHCL.bat +++ b/tools/HCL/runBenchmark_wHCL.bat @@ -1,25 +1,28 @@ @ECHO OFF IF EXIST .\secagent.jar ( IF EXIST .\working ( - DEL /F /Q .\working\*.* - RMDIR /S /Q .\working\cache - - ECHO "" + RMDIR /S /Q .\working + ECHO. ECHO Previous results have been removed - - ECHO "" + ECHO. ) CD ..\.. + ECHO After Crawl is Complete, hit Ctrl-C to stop Benchmark Tomcat instance. + ECHO When it asks "Terminate batch job (Y/N)?" Enter N, so script will complete and copy results to /results directory. + ECHO. + CALL mvn clean package cargo:run -Pdeploywhcl - ECHO Copying reports to results directory + ECHO Copying HCL reports to results directory - COPY tools\HCL\working\HCL-IAST.hcl results\HCL-IAST.hcl + COPY tools\HCL\working\HCL-IAST.hcl results\Benchmark_HCL-IAST.hcl CD tools\HCL -) +) ELSE ( + ECHO HCL is a commercial product, so you need a licensed version of HCL in order to run it on the Benchmark. If you have access to HCL, download the HCL Agent for Java ^(secagent.jar^), put it into the /tools/HCL folder, and then rerun this script. Please contact HCL at https://www.hcl.com/. +) diff --git a/tools/HCL/runBenchmark_wHCL.sh b/tools/HCL/runBenchmark_wHCL.sh index 36b8230a35..97d97feb77 100755 --- a/tools/HCL/runBenchmark_wHCL.sh +++ b/tools/HCL/runBenchmark_wHCL.sh @@ -15,7 +15,7 @@ if [ -f ./secagent.jar ]; then mvn clean package cargo:run -Pdeploywhcl echo "Copying report to results directory" - cp tools/HCL/working/HCL-IAST.hcl results/HCL-IAST.hcl + cp tools/HCL/working/HCL-IAST.hcl results/Benchmark_HCL-IAST.hcl cd tools/HCL else From 9b48bf2a2dd69a569964f721816ba9458d07837f Mon Sep 17 00:00:00 2001 From: davewichers Date: Sun, 3 Jan 2021 12:56:06 -0500 Subject: [PATCH 89/92] Update format of a few test cases. Upgrade a few libs in pom. --- pom.xml | 27 +++++++++--------- .../owasp/benchmark/service/pojo/Person.java | 18 ++++++++++++ .../benchmark/service/pojo/StringMessage.java | 18 ++++++++++++ .../testcode/BenchmarkTest00116.java | 28 +++++++++---------- .../testcode/BenchmarkTest00117.java | 28 +++++++++---------- .../testcode/BenchmarkTest00118.java | 26 ++++++++--------- .../testcode/BenchmarkTest00207.java | 26 ++++++++--------- .../testcode/BenchmarkTest00442.java | 26 ++++++++--------- .../testcode/BenchmarkTest00520.java | 26 ++++++++--------- .../testcode/BenchmarkTest00607.java | 26 ++++++++--------- .../testcode/BenchmarkTest00683.java | 28 +++++++++---------- .../testcode/BenchmarkTest00852.java | 26 ++++++++--------- .../testcode/BenchmarkTest00941.java | 28 +++++++++---------- .../testcode/BenchmarkTest01013.java | 28 +++++++++---------- .../testcode/BenchmarkTest01014.java | 26 ++++++++--------- .../testcode/BenchmarkTest01223.java | 28 +++++++++---------- .../testcode/BenchmarkTest01224.java | 26 ++++++++--------- .../testcode/BenchmarkTest01225.java | 26 ++++++++--------- .../testcode/BenchmarkTest01316.java | 26 ++++++++--------- .../testcode/BenchmarkTest01397.java | 26 ++++++++--------- .../testcode/BenchmarkTest01478.java | 28 +++++++++---------- .../testcode/BenchmarkTest01479.java | 28 +++++++++---------- .../testcode/BenchmarkTest01561.java | 28 +++++++++---------- .../testcode/BenchmarkTest01562.java | 28 +++++++++---------- .../testcode/BenchmarkTest01632.java | 28 +++++++++---------- .../testcode/BenchmarkTest01633.java | 26 ++++++++--------- .../testcode/BenchmarkTest01734.java | 28 +++++++++---------- .../testcode/BenchmarkTest01735.java | 28 +++++++++---------- .../testcode/BenchmarkTest01736.java | 26 ++++++++--------- .../testcode/BenchmarkTest01821.java | 26 ++++++++--------- .../testcode/BenchmarkTest01892.java | 28 +++++++++---------- .../testcode/BenchmarkTest01893.java | 28 +++++++++---------- .../testcode/BenchmarkTest01894.java | 26 ++++++++--------- .../testcode/BenchmarkTest01974.java | 28 +++++++++---------- .../testcode/BenchmarkTest02100.java | 28 +++++++++---------- .../testcode/BenchmarkTest02189.java | 28 +++++++++---------- .../testcode/BenchmarkTest02370.java | 28 +++++++++---------- .../testcode/BenchmarkTest02457.java | 26 ++++++++--------- .../benchmark/tools/BenchmarkCrawler.java | 16 +++++++++-- src/main/webapp/Index.html | 2 +- 40 files changed, 487 insertions(+), 542 deletions(-) diff --git a/pom.xml b/pom.xml index 250f28f330..d631b811ed 100755 --- a/pom.xml +++ b/pom.xml @@ -131,7 +131,7 @@ - + @@ -145,7 +145,7 @@ - + @@ -159,7 +159,7 @@ - + @@ -229,7 +229,7 @@ - + @@ -243,7 +243,7 @@ - + @@ -257,7 +257,7 @@ - + @@ -442,7 +442,7 @@ - + @@ -456,7 +456,7 @@ - + @@ -470,7 +470,7 @@ - + @@ -839,8 +839,7 @@ But it might be needed for Java 10, because I get this error, that I don't get w org.bouncycastle bcprov-jdk15on - - 1.65.01 + 1.68 @@ -975,7 +974,7 @@ But it might be needed for Java 10, because I get this error, that I don't get w co.leantechniques maven-buildtime-extension - 2.0.2 + 3.0.3 @@ -1042,7 +1041,7 @@ But it might be needed for Java 10, because I get this error, that I don't get w org.codehaus.mojo extra-enforcer-rules - 1.2 + 1.3 diff --git a/src/main/java/org/owasp/benchmark/service/pojo/Person.java b/src/main/java/org/owasp/benchmark/service/pojo/Person.java index 23f1ebd6e7..6ca488cf0c 100644 --- a/src/main/java/org/owasp/benchmark/service/pojo/Person.java +++ b/src/main/java/org/owasp/benchmark/service/pojo/Person.java @@ -1,3 +1,21 @@ +/** +* OWASP Benchmark Project +* +* This file is part of the Open Web Application Security Project (OWASP) +* Benchmark Project For details, please see +* https://owasp.org/www-project-benchmark/. +* +* The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms +* of the GNU General Public License as published by the Free Software Foundation, version 2. +* +* The OWASP Benchmark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without +* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details +* +* @author Juan Gama +* @created 2017 +*/ + package org.owasp.benchmark.service.pojo; import javax.xml.bind.annotation.XmlAttribute; diff --git a/src/main/java/org/owasp/benchmark/service/pojo/StringMessage.java b/src/main/java/org/owasp/benchmark/service/pojo/StringMessage.java index 1eda6104d9..9b1822be3f 100644 --- a/src/main/java/org/owasp/benchmark/service/pojo/StringMessage.java +++ b/src/main/java/org/owasp/benchmark/service/pojo/StringMessage.java @@ -1,3 +1,21 @@ +/** +* OWASP Benchmark Project +* +* This file is part of the Open Web Application Security Project (OWASP) +* Benchmark Project For details, please see +* https://owasp.org/www-project-benchmark/. +* +* The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms +* of the GNU General Public License as published by the Free Software Foundation, version 2. +* +* The OWASP Benchmark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without +* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details +* +* @author Juan Gama +* @created 2017 +*/ + package org.owasp.benchmark.service.pojo; import javax.xml.bind.annotation.XmlElement; diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00116.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00116.java index ae214ec700..1a969b08ec 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00116.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00116.java @@ -79,28 +79,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00117.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00117.java index 5039b387bb..535a6c798a 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00117.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00117.java @@ -79,28 +79,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00118.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00118.java index 5390a988e6..d75cf736fd 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00118.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00118.java @@ -79,24 +79,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00207.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00207.java index 28e99fe266..ad34c3ade9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00207.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00207.java @@ -65,24 +65,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00442.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00442.java index ff6a0cfe64..9886bbbc8c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00442.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00442.java @@ -62,24 +62,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00520.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00520.java index bd3d832715..d8193c7ea8 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00520.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00520.java @@ -67,24 +67,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00607.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00607.java index 1344c0be85..83127494b6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00607.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00607.java @@ -71,24 +71,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00683.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00683.java index b068de37a3..6eba060f71 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00683.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00683.java @@ -63,28 +63,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00852.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00852.java index 4f61e4c0d8..d05a1e5dca 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00852.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00852.java @@ -76,24 +76,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00941.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00941.java index 291bdfe6ab..46a47bc26c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00941.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00941.java @@ -60,28 +60,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01013.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01013.java index e365401056..b493a1112d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01013.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01013.java @@ -71,28 +71,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01014.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01014.java index 7581d0cdbb..dafcd863f6 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01014.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01014.java @@ -71,24 +71,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01223.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01223.java index 25be6df20e..766d89be5f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01223.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01223.java @@ -61,28 +61,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01224.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01224.java index 36a3a71367..6fe99020ed 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01224.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01224.java @@ -61,24 +61,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01225.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01225.java index 73dac62d41..bdcdca3a72 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01225.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01225.java @@ -61,24 +61,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01316.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01316.java index e610dfe034..3520c030c3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01316.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01316.java @@ -54,24 +54,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01397.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01397.java index c3a4ed9719..8d4ed2941d 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01397.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01397.java @@ -59,24 +59,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01478.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01478.java index 36b22a2130..6eff618aaa 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01478.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01478.java @@ -68,28 +68,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01479.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01479.java index a9d0b9c4fb..39504d67cf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01479.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01479.java @@ -68,28 +68,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01561.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01561.java index a6637d208f..8c45fea171 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01561.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01561.java @@ -55,28 +55,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01562.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01562.java index 43e236ca62..6ea914ead0 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01562.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01562.java @@ -55,28 +55,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01632.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01632.java index 640129905f..769bf9f01c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01632.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01632.java @@ -57,28 +57,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01633.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01633.java index 8cd3ef67c1..0825f081b1 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01633.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01633.java @@ -57,24 +57,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01734.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01734.java index 204651bd6c..1e64033711 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01734.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01734.java @@ -68,28 +68,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01735.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01735.java index acf448ea6d..6e5e86c487 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01735.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01735.java @@ -68,28 +68,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01736.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01736.java index b860dd931f..49adf28abf 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01736.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01736.java @@ -68,24 +68,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01821.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01821.java index f08bcc3032..fdf5463b2e 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01821.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01821.java @@ -54,24 +54,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01892.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01892.java index 239a72715d..b114b35209 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01892.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01892.java @@ -71,28 +71,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01893.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01893.java index a5b09bee9c..a9db3471f9 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01893.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01893.java @@ -71,28 +71,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01894.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01894.java index 0d3013e918..846d8c884c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01894.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01894.java @@ -71,24 +71,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01974.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01974.java index 8849117f3c..bcaaf21e4c 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01974.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01974.java @@ -59,28 +59,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02100.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02100.java index 7c68415a6a..8da827aa86 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02100.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02100.java @@ -61,28 +61,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02189.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02189.java index ef65678e64..fd2c96f8d3 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02189.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02189.java @@ -54,28 +54,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02370.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02370.java index fc6b28b2a0..97f607c97f 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02370.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02370.java @@ -68,28 +68,26 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; - + org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); + response.getWriter().println( -"Your query results are:
" -); + "Your query results are:
" + ); - org.w3c.dom.NodeList nodeList = (org.w3c.dom.NodeList) xp.compile(expression).evaluate(xmlDocument, javax.xml.xpath.XPathConstants.NODESET); for (int i = 0; i < nodeList.getLength(); i++) { org.w3c.dom.Element value = (org.w3c.dom.Element) nodeList.item(i); response.getWriter().println( -value.getTextContent() + "
" -); - + value.getTextContent() + "
" + ); } - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02457.java b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02457.java index 5fe0b334bc..1beb7a9346 100644 --- a/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02457.java +++ b/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02457.java @@ -55,24 +55,20 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr org.w3c.dom.Document xmlDocument = builder.parse(file); javax.xml.xpath.XPathFactory xpf = javax.xml.xpath.XPathFactory.newInstance(); javax.xml.xpath.XPath xp = xpf.newXPath(); - - response.getWriter().println( -"Your query results are:
" -); - + String expression = "/Employees/Employee[@emplid='"+bar+"']"; + String result = xp.evaluate(expression, xmlDocument); + response.getWriter().println( -xp.evaluate(expression, xmlDocument) + "
" -); + "Your query results are: " + result + "
" + ); - - } catch (javax.xml.xpath.XPathExpressionException e) { - // OK to swallow - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (javax.xml.parsers.ParserConfigurationException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); - } catch (org.xml.sax.SAXException e) { - System.out.println("XPath expression exception caught and swallowed: " + e.getMessage()); + } catch (javax.xml.xpath.XPathExpressionException | javax.xml.parsers.ParserConfigurationException + | org.xml.sax.SAXException e) { + response.getWriter().println( + "Error parsing XPath input: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(bar) + "'" + ); + throw new ServletException(e); } } // end doPost diff --git a/src/main/java/org/owasp/benchmark/tools/BenchmarkCrawler.java b/src/main/java/org/owasp/benchmark/tools/BenchmarkCrawler.java index c7f96958a1..6a04fa87fe 100644 --- a/src/main/java/org/owasp/benchmark/tools/BenchmarkCrawler.java +++ b/src/main/java/org/owasp/benchmark/tools/BenchmarkCrawler.java @@ -42,8 +42,9 @@ public class BenchmarkCrawler { public static String testSuiteVersion = ""; protected void init() { + String crawlerFile = Utils.DATA_DIR + "benchmark-crawler-http.xml"; try { - String crawlerFile = Utils.DATA_DIR + "benchmark-crawler-http.xml"; + // Have to open the stream twice so each method can read the whole file testSuiteVersion = Utils.getCrawlerBenchmarkVersion(new FileInputStream(crawlerFile)); crawl(new FileInputStream(crawlerFile)); } catch (Exception e) { @@ -132,9 +133,21 @@ protected ResponseInfo sendRequest(CloseableHttpClient httpclient, AbstractTestC } public static void main(String[] args) throws Exception { + if (!menu(args)) { + return; + } + BenchmarkCrawler crawler = new BenchmarkCrawler(); crawler.init(); } + + private static boolean menu(String[] args) { + if (args == null) { + System.out.println("Please verify required parameters are provided."); + return false; + } + return true; + } } class ResponseInfo { @@ -175,4 +188,3 @@ public void setRequestBase(HttpRequestBase requestBase) { this.requestBase = requestBase; } } - diff --git a/src/main/webapp/Index.html b/src/main/webapp/Index.html index 342f202087..08cf771f9b 100644 --- a/src/main/webapp/Index.html +++ b/src/main/webapp/Index.html @@ -35,7 +35,7 @@
Available Categories
  • SQL Injection Category
  • Trust Boundary Category
  • Weak Randomness Category
  • -
  • XPATH Injection Category
  • +
  • XPath Injection Category
  • XSS (Cross-Site Scripting) Category
  • From 2909ae2c5da00203158a6031929dcb5ff063f63d Mon Sep 17 00:00:00 2001 From: davewichers Date: Sun, 24 Jan 2021 15:57:54 -0500 Subject: [PATCH 90/92] Add support for Crashtest Security DAST tool scorecard generation. --- .../org/owasp/benchmark/helpers/Utils.java | 18 +- .../owasp/benchmark/score/BenchmarkScore.java | 11 +- .../score/parsers/CrashtestReader.java | 184 ++++++++++++ .../benchmark/score/parsers/TestResults.java | 266 ++++++++++-------- 4 files changed, 344 insertions(+), 135 deletions(-) create mode 100644 src/main/java/org/owasp/benchmark/score/parsers/CrashtestReader.java diff --git a/src/main/java/org/owasp/benchmark/helpers/Utils.java b/src/main/java/org/owasp/benchmark/helpers/Utils.java index bfab05a048..aed6e410be 100644 --- a/src/main/java/org/owasp/benchmark/helpers/Utils.java +++ b/src/main/java/org/owasp/benchmark/helpers/Utils.java @@ -95,7 +95,6 @@ public class Utils { public static final String RESOURCES_DIR = USERDIR + "src" + File.separator + "main" + File.separator + "resources" + File.separator; - // This constant is used by some of the generated Java test cases public static final Set commonHeaders = new HashSet<>(Arrays.asList("host", "user-agent", "accept", "accept-language", "accept-encoding", "content-type", "x-requested-with", "referer", "content-length", @@ -215,6 +214,7 @@ public static List getOSCommandArray(String append) { return cmds; } + // A method used by the Benchmark JAVA test cases to format OS Command Output public static void printOSCommandResults(java.lang.Process proc, HttpServletResponse response) throws IOException { PrintWriter out = response.getWriter(); out.write( @@ -252,6 +252,7 @@ public static void printOSCommandResults(java.lang.Process proc, HttpServletResp } } + // A method used by the Benchmark JAVA test cases to format OS Command Output public static void printOSCommandResults(java.lang.Process proc, List resp) throws IOException { BufferedReader stdInput = new BufferedReader(new InputStreamReader(proc.getInputStream())); BufferedReader stdError = new BufferedReader(new InputStreamReader(proc.getErrorStream())); @@ -280,13 +281,14 @@ public static void printOSCommandResults(java.lang.Process proc, List too results.setTime( actualResults.getTime() ); // This has the side effect of also generating the report on disk. - Report scoreCard = new Report( actualResults, scores, results, expectedResults.totalResults(), + Report scoreCard = new Report( actualResults, scores, results, expectedResults.getTotalResults(), actualResultsFileName, actualResults.isCommercial(),actualResults.getToolType()); // Add this report to the list of reports @@ -754,7 +755,7 @@ else if ( filename.endsWith( ".xml" ) ) { // Handle XML results files where the 1st or 2nd line indicates the tool type - String line1 = getLine( fileToParse, 0 ); + String line1 = getLine( fileToParse, 0 ); // line1 is frequently like: String line2 = getLine( fileToParse, 1 ); String line4; @@ -799,6 +800,10 @@ else if ( line2 != null && line2.startsWith( "" )) { tr = new SonarQubeReader().parse( fileToParse ); } diff --git a/src/main/java/org/owasp/benchmark/score/parsers/CrashtestReader.java b/src/main/java/org/owasp/benchmark/score/parsers/CrashtestReader.java new file mode 100644 index 0000000000..10d0427ab9 --- /dev/null +++ b/src/main/java/org/owasp/benchmark/score/parsers/CrashtestReader.java @@ -0,0 +1,184 @@ +/** + * OWASP Benchmark Project + * + * This file is part of the Open Web Application Security Project (OWASP) + * Benchmark Project For details, please see + * https://owasp.org/www-project-benchmark/. + * + * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms + * of the GNU General Public License as published by the Free Software Foundation, version 2. + * + * The OWASP Benchmark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details + * + * @author Dave Wichers + * @created 2021 + */ + +package org.owasp.benchmark.score.parsers; + +import java.io.File; +import java.io.FileInputStream; +import java.net.URI; +import java.net.URISyntaxException; +import java.util.List; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; + +import org.owasp.benchmark.score.BenchmarkScore; + +import org.w3c.dom.Document; +import org.w3c.dom.Node; +import org.xml.sax.InputSource; + +public class CrashtestReader extends Reader { + +// +// +// +// + + public TestResults parse(File f) throws Exception { + DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); + // Prevent XXE + docBuilderFactory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true); + DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder(); + InputSource is = new InputSource( new FileInputStream(f) ); + Document doc = docBuilder.parse(is); + + TestResults tr = new TestResults( "Crashtest Security", false, TestResults.ToolType.DAST); + + Node crashtest = doc.getDocumentElement(); + String time = crashtest.getAttributes().getNamedItem("time").getNodeValue(); + tr.setTime(TestResults.formatTime(time)); + Node testsuite = getNamedChild( "testsuite", crashtest ); +// tr.setToolVersion( version ); + + List issueList = getNamedChildren( "testcase", testsuite ); + + for ( Node issue : issueList ) { + try { + TestCaseResult tcr = parseCrashtestIssue(issue); + if (tcr != null ) { + tr.put(tcr); + } + } catch( Exception e ) { + // print and continue + e.printStackTrace(); + } + } + return tr; + } + +// Example real finding: +// +// +// +// Example empty finding: +// + + private TestCaseResult parseCrashtestIssue(Node testcase) throws URISyntaxException { + TestCaseResult tcr = new TestCaseResult(); + Node failure = getNamedChild("failure", testcase); + if ( failure == null ) return null; // No finding found + + String testCaseType = testcase.getAttributes().getNamedItem("classname").getNodeValue(); + + int cwe = cweLookup( testCaseType ); + tcr.setCWE(cwe); + if ( cwe != -1) { + String message = failure.getAttributes().getNamedItem("message").getNodeValue(); + + // Parse testcase # from URL: +// message="Found command injection in GET parameter 'BenchmarkTest00407' for +// URL 'https://vespiary.de:8443/benchmark/cmdi-00/BenchmarkTest00407', +// with payload '; echo crashtest-security$((12*12))'" + + String URLStart = "URL '"; + int startOfUrl = message.indexOf(URLStart); + if (startOfUrl == -1) { + // Try again looking for this: + // Found possible XSS vulnerability in the referer + // on site 'vespiary.de:8443/benchmark/xss-02/BenchmarkTest01181' with ... + URLStart = "on site '"; + startOfUrl = message.indexOf(URLStart); + if (startOfUrl == -1) { + // And again for: on site vespiary.de:8443/benchmark/xss-02/BenchmarkTest01181. The ... + URLStart = "on site "; + startOfUrl = message.indexOf(URLStart); + if (startOfUrl == -1) { + if ( !message.equals("Failed") ) { + System.out.println("Couldn't find URL in Crashtest finding message: " + message); + } + return null; + } + } + } + message = message.substring(startOfUrl + URLStart.length()); + String uri = message.substring(0, message.indexOf('\'')); + + // They are inconsistent in display URLs. Some include https:// in front, some don't. + // Some are also wrapped in single quotes. Some are not. + if ( !uri.startsWith("http") ) { + uri = "https://" + uri; + // HACK to remove rest of line when URL is missing trailing ' for findings like: + // on site vespiary.de:8443/benchmark/xss-00/BenchmarkTest00030. The GET parameter ... + // on site vespiary.de:8443/benchmark/xss-00/BenchmarkTest00030. The POST parameter ... + final String HACKSTRING = ". The "; + if (uri.contains(HACKSTRING)) { + uri = uri.substring(0,uri.indexOf(HACKSTRING)); + } + } + + URI url = new URI( uri ); + String testfile = url.getPath(); + testfile = testfile.substring( testfile.lastIndexOf('/') +1 ); + + if ( testfile.startsWith( BenchmarkScore.TESTCASENAME ) ) { + String testno = testfile.substring(BenchmarkScore.TESTCASENAME.length()); + if ( testno.endsWith( ".html" ) ) { + testno = testno.substring(0, testno.length() -5 ); + } + try { + tcr.setNumber( Integer.parseInt( testno ) ); + return tcr; + } catch( NumberFormatException e ) { + System.out.println("URI is: " + uri + " for message: " + message); + System.out.println( "> Parse error " + testfile + ":: " + testno ); + } + } + + } + return null; + } + + /** + * Map Crashtest rule to CWE from testcase: + * e.g., + * @param the Crashtest classname + * @return CWE number or -1 if we don't care about this test type + */ + private int cweLookup(String classname) { + + switch (classname) { + case "commandinjection.crashtest.cloud" : return 78; + case "sqlinjection.crashtest.cloud" : return 89; + case "xss.crashtest.cloud" : return 79; + case "xxe.crashtest.cloud" : return 611; + + case "portscan.crashtest.cloud" : + case "ssl.crashtest.cloud" : + + return -1; + + default: + System.out.println("Unrecognized Crashtest rule: " + classname); + return -1; + } + } + +} diff --git a/src/main/java/org/owasp/benchmark/score/parsers/TestResults.java b/src/main/java/org/owasp/benchmark/score/parsers/TestResults.java index a1b006d15c..3e79973b12 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/TestResults.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/TestResults.java @@ -29,7 +29,7 @@ import org.owasp.benchmark.score.BenchmarkScore; /* - * This class contains the actual results for a single tool against the entire Benchmark, or the + * TestResults contains the actual results for a single tool against an entire test suite, or the * expected results, if its initialized with the expected results file. */ @@ -50,40 +50,40 @@ public static enum ToolType { // The version of the test suite these test results are for private String testSuiteVersion = "notSet"; - + private String toolName = "Unknown Tool"; - private String toolVersion = null; - private String time = "Unknown"; + private String toolVersion = null; + private String time = "Unknown"; // Scan time. e.g., '0:17:29' public final boolean isCommercial; public final ToolType toolType; private Map> map = new TreeMap>(); - + // Used to track if this tool has been anonymized private boolean anonymous = false; - + public TestResults( String toolname, boolean isCommercial, ToolType toolType) { - this.setTool( toolname ); - this.isCommercial = isCommercial; - this.toolType = toolType; + this.setTool( toolname ); + this.isCommercial = isCommercial; + this.toolType = toolType; } - + // Set the version number for this specific set of TestResults public void setTestSuiteVersion( String version ) { this.testSuiteVersion = version; } - + public String getTestSuiteVersion() { return this.testSuiteVersion; } - + public ToolType getToolType() { - return toolType; + return toolType; } - + public boolean isCommercial() { - return isCommercial; + return isCommercial; } - + public void put( TestCaseResult tcr ) { List results = map.get( tcr.getNumber() ); if ( results == null ) { @@ -92,7 +92,7 @@ public void put( TestCaseResult tcr ) { } results.add( tcr ); } - + public List get( int tn ) { return map.get( tn ); } @@ -100,42 +100,42 @@ public List get( int tn ) { public Set keySet() { return map.keySet(); } - + /** * Get the name of the tool. e.g., "IBM AppScan" * @return Name of the tool. */ - public String getTool() { - return this.toolName; - } + public String getTool() { + return this.toolName; + } /** * Get the name of the tool and its version together. e.g., "IBM AppScan v4.2". But if the tool is commercial, * and its in anonymous mode then don't include the version number as that could give away the tool. * @return Name of the tool. */ - public String getToolNameAndVersion() { - if (!anonymous && this.toolVersion != null && !"".equals(this.toolVersion) && - !(BenchmarkScore.anonymousMode && this.isCommercial)) { - return this.toolName + " v" + this.toolVersion; - } - return this.toolName; - } - - /** - * Get the version of the tool these results are from. - * @return Version of the tool if determined. Null otherwise. - */ - public String getToolVersion() { - return toolVersion; - } - - /** - * Sets the name of the tool. e.g., "HP Fortify" - * @param tool - Name of the tool. - */ + public String getToolNameAndVersion() { + if (!anonymous && this.toolVersion != null && !"".equals(this.toolVersion) && + !(BenchmarkScore.anonymousMode && this.isCommercial)) { + return this.toolName + " v" + this.toolVersion; + } + return this.toolName; + } + + /** + * Get the version of the tool these results are from. + * @return Version of the tool if determined. Null otherwise. + */ + public String getToolVersion() { + return toolVersion; + } + + /** + * Sets the name of the tool. e.g., "HP Fortify" + * @param tool - Name of the tool. + */ public void setTool( String toolName ) { - this.toolName = toolName; + this.toolName = toolName; } /** @@ -172,107 +172,125 @@ public void setAnonymous() { } } } - + public void setToolVersion( String version ) { - this.toolVersion = version; + this.toolVersion = version; } - public String getTime() { - return time; - } - - public void setTime( String elapsed ) { - this.time = elapsed; - } - - public void setTime ( File f ) { + /** + * Get the scan time for this tool if set. + * @return The scan time, or 'unknown' if not set. + */ + public String getTime() { + return time; + } + + /** + * Set the scan time for this tool as a string describing the time. E.g., 0:17:29, + * which means 17 minutes 29 seconds. Formatted usually by using formatTime(). + * @param elapsed The scan time. + */ + public void setTime( String elapsed ) { + this.time = elapsed; + } + + /** + * Parse the scan time out of the results file name. Grabs the integer value at the end of the + * file after the last '-' in the filename, if specified. + * @param f The results file name. + */ + public void setTime ( File f ) { String filename = f.getName(); String time = filename.substring(filename.lastIndexOf('-')+1, filename.lastIndexOf('.')); try { int seconds = Integer.parseInt(time); - this.setTime(formatTime(seconds*1000)); + this.setTime(formatTime(seconds*1000)); } catch (Exception e) { this.setTime("Time not specified"); } - } + } - // We had to create a custom method for Fortify since we extract the contents of the .fpr - // file out into a temp file whose name looks like this: - // Benchmark_1.1-Fortify-13121.fpr8111236727473243675.fvdl + // We had to create a custom method for Fortify since we extract the contents of the .fpr + // file out into a temp file whose name looks like this: + // Benchmark_1.1-Fortify-13121.fpr8111236727473243675.fvdl - public void setFortifyTime ( File f ) { + public void setFortifyTime ( File f ) { String filename = f.getName(); // to make the same as normal filenames, strip off the '.fvdl' at the end of the filename filename = filename.substring (0, filename.lastIndexOf('.')-1); String time = filename.substring(filename.lastIndexOf('-')+1, filename.lastIndexOf('.')); try { int seconds = Integer.parseInt(time); - this.setTime(formatTime(seconds*1000)); + this.setTime(formatTime(seconds*1000)); } catch (Exception e) { this.setTime("Time not specified"); } - } - - public int totalResults() { - return map.size(); - } - - /** - * Convert the time it took to compute these results into a label to add to the scorecard. - * @param millis - compute time in milliseconds - * @return a String label of the compute time. (e.g., 1 Days 2:55:32) - */ - public static String formatTime(long millis) - { - if (millis < 0) - { - throw new IllegalArgumentException("Duration must be greater than zero!"); - } - - long days = TimeUnit.MILLISECONDS.toDays(millis); - millis -= TimeUnit.DAYS.toMillis(days); - long hours = TimeUnit.MILLISECONDS.toHours(millis); - millis -= TimeUnit.HOURS.toMillis(hours); - long minutes = TimeUnit.MILLISECONDS.toMinutes(millis); - millis -= TimeUnit.MINUTES.toMillis(minutes); - long seconds = TimeUnit.MILLISECONDS.toSeconds(millis); - - StringBuilder sb = new StringBuilder(64); - if (days > 0) { - sb.append(days); - if (days > 1 ) - sb.append(" Days "); - else sb.append(" Day "); - } - sb.append(hours); - if (minutes > 9) sb.append(":"); else sb.append(":0"); - sb.append(minutes); - if (seconds > 9) sb.append(":"); else sb.append(":0"); - sb.append(seconds); - - return(sb.toString()); - } - - /** - * Convert the time it took to compute these results into a label to add to the scorecard. - * @param millis - compute time in milliseconds - * @return a String label of the compute time. (e.g., 1 Days 2:55:32) - */ - public static String formatTime(String millis) { - - String result; - try { - long time = Long.valueOf(millis); - result = formatTime(time); - } catch (NumberFormatException e) { - throw new IllegalArgumentException("Provided value must be in integer in milliseconds. Value was: " - + millis); - } - return result; - } - - public String getShortName() { - return this.toolName; - } - + } + + /** + * Get the total number of results for these TestResults. + * @return The total number of results. + */ + public int getTotalResults() { + return map.size(); + } + + /** + * Convert the time it took to compute these results into a label to add to the scorecard. + * @param millis - compute time in milliseconds + * @return a String label of the compute time. (e.g., 1 Days 2:55:32) + */ + public static String formatTime(long millis) + { + if (millis < 0) + { + throw new IllegalArgumentException("Duration must be greater than zero!"); + } + + long days = TimeUnit.MILLISECONDS.toDays(millis); + millis -= TimeUnit.DAYS.toMillis(days); + long hours = TimeUnit.MILLISECONDS.toHours(millis); + millis -= TimeUnit.HOURS.toMillis(hours); + long minutes = TimeUnit.MILLISECONDS.toMinutes(millis); + millis -= TimeUnit.MINUTES.toMillis(minutes); + long seconds = TimeUnit.MILLISECONDS.toSeconds(millis); + + StringBuilder sb = new StringBuilder(64); + if (days > 0) { + sb.append(days); + if (days > 1 ) + sb.append(" Days "); + else sb.append(" Day "); + } + sb.append(hours); + if (minutes > 9) sb.append(":"); else sb.append(":0"); + sb.append(minutes); + if (seconds > 9) sb.append(":"); else sb.append(":0"); + sb.append(seconds); + + return(sb.toString()); + } + + /** + * Convert the time it took to compute these results into a label to add to the scorecard. + * @param millis - compute time in milliseconds + * @return a String label of the compute time. (e.g., 1 Days 2:55:32) + */ + public static String formatTime(String millis) { + + String result; + try { + long time = Long.valueOf(millis); + result = formatTime(time); + } catch (NumberFormatException e) { + throw new IllegalArgumentException( + "Provided value must be in integer in milliseconds. Value was: " + millis); + } + return result; + } + + public String getShortName() { + return this.toolName; + } + } From bfe2af6898e0d7bb6f1ad616464a0b5dab88b02f Mon Sep 17 00:00:00 2001 From: davewichers Date: Mon, 25 Jan 2021 09:58:16 -0500 Subject: [PATCH 91/92] Fix Crashtest input to scan time calculation to be seconds, not milliseconds. --- .../org/owasp/benchmark/score/parsers/CrashtestReader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/owasp/benchmark/score/parsers/CrashtestReader.java b/src/main/java/org/owasp/benchmark/score/parsers/CrashtestReader.java index 10d0427ab9..7178cd9775 100644 --- a/src/main/java/org/owasp/benchmark/score/parsers/CrashtestReader.java +++ b/src/main/java/org/owasp/benchmark/score/parsers/CrashtestReader.java @@ -52,7 +52,8 @@ public TestResults parse(File f) throws Exception { Node crashtest = doc.getDocumentElement(); String time = crashtest.getAttributes().getNamedItem("time").getNodeValue(); - tr.setTime(TestResults.formatTime(time)); + // They provide the time in seconds but formatTime expects milliseconds + tr.setTime(TestResults.formatTime(time + "000")); Node testsuite = getNamedChild( "testsuite", crashtest ); // tr.setToolVersion( version ); From 9943e8a6c4ee3ef3780acc0b7a1c99d3598a78d7 Mon Sep 17 00:00:00 2001 From: Nipuna Weerasekara Date: Sat, 30 Jan 2021 22:45:05 +0530 Subject: [PATCH 92/92] Add CodeQLReader as a parser for parsing CodeQL results Update BenchmarkScore to identify whether the provided SARIF file belongs to CodeQL or LGTM --- .../owasp/benchmark/score/BenchmarkScore.java | 23 ++- .../benchmark/score/parsers/CodeQLReader.java | 153 ++++++++++++++++++ 2 files changed, 173 insertions(+), 3 deletions(-) create mode 100644 src/main/java/org/owasp/benchmark/score/parsers/CodeQLReader.java diff --git a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java index 919dd43a36..e1bf308dc4 100644 --- a/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java +++ b/src/main/java/org/owasp/benchmark/score/BenchmarkScore.java @@ -48,6 +48,7 @@ import javax.xml.parsers.DocumentBuilderFactory; import org.apache.commons.io.FileUtils; +import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; @@ -77,6 +78,7 @@ import org.owasp.benchmark.score.parsers.JuliaReader; import org.owasp.benchmark.score.parsers.KiuwanReader; import org.owasp.benchmark.score.parsers.LGTMReader; +import org.owasp.benchmark.score.parsers.CodeQLReader; import org.owasp.benchmark.score.parsers.NetsparkerReader; import org.owasp.benchmark.score.parsers.NoisyCricketReader; import org.owasp.benchmark.score.parsers.OverallResult; @@ -736,9 +738,24 @@ else if ( line2 != null && line2.contains("Vendor") && line2.contains("Checkmarx } } - else if ( filename.endsWith( ".sarif" ) ) { - tr = new LGTMReader().parse( fileToParse ); - } + else if ( filename.endsWith( ".sarif" ) ) { + // CodeQL results and LGTM results both have the same extension .sarif + // But only the LGTM results have "semmle.sourceLanguage" as a key in ["run.properties"] + String content = new String(Files.readAllBytes(Paths.get(fileToParse.getPath()))); + JSONObject jsonobj = new JSONObject(content); + JSONArray runs = jsonobj.getJSONArray("runs"); + + try{ + for (int i = 0; i < runs.length(); i++){ + JSONObject run = runs.getJSONObject(i); + JSONObject properties = run.getJSONObject("properties"); + properties.getString("semmle.sourceLanguage"); + } + tr = new LGTMReader().parse( fileToParse ); // If "semmle.sourceLanguage" is available set the LGTMReader + } catch (JSONException e){ + tr = new CodeQLReader().parse( fileToParse ); // If "semmle.sourceLanguage" is not available set the CodeQLReader + } + } else if ( filename.endsWith( ".threadfix" ) ) { tr = new KiuwanReader().parse( fileToParse ); diff --git a/src/main/java/org/owasp/benchmark/score/parsers/CodeQLReader.java b/src/main/java/org/owasp/benchmark/score/parsers/CodeQLReader.java new file mode 100644 index 0000000000..741f4c270a --- /dev/null +++ b/src/main/java/org/owasp/benchmark/score/parsers/CodeQLReader.java @@ -0,0 +1,153 @@ +/** + * OWASP Benchmark Project + *

    + * This file is part of the Open Web Application Security Project (OWASP) + * Benchmark Project For details, please see + * https://owasp.org/www-project-benchmark/. + *

    + * The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms + * of the GNU General Public License as published by the Free Software Foundation, version 2. + *

    + * The OWASP Benchmark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details + * + * @author Dave Wichers + * @author Nipuna Weerasekara + * @created 2021 + */ + +package org.owasp.benchmark.score.parsers; + +import org.json.JSONArray; +import org.json.JSONObject; +import org.owasp.benchmark.score.BenchmarkScore; + +import java.io.File; +import java.nio.file.Files; +import java.nio.file.Paths; +import java.util.HashMap; + +public class CodeQLReader extends Reader { + + public TestResults parse(File f) throws Exception { + String content = new String(Files.readAllBytes(Paths.get(f.getPath()))); + + /* + * This parser was written against version 2.1.0 of the sarif-schema + * NOTE: To help understand contents of JSON file, use: http://jsonviewer.stack.hu to view it. + */ + JSONObject obj = new JSONObject(content); +// String resultsFormatVersion = obj.getString( "version" ); // Might be needed in future if format changes + + JSONArray runs = obj.getJSONArray("runs"); + + TestResults tr = new TestResults("CodeQL", false, TestResults.ToolType.SAST); + // Scan time is not included in the sarif-schema. But scan time is provided on their web site next to results + tr.setTime(f); // This grabs the scan time out of the filename, if provided + // e.g., Benchmark_1.2-CodeQL-v2.4.1-840.sarif, means the scan took 840 seconds. + + for (int i = 0; i < runs.length(); i++) { + // There are 1 or more runs in each results file, one per language found (Java, JavaScript, etc.) + JSONObject run = runs.getJSONObject(i); + + // First, set the version of LGTM used to do the scan + JSONObject driver = run.getJSONObject("tool").getJSONObject("driver"); + tr.setToolVersion(driver.getString("semanticVersion")); + + // Then, identify all the rules that report results and which CWEs they map to + JSONArray rules = driver.getJSONArray("rules"); + //System.out.println("Found: " + rules.length() + " rules."); + HashMap rulesUsed = parseLGTMRules(rules); + //System.out.println("Parsed: " + rulesUsed.size() + " rules."); + + // Finally, parse out all the results + JSONArray results = run.getJSONArray("results"); + //System.out.println("Found: " + results.length() + " results."); + + for (int j = 0; j < results.length(); j++) { + TestCaseResult tcr = parseLGTMFinding(results.getJSONObject(j), rulesUsed); //, version ); + if (tcr != null) { + tr.put(tcr); + } + } + + } + + return tr; + } + + private static final String LGTMCWEPREFIX = "external/cwe/cwe-"; + private static final int LGTMCWEPREFIXLENGTH = LGTMCWEPREFIX.length(); + + private HashMap parseLGTMRules(JSONArray rulesJSON) { + + HashMap rulesUsed = new HashMap(); + + for (int j = 0; j < rulesJSON.length(); j++) { + JSONObject ruleJSON = rulesJSON.getJSONObject(j); + + try { + String ruleName = ruleJSON.getString("name"); + JSONArray tags = ruleJSON.getJSONObject("properties").getJSONArray("tags"); + for (int i = 0; i < tags.length(); i++) { + String val = tags.getString(i); + if (val.startsWith(LGTMCWEPREFIX)) { +// System.out.println("Rule found for CWE: " + Integer.parseInt(val.substring(LGTMCWEPREFIXLENGTH))); +// int cwe = fixCWE( cweNumber ); + rulesUsed.put(ruleName, Integer.parseInt(val.substring(LGTMCWEPREFIXLENGTH))); + break; // Break out of for loop because we only want to use the first CWE it is mapped to + // currently. If they add rules where the first CWE is not the preferred one, then we need + // to implement fixCWE() and invoke it (commented out example below) + } + } + + } catch (Exception e) { + e.printStackTrace(); + } + } + return rulesUsed; + } + + private TestCaseResult parseLGTMFinding(JSONObject finding, HashMap rulesUsed) { + try { + TestCaseResult tcr = new TestCaseResult(); + String filename = null; + JSONArray locations = finding.getJSONArray("locations"); + filename = locations.getJSONObject(0).getJSONObject("physicalLocation") + .getJSONObject("artifactLocation").getString("uri"); + filename = filename.substring(filename.lastIndexOf('/')); + if (filename.contains(BenchmarkScore.TESTCASENAME)) { + String testNumber = filename.substring(BenchmarkScore.TESTCASENAME.length() + 1, filename.length() - 5); + tcr.setNumber(Integer.parseInt(testNumber)); + String ruleId = finding.getString("ruleId"); + Integer cweForRule = rulesUsed.get(ruleId); +// System.out.println("Found finding in: " + testNumber + " of type: " + ruleId + " CWE: " + cweForRule); + if (cweForRule == null) { + return null; + } + if (locations.length() > 1) { + System.out.println("Unexpectedly found more than one location for finding against rule: " + ruleId); + } + int cwe = cweForRule.intValue(); + tcr.setCWE(cwe); +// tcr.setCategory( props.getString( "subcategoryShortDescription" ) ); // Couldn't find any Category info in results file + tcr.setEvidence(finding.getJSONObject("message").getString("text")); + } + return tcr; + } catch (Exception e) { + e.printStackTrace(); + } + return null; + } + +/* + private int fixCWE( String cweNumber ) { + int cwe = Integer.parseInt( cweNumber ); + if ( cwe == 94 ) cwe = 643; + if ( cwe == 36 ) cwe = 22; + if ( cwe == 23 ) cwe = 22; + return cwe; + } +*/ +}