Examples of Finding


Examples of com.denimgroup.threadfix.data.entities.Finding

              findingMap.get(FindingKey.PARAMETER).equals(N_A)) {
            findingMap.remove(FindingKey.PARAMETER);
          }
         
          findingMap.put(FindingKey.RAWFINDING, currentRawFinding.toString());
          Finding finding = constructFinding(findingMap);
         
          add(finding);
          findingMap = null;
          inFinding = false;
          currentRawFinding.setLength(0);
View Full Code Here

Examples of com.denimgroup.threadfix.data.entities.Finding

                    Permission.CAN_GENERATE_REPORTS,
                    Permission.CAN_MANAGE_DEFECT_TRACKERS,
                    Permission.CAN_MANAGE_USERS);

            model.addAttribute("application", application);
            model.addAttribute("finding", new Finding());
            model.addAttribute("applicationTypes", FrameworkType.values());
            model.addAttribute("contentPage", "applications/detailHeader.jsp");
            ControllerUtils.addSuccessMessage(request,
                    "The application was edited successfully.");
View Full Code Here

Examples of com.denimgroup.threadfix.data.entities.Finding

                    findingMap.put(FindingKey.VULN_CODE, currentChannelVulnName);
                    findingMap.put(FindingKey.SEVERITY_CODE, currentChannelSeverityName);
                    findingMap.put(FindingKey.REQUEST, currentAttackHTTPRequest);
                    findingMap.put(FindingKey.RAWFINDING, currentRawFinding.toString());

            Finding finding = constructFinding(findingMap);

            add(finding);
          }
   
          currentChannelSeverityName = null;
View Full Code Here

Examples of com.denimgroup.threadfix.data.entities.Finding

                    findingMap.put(FindingKey.SEVERITY_CODE, severityMap.get(findingMap.get(FindingKey.VULN_CODE)));
                findingMap.put(FindingKey.RAWFINDING, currentRawFinding.toString());
                // Set CWE 16 Configuration if there no CWE in scan file
                if (findingMap.get(FindingKey.CWE) == null || findingMap.get(FindingKey.CWE).isEmpty())
                    findingMap.put(FindingKey.CWE, "16");
                Finding finding = constructFinding(findingMap);

                add(finding);
                findingMap = null;
                inFinding = false;
                currentRawFinding.setLength(0);
View Full Code Here

Examples of com.denimgroup.threadfix.data.entities.Finding

          findingMap.put(FindingKey.SEVERITY_CODE, errorSeverity);
          findingMap.put(FindingKey.DETAIL, errorMsg);
          findingMap.put(FindingKey.RECOMMENDATION, errorVerbose);
          findingMap.put(FindingKey.PATH, findingPath);
                findingMap.put(FindingKey.RAWFINDING, currentRawFinding.toString());
          Finding finding = constructFinding(findingMap);

          if (finding == null) {
            throw new IllegalStateException("XML was invalid or we didn't parse out enough information");
          }
          finding.setDataFlowElements(dataFlowElements);
          add(finding);
         
          errorId = null;
          errorSeverity = null;
          errorMsg = null;
View Full Code Here

Examples of com.denimgroup.threadfix.data.entities.Finding

                findingMap.put(FindingKey.RESPONSE, currentResponse);
                findingMap.put(FindingKey.DETAIL, currentScannerDetail);
                findingMap.put(FindingKey.RECOMMENDATION, currentScannerRecommendation);
                findingMap.put(FindingKey.RAWFINDING, currentRawFinding.toString());

          Finding finding = constructFinding(findingMap);
         
          add(finding);
         
          currentChannelVulnCode = null;
          currentSeverityCode    = null;
View Full Code Here

Examples of com.denimgroup.threadfix.data.entities.Finding

        private String vulnTag = null;
        private boolean inAttackVector = false;
        private StringBuffer currentRawFinding = new StringBuffer();
   
    private void addFinding() {
      Finding finding = constructFinding(map);
     
      if (finding == null) {
        LOG.warn("Finding was null.");
      } else {
        String nativeId = hashFindingInfo(map.get(FindingKey.VULN_CODE), map.get(FindingKey.PATH), map.get(FindingKey.PARAMETER));
        finding.setNativeId(nativeId);
        finding.setDisplayId(map.get(FindingKey.NATIVE_ID));
      }
     
      if (findingDateStatusMap.containsKey(finding)){
        findingDateStatusMap.get(finding).add(dateStatus);
      } else {
View Full Code Here

Examples of com.denimgroup.threadfix.data.entities.Finding

                findingMap.put(FindingKey.PARAMETER, param);
                findingMap.put(FindingKey.VULN_CODE, vuln);
                findingMap.put(FindingKey.SEVERITY_CODE, severity);
                findingMap.put(FindingKey.RAWFINDING, currentRawFinding.toString());

                Finding finding = constructFinding(findingMap);
                add(finding);

                inVuln = false;
                param = null;
                path = null;
View Full Code Here

Examples of com.denimgroup.threadfix.data.entities.Finding

        private String vulnTag = null;
        private StringBuffer currentRawFinding    = new StringBuffer();

    private void addFinding() {
      Finding finding = constructFinding(map);

      if (finding == null) {
        LOG.warn("Finding was null.");
      } else {
        String nativeId = hashFindingInfo(map.get(FindingKey.VULN_CODE), map.get(FindingKey.PATH), map.get(FindingKey.PARAMETER));
        finding.setNativeId(nativeId);
        finding.setDisplayId(map.get(FindingKey.NATIVE_ID));
      }

      if (findingDateStatusMap.containsKey(finding)){
        findingDateStatusMap.get(finding).add(dateStatus);
      } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.