Work on json database file parsing, still needs some work.
This commit is contained in:
14
spec/samples/common/models/vulnerability/json_item.json
Normal file
14
spec/samples/common/models/vulnerability/json_item.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"id": "3911",
|
||||
"title": "Vuln Title",
|
||||
"references": "Ref 1,Ref 2",
|
||||
"secunia": "secunia",
|
||||
"osvdb": "osvdb",
|
||||
"cve": "2011-001",
|
||||
"metasploit": "exploit/ex1",
|
||||
"exploitdb": "exploitdb",
|
||||
"created_at": "2014-07-28T12:10:45.000Z",
|
||||
"updated_at": "2014-07-28T12:10:45.000Z",
|
||||
"type": "CSRF",
|
||||
"fixed_in": "1.0"
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
<vulnerability>
|
||||
<title>Vuln Title</title>
|
||||
<references>
|
||||
<metasploit>exploit/ex1</metasploit>
|
||||
<url>Ref 1</url>
|
||||
<url>Ref 2</url>
|
||||
<cve>2011-001</cve>
|
||||
<secunia>secunia</secunia>
|
||||
<osvdb>osvdb</osvdb>
|
||||
<exploitdb>exploitdb</exploitdb>
|
||||
</references>
|
||||
<type>CSRF</type>
|
||||
<fixed_in>1.0</fixed_in>
|
||||
</vulnerability>
|
||||
1
spec/samples/common/models/wp_item/vulnerable/empty.json
Normal file
1
spec/samples/common/models/wp_item/vulnerable/empty.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<vulnerabilities>
|
||||
|
||||
</vulnerabilities>
|
||||
@@ -0,0 +1,35 @@
|
||||
[
|
||||
{
|
||||
"not-this-one":{
|
||||
"vulnerabilities":[
|
||||
{
|
||||
"id":2989,
|
||||
"title":"Administrator-exploitable blind SQLi in WordPress 1.0 - 3.8.1",
|
||||
"references":"https://security.dxw.com/advisories/sqli-in-wordpress-3-6-1/,http://www.example.com",
|
||||
"created_at":"2014-07-28T12:10:07.000Z",
|
||||
"updated_at":"2014-07-28T12:43:41.000Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"neo":{
|
||||
"vulnerabilities":[
|
||||
{
|
||||
"id":2993,
|
||||
"title":"I'm the one",
|
||||
"references":"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,37 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<vulnerabilities>
|
||||
|
||||
<item name="not-this-one">
|
||||
<vulnerability>
|
||||
<title>I should not appear in the results</title>
|
||||
<references>
|
||||
<metasploit>exploit/ex1</metasploit>
|
||||
<url>Ref 1</url>
|
||||
<url>Ref 2</url>
|
||||
<cve>2011-001</cve>
|
||||
<secunia>secunia</secunia>
|
||||
<osvdb>osvdb</osvdb>
|
||||
<exploitdb>exploitdb</exploitdb>
|
||||
</references>
|
||||
<type>RFI</type>
|
||||
</vulnerability>
|
||||
</item>
|
||||
|
||||
<item name="neo">
|
||||
<vulnerability>
|
||||
<title>I'm the one</title>
|
||||
<references>
|
||||
<metasploit>exploit/ex1</metasploit>
|
||||
<url>Ref 1</url>
|
||||
<url>Ref 2</url>
|
||||
<cve>2011-001</cve>
|
||||
<secunia>secunia</secunia>
|
||||
<osvdb>osvdb</osvdb>
|
||||
<exploitdb>exploitdb</exploitdb>
|
||||
</references>
|
||||
<type>XSS</type>
|
||||
</vulnerability>
|
||||
</item>
|
||||
|
||||
</vulnerabilities>
|
||||
@@ -0,0 +1,56 @@
|
||||
[
|
||||
{
|
||||
"mr-smith":{
|
||||
"vulnerabilities":[
|
||||
{
|
||||
"id":2989,
|
||||
"title":"I should not appear in the results",
|
||||
"references":"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":"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"white-rabbit":{
|
||||
"vulnerabilities":[
|
||||
{
|
||||
"id":2993,
|
||||
"title":"Follow me!",
|
||||
"references":"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,48 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<vulnerabilities>
|
||||
<plugin name="mr-smith">
|
||||
<vulnerability>
|
||||
<title>I should not appear in the results</title>
|
||||
<references>
|
||||
<metasploit>exploit/ex1</metasploit>
|
||||
<url>Ref 1</url>
|
||||
<url>Ref 2</url>
|
||||
<cve>2011-001</cve>
|
||||
<secunia>secunia</secunia>
|
||||
<osvdb>osvdb</osvdb>
|
||||
<exploitdb>exploitdb</exploitdb>
|
||||
</references>
|
||||
<type>RCE</type>
|
||||
</vulnerability>
|
||||
<vulnerability>
|
||||
<title>Neither do I</title>
|
||||
<references>
|
||||
<metasploit>exploit/ex1</metasploit>
|
||||
<url>Ref 1</url>
|
||||
<url>Ref 2</url>
|
||||
<cve>2011-001</cve>
|
||||
<secunia>secunia</secunia>
|
||||
<osvdb>osvdb</osvdb>
|
||||
<exploitdb>exploitdb</exploitdb>
|
||||
</references>
|
||||
<type>FPD</type>
|
||||
</vulnerability>
|
||||
</plugin>
|
||||
|
||||
<plugin name="white-rabbit">
|
||||
<vulnerability>
|
||||
<title>Follow me!</title>
|
||||
<references>
|
||||
<metasploit>exploit/ex1</metasploit>
|
||||
<url>Ref 1</url>
|
||||
<url>Ref 2</url>
|
||||
<cve>2011-001</cve>
|
||||
<secunia>secunia</secunia>
|
||||
<osvdb>osvdb</osvdb>
|
||||
<exploitdb>exploitdb</exploitdb>
|
||||
</references>
|
||||
<type>REDIRECT</type>
|
||||
</vulnerability>
|
||||
</plugin>
|
||||
</vulnerabilities>
|
||||
@@ -0,0 +1,56 @@
|
||||
[
|
||||
{
|
||||
"mr-smith":{
|
||||
"vulnerabilities":[
|
||||
{
|
||||
"id":2989,
|
||||
"title":"I should not appear in the results",
|
||||
"references":"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":"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"the-oracle":{
|
||||
"vulnerabilities":[
|
||||
{
|
||||
"id":2993,
|
||||
"title":"I see you",
|
||||
"references":"Ref 1,Ref 2",
|
||||
"osvdb":"osvdb",
|
||||
"cve":"2011-001",
|
||||
"secunia":"secunia",
|
||||
"metasploit":"exploit/ex1",
|
||||
"exploitdb":"exploitdb",
|
||||
"type":"FPD",
|
||||
"fixed_in":"",
|
||||
"created_at":"2014-07-28T12:10:07.000Z",
|
||||
"updated_at":"2014-07-28T12:10:07.000Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,48 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<vulnerabilities>
|
||||
<theme name="not-this-one">
|
||||
<vulnerability>
|
||||
<title>I should not appear in the results</title>
|
||||
<references>
|
||||
<metasploit>exploit/ex1</metasploit>
|
||||
<url>Ref 1</url>
|
||||
<url>Ref 2</url>
|
||||
<cve>2011-001</cve>
|
||||
<secunia>secunia</secunia>
|
||||
<osvdb>osvdb</osvdb>
|
||||
<exploitdb>exploitdb</exploitdb>
|
||||
</references>
|
||||
<type>SQLI</type>
|
||||
</vulnerability>
|
||||
<vulnerability>
|
||||
<title>Neither do I</title>
|
||||
<references>
|
||||
<metasploit>exploit/ex1</metasploit>
|
||||
<url>Ref 1</url>
|
||||
<url>Ref 2</url>
|
||||
<cve>2011-001</cve>
|
||||
<secunia>secunia</secunia>
|
||||
<osvdb>osvdb</osvdb>
|
||||
<exploitdb>exploitdb</exploitdb>
|
||||
</references>
|
||||
<type>XSS</type>
|
||||
</vulnerability>
|
||||
</theme>
|
||||
|
||||
<theme name="the-oracle">
|
||||
<vulnerability>
|
||||
<title>I see you</title>
|
||||
<references>
|
||||
<metasploit>exploit/ex1</metasploit>
|
||||
<url>Ref 1</url>
|
||||
<url>Ref 2</url>
|
||||
<cve>2011-001</cve>
|
||||
<secunia>secunia</secunia>
|
||||
<osvdb>osvdb</osvdb>
|
||||
<exploitdb>exploitdb</exploitdb>
|
||||
</references>
|
||||
<type>FPD</type>
|
||||
</vulnerability>
|
||||
</theme>
|
||||
</vulnerabilities>
|
||||
@@ -0,0 +1,42 @@
|
||||
[
|
||||
{
|
||||
"3.5":{
|
||||
"vulnerabilities":[
|
||||
{
|
||||
"id":2989,
|
||||
"title":"I should not appear in the results",
|
||||
"references":"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"3.2":{
|
||||
"vulnerabilities":[
|
||||
{
|
||||
"id":2993,
|
||||
"title":"Here I Am",
|
||||
"references":"Ref 1,Ref 2",
|
||||
"osvdb":"osvdb",
|
||||
"cve":"2011-001",
|
||||
"secunia":"secunia",
|
||||
"metasploit":"exploit/ex1",
|
||||
"exploitdb":"exploitdb",
|
||||
"type":"SQLI",
|
||||
"fixed_in":"",
|
||||
"created_at":"2014-07-28T12:10:07.000Z",
|
||||
"updated_at":"2014-07-28T12:10:07.000Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,35 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<vulnerabilities>
|
||||
<wordpress version="3.5">
|
||||
<vulnerability>
|
||||
<title>I should not appear in the results</title>
|
||||
<references>
|
||||
<metasploit>exploit/ex1</metasploit>
|
||||
<url>Ref 1</url>
|
||||
<url>Ref 2</url>
|
||||
<cve>2011-001</cve>
|
||||
<secunia>secunia</secunia>
|
||||
<osvdb>osvdb</osvdb>
|
||||
<exploitdb>exploitdb</exploitdb>
|
||||
</references>
|
||||
<type>XSS</type>
|
||||
</vulnerability>
|
||||
</wordpress>
|
||||
|
||||
<wordpress version="3.2">
|
||||
<vulnerability>
|
||||
<title>Here I Am</title>
|
||||
<references>
|
||||
<metasploit>exploit/ex1</metasploit>
|
||||
<url>Ref 1</url>
|
||||
<url>Ref 2</url>
|
||||
<cve>2011-001</cve>
|
||||
<secunia>secunia</secunia>
|
||||
<osvdb>osvdb</osvdb>
|
||||
<exploitdb>exploitdb</exploitdb>
|
||||
</references>
|
||||
<type>SQLI</type>
|
||||
</vulnerability>
|
||||
</wordpress>
|
||||
</vulnerabilities>
|
||||
Reference in New Issue
Block a user