feat(scan): WordPress Vulnerability Scan (core, plugin, theme) (#769)

https://github.com/future-architect/vuls/pull/769
This commit is contained in:
kazuminn
2019-04-08 17:27:44 +09:00
committed by Kota Kanbe
parent 91df593566
commit 99c65eff48
59 changed files with 1284 additions and 602 deletions

View File

@@ -140,6 +140,7 @@ func (v CveContents) References(myFamily string) (values []CveContentRefs) {
})
}
}
return
}
@@ -230,6 +231,8 @@ func NewCveContentType(name string) CveContentType {
return DebianSecurityTracker
case "microsoft":
return Microsoft
case "wordpress":
return WPVulnDB
default:
return Unknown
}
@@ -269,6 +272,9 @@ const (
// Microsoft is Microsoft
Microsoft CveContentType = "microsoft"
// WPVulnDB is WordPress
WPVulnDB CveContentType = "wpvulndb"
// Unknown is Unknown
Unknown CveContentType = "unknown"
)
@@ -286,6 +292,7 @@ var AllCveContetTypes = CveContentTypes{
Ubuntu,
RedHatAPI,
DebianSecurityTracker,
WPVulnDB,
}
// Except returns CveContentTypes except for given args