Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Potential security problem with the snitch plugin

Started by Martin Brown 4 years ago · 0 replies · 262 views
4 years ago

While the snitch plugin: https://github.com/bleutzinn/grav-plugin-snitch from @bleutzinn is a very useful tool for development purposes, I discovered a pattern of use which can unexpectedly reveal all a website's parameters, including all the user details and possibly sensitive information to the internet. This stems from the default snitch setting "enabled: true".

  1. Build a Grav website
  2. Install the snitch plugin
  3. Create an environment configuration area under user/ eg. user/localhost
  4. Create an environment configuration for the main production website, eg. user/www.widgets.com
  5. Disable the snitch plugin on the www.mydomain.com environment

Note that although the snitch plugin is now apparently disabled on the production website, it is enabled in the localhost and default settings. Many hosting arrangements will permit requests to mydomain.com as well as to www.mydomain.com. http://mydomain.com will use the default settings so internet browsers accessing http://mydomain.com will see all the Grav parameters.

I suggest that the snitch source setting be changed to "enabled: false" to avoid this scenario. Users should be advised to enable the plugin for their specific dev environment, but not in the default settings. It is generally good security practice to have default settings for parameters which could be security concerns to "disabled".

Regards,
Martin

last edited 11/27/22 by pamtbaau

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 47 1 week ago
Plugins · by Xavier, 4 weeks ago
2 56 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1182 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 50 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 74 2 months ago