Skip to content

Commit

Permalink
Fix specs #853
Browse files Browse the repository at this point in the history
  • Loading branch information
ethicalhack3r committed Aug 14, 2015
1 parent d0e868f commit 8727935
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions spec/samples/common/models/wp_plugin/vulnerable/plugins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
[
{
"name": "mr-smith",
"vulnerabilities":[
{
"id":2993,
"title":"I should not appear in the results",
"references": {
"url":"Ref 1,Ref 2",
"osvdb":"osvdb",
"cve":"2011-001",
"secunia":"secunia",
"metasploit":"exploit/ex1",
"exploitdb":"exploitdb"
},
"type":"XSS",
"fixed_in":"",
"created_at":"2014-07-28T12:10:07.000Z",
"updated_at":"2014-07-28T12:10:07.000Z"
},
{
"id":2989,
"title":"Neither do I",
"references": {
"url":"Ref 1,Ref 2",
"osvdb":"osvdb",
"cve":"2011-001",
"secunia":"secunia",
"metasploit":"exploit/ex1",
"exploitdb":"exploitdb"
},
"type":"XSS",
"fixed_in":"",
"created_at":"2014-07-28T12:10:07.000Z",
"updated_at":"2014-07-28T12:10:07.000Z"
}
]
},
{
"name": "white-rabbit",
"vulnerabilities": [
{
"id":2993,
"title":"Follow me!",
"references": {
"url":"Ref 1,Ref 2",
"osvdb":"osvdb",
"cve":"2011-001",
"secunia":"secunia",
"metasploit":"exploit/ex1",
"exploitdb":"exploitdb"
},
"type":"REDIRECT",
"fixed_in":"",
"created_at":"2014-07-28T12:10:07.000Z",
"updated_at":"2014-07-28T12:10:07.000Z"
}
]
}
]

1 comment on commit 8727935

@erwanlr
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

References should be array there :)

"url": ["Ref 1" , "Ref 2"],
"cve": ["2011-001"],

Please sign in to comment.