-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/base-unittests' into develop #20
- Loading branch information
Showing
17 changed files
with
264 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ | |
}, | ||
{ | ||
"url": "http://cwe.mitre.org/data/definitions/548.html", | ||
"title": "CWE" | ||
"title": "CWE-548" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
vulndb>=0.0.8 | ||
requests | ||
jsonschema | ||
pyopenssl | ||
ndg-httpsclient | ||
pyasn1 |
Oops, something went wrong.