mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-25 10:32:00 +01:00
fixed bug causing vulnerabilities to be missed
Former-commit-id: 5c6421ea8475db16f7184340fa5b8b2033d53b29
This commit is contained in:
@@ -46,6 +46,7 @@ import org.owasp.dependencycheck.utils.Pair;
|
|||||||
* @author Jeremy Long <jeremy.long@owasp.org>
|
* @author Jeremy Long <jeremy.long@owasp.org>
|
||||||
*/
|
*/
|
||||||
public class CveDB {
|
public class CveDB {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The logger.
|
* The logger.
|
||||||
*/
|
*/
|
||||||
@@ -733,8 +734,10 @@ public class CveDB {
|
|||||||
final boolean isStruts = "apache".equals(vendor) && "struts".equals(product);
|
final boolean isStruts = "apache".equals(vendor) && "struts".equals(product);
|
||||||
final DependencyVersion v = parseDependencyVersion(cpeId);
|
final DependencyVersion v = parseDependencyVersion(cpeId);
|
||||||
final boolean prevAffected = previous != null && !previous.isEmpty();
|
final boolean prevAffected = previous != null && !previous.isEmpty();
|
||||||
if (identifiedVersion == null || "-".equals(identifiedVersion.toString())) {
|
if (v == null || "-".equals(v.toString())) { //all versions
|
||||||
if (v == null || "-".equals(v.toString())) {
|
affected = true;
|
||||||
|
} else if (identifiedVersion == null || "-".equals(identifiedVersion.toString())) {
|
||||||
|
if (prevAffected) {
|
||||||
affected = true;
|
affected = true;
|
||||||
}
|
}
|
||||||
} else if (identifiedVersion.equals(v) || (prevAffected && identifiedVersion.compareTo(v) < 0)) {
|
} else if (identifiedVersion.equals(v) || (prevAffected && identifiedVersion.compareTo(v) < 0)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user