public class CveItemOperator extends Object
| Constructor and Description |
|---|
CveItemOperator() |
| Modifier and Type | Method and Description |
|---|---|
String |
extractBaseEcosystem(DefCveItem cve,
String description)
Analyzes the description to determine if the vulnerability/software is
for a specific known ecosystem.The ecosystem can be used later for
filtering CPE matches.
|
protected String |
extractBaseEcosystemFromReferences(DefCveItem cve) |
String |
extractDescription(DefCveItem cve)
Utility method to extract the "english" description from a given CVE
entry.
|
String |
extractEcosystem(String baseEcosystem,
VulnerableSoftware parsedCpe)
Attempts to determine the ecosystem based on the vendor, product and
targetSw.
|
boolean |
isRejected(String description)
Determines if the CVE description includes the ** REJECT ** text
indicating that the CVE was requested but ultimately rejected.
|
public String extractDescription(DefCveItem cve)
cve - a reference to a CVE objectpublic String extractBaseEcosystem(DefCveItem cve, String description)
cve - a reference to the CVEdescription - the description to analyzenullprotected String extractBaseEcosystemFromReferences(DefCveItem cve)
public String extractEcosystem(String baseEcosystem, VulnerableSoftware parsedCpe)
baseEcosystem - the base ecosystemparsedCpe - the CPE identifierpublic boolean isRejected(String description)
description - the CVE texttrue if the CVE text includes `** REFECT **`;
otherwise falseCopyright © 2012–2020 OWASP. All rights reserved.