Fixes spec related to latest changes

This commit is contained in:
erwanlr
2019-08-24 15:17:18 +01:00
parent 23d558a6d7
commit d9083f8b5f
7 changed files with 22 additions and 22 deletions

View File

@@ -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'
)

View File

@@ -15,15 +15,17 @@
"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",
"id" : 7825,
"vuln_type" : "AUTHBYPASS"
}
]
},
"title" : "Dignitas 1.1.9 - Privilage Escalation",
"id" : 7825,
"vuln_type" : "AUTHBYPASS"
}
]
},
"yaaburnee-themes": {
"popular": false,
@@ -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",

View File

@@ -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",

View File

@@ -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.

View File

@@ -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"

View File

@@ -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

View File

@@ -28,9 +28,6 @@
"cve": [
"2014-0166"
],
"osvdb": [
"10"
],
"url": [
"url-2",
"url-3"