Open
Description
This is loosely related to https://processwire.com/talk/topic/29541-cve-2023-24676/, and mostly about being extra careful that dangerous features are only enabled intentionally:
- Currently the default moduleInstall settings enable module installs via URL or direct upload if debug mode is enabled. In my opinion this doesn't seem obvious, e.g. I would not assume that debug mode enables such features, which — again in my opinion — are not directly related to debugging the system.
- I would suggest that we set these values to
false
by default, at least in case of "upload" and "download". My reasoning is that such features can be quite dangerous, and again since they do not seem like they are strictly related to debugging, it feels like enabling those features is more of a surprising side effect than an intentional decision by a developer.
If someone is able to enable debug mode and needs to also upload modules via UI or from an URL, it is reasonable to assume that they are also able to change said settings to "debug".
Thanks for considering.