Skip to content

Commit

Permalink
Merge branch 'feature/base-unittests' into develop #20
Browse files Browse the repository at this point in the history
  • Loading branch information
andresriancho committed Apr 2, 2015
2 parents 051b4bf + 1c283ac commit 476c4be
Show file tree
Hide file tree
Showing 17 changed files with 264 additions and 46 deletions.
15 changes: 15 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# This file is used to configure the continuous integration for vulndb/data
#
# As a user you don't need to understand this file.
#
machine:
python:
version: 2.7.9

dependencies:
post:
- pip install --upgrade setuptools
- pip install --upgrade -r tests/requirements.txt
- pip --version
- pip freeze
2 changes: 1 addition & 1 deletion db/14-cvs-svn-user-disclosure.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"references": [
{
"url": "http://cwe.mitre.org/data/definitions/200.html",
"title": "CWE"
"title": "CWE-200"
}
]
}
2 changes: 1 addition & 1 deletion db/15-directory-listing.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
{
"url": "http://cwe.mitre.org/data/definitions/548.html",
"title": "CWE"
"title": "CWE-548"
}
]
}
13 changes: 8 additions & 5 deletions db/21-html-object.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
"title": "HTML object",
"severity": "informational",
"description": [
"Logs the existence of HTML object tags. Since the tool",
"can't execute things like Java Applets and Flash this",
"serves as a heads-up to the penetration tester to review",
"Most automated tools are not able to analyze the security of client-side",
"technologies such as Flash and Java applets. This informational finding",
"serves as a heads-up to the information security specialist to review",
"the objects in question using a different method."
],
"fix": {
"effort": 50,
"guidance": ""
"effort": 120,
"guidance": [
"Analyze the objects using manual analysis techniques such as",
"a local proxy, decompilation or reverse engineering."
]
}
}
2 changes: 1 addition & 1 deletion db/23-publicly-writable-directory.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"references": [
{
"url": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html",
"title": "W3"
"title": "RFC-2616 document"
}
]
}
44 changes: 44 additions & 0 deletions db/26-access-control-allow-origin-star.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"id": 26,
"title": "Access-Control-Allow-Origin header set to '*'",
"severity": "medium",
"description": [
"Cross-Origin Resource Sharing (CORS) is one of the new HTML5",
"technologies which is widely implemented to create Web2.0 applications.",
"CORS allows the browser to perform HTTP requests to a domain outside",
"the Same-Origin Policy and access the response body. This feature is",
"secured by a new set of HTTP headers, being `Access-Control-Allow-Origin`",
"one of the most important ones.",
"\n\n",
"It was possible to identify an HTTP response which contained the",
"`Access-Control-Allow-Origin` header value set to '*', which allows any",
"third-party domain to perform requests and read the responses.",
"While this configuration is not a vulnerability per-se, it's only",
"recommended for sites which provide information that's public such as",
"weather or stock prices."
],
"fix": {
"effort": 50,
"guidance": [
"All CORS requests include the `Origin` header which indicates",
"the source domain name. Create a server-side list of trusted",
"domains which can consume the CORS resources and when a request is",
"received set the `Access-Control-Allow-Origin` response header",
"to the right value from the list matching the `Origin` request header."
]
},
"references": [
{
"url": "https://www.owasp.org/index.php/CORS_OriginHeaderScrutiny",
"title": "CORS security"
},
{
"url": "http://www.w3.org/TR/cors/",
"title": "CORS W3C Specification"
},
{
"url": "https://en.wikipedia.org/wiki/Cross-origin_resource_sharing",
"title": "CORS article at Wikipedia"
}
]
}
16 changes: 0 additions & 16 deletions db/26-missing-access-control-allow-origin-header.json

This file was deleted.

14 changes: 7 additions & 7 deletions db/29-interesting-response.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"title": "Interesting response",
"severity": "informational",
"description": [
"The server responded with a non 200 (OK) nor 404 (Not Found) status",
"code. This is a non-issue, however exotic HTTP response status codes",
"can provide useful insights into the behavior of the web application",
"and assist with the penetration test."
"The server responded with a strange HTTP status code. This is a non-issue",
"however exotic HTTP response status codes can provide useful insights",
"into the behavior of the web application and assist with the information",
"security analysis."
],
"fix": {
"effort": 50,
"guidance": ""
"effort": 60,
"guidance": "Manually inspect the HTTP response status code and body"
},
"tags": [
"interesting",
Expand All @@ -20,7 +20,7 @@
"references": [
{
"url": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
"title": "w3.org"
"title": "RFC-2616"
}
]
}
2 changes: 1 addition & 1 deletion db/44-source-code-disclosure.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"references": [
{
"url": "http://cwe.mitre.org/data/definitions/540.html",
"title": "CWE"
"title": "CWE-540"
}
]
}
6 changes: 3 additions & 3 deletions db/53-missing-x-frame-options-header.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
"references": [
{
"url": "http://tools.ietf.org/html/rfc7034",
"title": "RFC"
"title": "RFC-7034"
},
{
"url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options",
"title": "MDN"
"title": "Mozilla developer network"
},
{
"url": "https://www.owasp.org/index.php/Clickjacking",
"title": "OWASP"
"title": "OWASP Clickjacking document"
}
]
}
8 changes: 4 additions & 4 deletions db/6-code-injection.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@
"references": [
{
"url": "http://docs.python.org/py3k/library/functions.html#eval",
"title": "Python"
"title": "Python eval documentation"
},
{
"url": "http://www.aspdev.org/asp/asp-eval-execute/",
"title": "ASP"
"title": "ASP eval documentation"
},
{
"url": "http://php.net/manual/en/function.eval.php",
"title": "PHP"
"title": "PHP eval documentation"
},
{
"url": "http://perldoc.perl.org/functions/eval.html",
"title": "Perl"
"title": "Perl eval documentation"
}
]
}
27 changes: 27 additions & 0 deletions db/72-cache-control-headers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"id": 72,
"title": "Insecure or no Cache-Control header",
"severity": "low",
"description": [
"The `cache-control` and `pragma` HTTP header have not been set properly",
"allowing the browser and proxies to cache the HTTP response."
],
"fix": {
"effort": 10,
"guidance": [
"Ensure that the `Cache-control` HTTP response header is set to",
"`no-cache, no-store` and the `Pragma` header must be set to `no-cache`."
]
},
"tags": [
"browser",
"cache",
"session"
],
"references": [
{
"url": "https://www.owasp.org/index.php/Session_Management_Cheat_Sheet#Web_Content_Caching",
"title": "Session Management Cheat Sheet"
}
]
}
10 changes: 5 additions & 5 deletions db/8-code-injection-timing-attack.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@
"references": [
{
"url": "http://docs.python.org/py3k/library/functions.html#eval",
"title": "Python"
"title": "Python eval documentation"
},
{
"url": "http://www.aspdev.org/asp/asp-eval-execute/",
"title": "ASP"
"title": "ASP eval documentation"
},
{
"url": "http://en.wikipedia.org/wiki/Eval#Ruby",
"title": "Ruby"
"title": "Ruby eval documentation"
},
{
"url": "http://php.net/manual/en/function.eval.php",
"title": "PHP"
"title": "PHP eval documentation"
},
{
"url": "http://perldoc.perl.org/functions/eval.html",
"title": "Perl"
"title": "Perl eval documentation"
}
]
}
4 changes: 2 additions & 2 deletions db/9-common-directory.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
"references": [
{
"url": "http://cwe.mitre.org/data/definitions/538.html",
"title": "CWE"
"title": "CWE-538"
},
{
"url": "https://www.owasp.org/index.php/Forced_browsing",
"title": "OWASP"
"title": "OWASP - Forced browsing"
}
]
}
6 changes: 6 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
vulndb>=0.0.8
requests
jsonschema
pyopenssl
ndg-httpsclient
pyasn1
Loading

0 comments on commit 476c4be

Please sign in to comment.