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