Examples of Vulnerability


Examples of org.owasp.dependencycheck.dependency.Vulnerability

        File struts = new File(this.getClass().getClassLoader().getResource("struts2-core-2.1.2.jar").getPath());
        Dependency dependency = new Dependency(struts);
        dependency.addIdentifier("cpe", "cpe:/a:microsoft:.net_framework:4.5", "some url not needed for this test");
        String sha1 = dependency.getSha1sum();
        dependency.setSha1sum("384FAA82E193D4E4B0546059CA09572654BC3970");
        Vulnerability v = createVulnerability();
        dependency.addVulnerability(v);

        //cwe
        SuppressionRule instance = new SuppressionRule();
        instance.setSha1(sha1);
View Full Code Here

Examples of org.owasp.dependencycheck.dependency.Vulnerability

        assertEquals(2, dependency.getIdentifiers().size());

    }

    private Vulnerability createVulnerability() {
        Vulnerability v = new Vulnerability();
        v.setCwe("CWE-287 Improper Authentication");
        v.setName("CVE-2013-1337");
        v.setCvssScore(7.5f);
        return v;
    }
View Full Code Here

Examples of org.zaproxy.zap.model.Vulnerability

        alertEditName.setModel(nameListModel);
        alertEditName.addActionListener(new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
            if ("comboBoxChanged".equals(e.getActionCommand())) {
              Vulnerability v = getVulnerability((String)alertEditName.getSelectedItem());
              if (v != null) {
                if (v.getDescription() != null && v.getDescription().length() > 0) {
                  alertDescription.setText(v.getDescription());
                }
                if (v.getSolution() != null && v.getSolution().length() > 0) {
                  alertSolution.setText(v.getSolution());
                }
                if (v.getReferences() != null) {
                  StringBuffer sb = new StringBuffer();
                  for (String ref : v.getReferences()) {
                    sb.append(ref);
                    sb.append("\n");
                  }
                  alertReference.setText(sb.toString());
                }
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.