forked from opendocman/opendocman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed opendocman#241 - csrf protection
- Loading branch information
1 parent
2e76cd8
commit 162c084
Showing
7 changed files
with
107 additions
and
6 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 |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
Thumbs.db | ||
/nbproject | ||
config.php | ||
vendor |
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,11 @@ | ||
{ | ||
"require": { | ||
"owasp/csrf-protector-php": "dev-issue34-config-file-location" | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "vcs", | ||
"url": "https://github.com/stephenlawrence/CSRF-Protector-PHP" | ||
} | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
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,26 @@ | ||
<?php | ||
/** | ||
* Configuration file for CSRF Protector | ||
* Necessary configurations are (library would throw exception otherwise) | ||
* ---- logDirectory | ||
* ---- failedAuthAction | ||
* ---- jsPath | ||
* ---- jsUrl | ||
* ---- tokenLength | ||
*/ | ||
return array( | ||
"CSRFP_TOKEN" => "", | ||
"logDirectory" => "../log", | ||
"failedAuthAction" => array( | ||
"GET" => 0, | ||
"POST" => 0), | ||
"errorRedirectionPage" => "", | ||
"customErrorMessage" => "", | ||
"jsPath" => "vendor/owasp/csrf-protector-php/js/csrfprotector.js", | ||
"jsUrl" => "http://192.168.99.100/vendor/owasp/csrf-protector-php/js/csrfprotector.js", | ||
"tokenLength" => 10, | ||
"disabledJavascriptMessage" => "This site attempts to protect users against <a href=\"https://www.owasp.org/index.php/Cross-Site_Request_Forgery_%28CSRF%29\"> | ||
Cross-Site Request Forgeries </a> attacks. In order to do so, you must have JavaScript enabled in your web browser otherwise this site will fail to work correctly for you. | ||
See details of your web browser for how to enable JavaScript.", | ||
"verifyGetFor" => array() | ||
); |
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