Fixes spec related to latest changes
This commit is contained in:
@@ -59,7 +59,7 @@ describe WPScan::Model::WpVersion do
|
||||
it 'returns the expected result' do
|
||||
@expected = [WPScan::Vulnerability.new(
|
||||
'WP 3.8 - Vuln 1',
|
||||
{ url: %w[url-4], osvdb: %w[11], wpvulndb: '3' },
|
||||
{ url: %w[url-4], wpvulndb: '3' },
|
||||
'AUTHBYPASS'
|
||||
)]
|
||||
end
|
||||
@@ -77,7 +77,7 @@ describe WPScan::Model::WpVersion do
|
||||
),
|
||||
WPScan::Vulnerability.new(
|
||||
'WP 3.8.1 - Vuln 2',
|
||||
{ url: %w[url-2 url-3], osvdb: %w[10], cve: %w[2014-0166], wpvulndb: '2' },
|
||||
{ url: %w[url-2 url-3], cve: %w[2014-0166], wpvulndb: '2' },
|
||||
nil,
|
||||
'3.8.2'
|
||||
)
|
||||
|
||||
12
spec/fixtures/db/themes.json
vendored
12
spec/fixtures/db/themes.json
vendored
@@ -15,8 +15,10 @@
|
||||
"updated_at" : "2015-03-05T19:37:47.000Z",
|
||||
"references": {
|
||||
"url" : [
|
||||
"http://research.evex.pw/?vuln=6",
|
||||
"http://packetstormsecurity.com/files/130652/"
|
||||
"http://research.evex.pw/?vuln=6"
|
||||
],
|
||||
"packetstorm": [
|
||||
"130652"
|
||||
]
|
||||
},
|
||||
"title" : "Dignitas 1.1.9 - Privilage Escalation",
|
||||
@@ -35,8 +37,10 @@
|
||||
"updated_at" : "2015-03-05T19:41:14.000Z",
|
||||
"references": {
|
||||
"url" : [
|
||||
"http://research.evex.pw/?vuln=6",
|
||||
"http://packetstormsecurity.com/files/130652/"
|
||||
"http://research.evex.pw/?vuln=6"
|
||||
],
|
||||
"packetstorm": [
|
||||
"130652"
|
||||
]
|
||||
},
|
||||
"title" : "Ya'aburnee 1.0.7 - Privilage Escalation",
|
||||
|
||||
4
spec/fixtures/db/wordpresses.json
vendored
4
spec/fixtures/db/wordpresses.json
vendored
@@ -19,7 +19,6 @@
|
||||
{
|
||||
"references" : {
|
||||
"cve" : ["2014-0166"],
|
||||
"osvdb" : ["10"],
|
||||
"url" : ["url-2","url-3"]
|
||||
},
|
||||
"fixed_in" : "3.8.2",
|
||||
@@ -36,8 +35,7 @@
|
||||
"vulnerabilities" : [
|
||||
{
|
||||
"references": {
|
||||
"url" : ["url-4"],
|
||||
"osvdb" : ["11"]
|
||||
"url" : ["url-4"]
|
||||
},
|
||||
"created_at" : "2014-08-01T10:58:19.000Z",
|
||||
"updated_at" : "2014-09-16T15:45:26.000Z",
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
| References:
|
||||
| - https://wpvulndb.com/vulnerabilities/7825
|
||||
| - http://research.evex.pw/?vuln=6
|
||||
| - http://packetstormsecurity.com/files/130652/
|
||||
| - https://packetstormsecurity.com/files/130652/
|
||||
|
|
||||
| The version could not be determined.
|
||||
|
||||
|
||||
@@ -33,8 +33,10 @@
|
||||
"fixed_in": null,
|
||||
"references": {
|
||||
"url": [
|
||||
"http://research.evex.pw/?vuln=6",
|
||||
"http://packetstormsecurity.com/files/130652/"
|
||||
"http://research.evex.pw/?vuln=6"
|
||||
],
|
||||
"packetstorm": [
|
||||
"130652"
|
||||
],
|
||||
"wpvulndb": [
|
||||
"7825"
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
| References:
|
||||
| - https://wpvulndb.com/vulnerabilities/2
|
||||
| - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-0166
|
||||
| - http://osvdb.org/show/osvdb/10
|
||||
| - url-2
|
||||
| - url-3
|
||||
|
||||
|
||||
@@ -28,9 +28,6 @@
|
||||
"cve": [
|
||||
"2014-0166"
|
||||
],
|
||||
"osvdb": [
|
||||
"10"
|
||||
],
|
||||
"url": [
|
||||
"url-2",
|
||||
"url-3"
|
||||
|
||||
Reference in New Issue
Block a user