cerebrate-project / cerebrate

Cerebrate is an open-source platform meant to act as a trusted contact information provider and interconnection orchestrator for other security tools.
https://www.cerebrate-project.org/
GNU Affero General Public License v3.0
83 stars 17 forks source link

Adding brood: "The request has been black-holed" #61

Open ghost opened 3 years ago

ghost commented 3 years ago

On http://cerebrate.example:8000/broods/add I entered a name, the URL and my Authkey. Description and Organisation are left empty (Organisation drop-down is empty). Checked Trusted upstream source and Enable pulling of trust information

Pressing submit, I land on a page

The request has been black-holed

Error: The requested address '/broods/add' was not found on this server.

Version v0.2-177-gf0f49ec

Cerebrate Error log shows:

2021-06-29 08:51:26 Error: [Cake\Controller\Exception\AuthSecurityException] The request has been black-holed in /var/www/cerebrate/vendor/cakephp/cakephp/src/Controller/Component/SecurityComponent.php on line 242
Stack Trace:
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Controller/Component/SecurityComponent.php:112
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Event/EventManager.php:309
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Event/EventManager.php:286
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Event/EventDispatcherTrait.php:92
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Controller/Controller.php:579
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php:96
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Http/BaseApplication.php:313
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Http/Runner.php:77
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php:164
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Http/Runner.php:73
- /var/www/cerebrate/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php:124
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Http/Runner.php:73
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Http/Runner.php:77
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php:169
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Http/Runner.php:73
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Http/Runner.php:58
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php:167
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Http/Runner.php:73
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php:68
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Http/Runner.php:73
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php:126
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Http/Runner.php:73
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Http/Runner.php:58
- /var/www/cerebrate/vendor/cakephp/cakephp/src/Http/Server.php:90
- /var/www/cerebrate/webroot/index.php:40

Request URL: /broods/add
Referer URL: http://cerebrate.example:8000/broods/add
Client IP: 10.0.0.1
iglocska commented 3 years ago

You need to set an organisation, it probably barfs because of that.

ghost commented 3 years ago

Thanks, that fixed the issue!

Maybe you could display an error message in this case?