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

Potential security problem with the snitch plugin

Started by Martin Brown 4 years ago · 0 replies · 366 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 Vladimir Novak, 2 weeks ago
3 293 2 weeks ago
Plugins · by Mathieu Lecouturier, 3 weeks ago
3 277 3 weeks ago
Plugins · by Slebeig, 2 months ago
1 403 2 months ago
Plugins · by Rene, 2 months ago
2 574 2 months ago
Plugins · by Xavier, 3 months ago
2 490 3 months ago